Recording new scripts

Recording creates a new script and captures actions as you interact with an application. The scripts you record provide a baseline for testing. After recording, you can modify scripts to develop more complex testing scenarios.

Careful planning is the key to successful automated testing. Short, task-based scripts are easier to manage and maintain. Tests should also be repeatable and have an expected result. For example, if the test application requires logging in, record a single login script that is called at the beginning of all other scripts that run against the application. This helps ensure QA Wizard Pro captures windows and controls used when logging in so they are located when the script runs and eliminates the need for updating statements in multiple scripts if the log in process changes later. See Calling scripts from other scripts.

Keep the following in mind before recording scripts:

1. Choose Script > Record New Script.

The Record New Script dialog box opens.

2. Enter a Script name.

3. Select the Application you want to record against.

Click New to add an application. See Adding applications.

4. Select Connect to running application to record against an instance of a Windows application running on the test computer.

Note: This option is not available if a Windows 8 application is selected.

5. If you are recording a web script, select a Browser.

Tip: You can select the default browser to use for recording web scripts. See Selecting the default web browser. You can change the browser before recording.

6. Click Record.

The application starts. The Recording toolbar also opens.

You may be prompted for additional information.

7. Navigate through the application, performing the actions you want to record.

Note: Click the Cancel Recording toolbar button to cancel recording and discard all recorded actions.

8. Click the Stop Recording toolbar button.

The Repository Changes dialog box opens. New or changed windows and controls are displayed. See Reviewing and saving repository changes.

9. Click Save to save the repository changes.

The script is processed and the actions are added to it. Information about the application windows and controls are added to the repository.

Tip: Window and controls added to the repository may have generic names depending on the application. You may want to modify the repository to make the names consistent with other objects. See Modifying window and control properties.