Generating an HTML Test Report

If you type 4 and press Enter to generate an HTML test report, you'll get the following screen Type the date of an existing test run and press Enter. After the report is generated, you will see the following status displayed on the screen Enter the date of the test run in the following format '01-01-2008' 01-14-2008 -- HTML Report Generated -Press Enter to continue The report is stored in the test_report_html directory under the program directory, and is saved as mm - dd-yyyy.html. In other...

Downloading the Win All Package

Python For Windows Extensions

Win32All requires that Python minimum version 2.2 already be installed on a Windows system. In a web browser, navigate to You will see the Python for Windows Extensions window shown in Figure B-14. Click the Download the Python for Windows Extensions link. Scroll down the page to the section that is shown in Figure B-15. Notice that downloads are available for versions of Python from 2.2 through 2.6. Click the appropriate link for the version of Python you have installed and you'll get a prompt...

The winreg Module Manipulate the Windows Registry

The Windows Registry is a database that contains program and system information and settings. Often it can be useful to access the Registry to read from it or write to it via a script. The winreg module makes this easy to do in Python. The following example queries a particular key in the Registry and outputs all the subkeys for that key list values owned by this registry key name, value, type _winreg.EnumValue explorer, i print repr name , i 1 The following is the output for this program I...

The winsound Module

The winsound module enables a script to access the sound-playing functionality of Windows platforms. It includes functions and several built-in constants. The module enables a script to play Windows system sounds or WAV files. The following example shows how to play various sounds with the winsound module import winsound print Play Windows exit sound. winsound.SND_ALIAS print Probably play Windows default sound winsound.PlaySound , winsound.SND_ALIAS print Play a message beep...