Virtual Machines


At some point during your application's testing phase, you will need to run your application on the target environment. This might be a different version of Windows to the development platform, and/or it might be a different language of Windows than the developer's language. It is not sufficient to test an application by simply switching the application's culture to the target culture. Throughout this book, you will find numerous differences that are a consequence of the version of Windows or the language of Windows; consequently, you must test the application using the target environment. The traditional approach to this problem is to install the target environment on a new machine. This is as close to an absolute solution as you can get, but it is costly in terms of hardware if you are testing multiple versions of Windows, each with its own language. A simpler solution is to use virtual machine software, such as Microsoft's Virtual Server, Microsoft's Virtual PC, or VMWare's VMWare Server and WorkStation. These software packages create "virtual machines" that run as guests within a host operating system. The guest operating systems can be any operating system, including Windows, Linux (for testing Mono .NET applications), and DOS. Figure 2.1 shows Virtual PC hosting the Japanese version of Windows XP Professional Service Pack 2, testing a translated .NET Windows Forms application.

Figure 2.1. Virtual PC Hosting Japanese Version of Windows XP Professional


Virtual PC Tip

If you are using Virtual PC, you can easily share a path on the host machine as a new drive on the guest machine. You might use this to share your development output folder with the guest operating system so that each time you do a build, you can test the application immediately without any copying of files. To do this, start the virtual machine, click the Virtual PC Console Settings button, and select the Shared Folders icon on the left side of the dialog box (see Figure 2.2). Click the "Share Folder..." button to share a folder with the guest operating system. The shared folder becomes a new drive in the guest operating system.

Figure 2.2. Virtual PC Virtual Machine Settings






.NET Internationalization(c) The Developer's Guide to Building Global Windows and Web Applications
.NET Internationalization: The Developers Guide to Building Global Windows and Web Applications
ISBN: 0321341384
EAN: 2147483647
Year: 2006
Pages: 213

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net