User Guide | 2019.2

Creating scripts from test cases

If you use QA Wizard Pro, you can create scripts from steps in existing test cases. This helps save time when creating scripts and links test cases and scripts.

You can use one of the following methods to create a script from a test case:

  • Follow the test case steps and record actions in the application to include in the script. The test case steps and expected results are displayed as you record the script to help you perform the correct actions.
  • Create a basic script that only includes the steps and expected results copied from the test case. This is helpful if you want to perform other tasks in QA Wizard Pro before recording, such as deleting unnecessary script steps or populating the application repository.

Note:  QA Wizard Pro 2012.0 or later must be installed on the computer running Helix ALM.

1. Open the test case to create a script from.

2. Click the Steps tab.

3. Click Create Script.

QA Wizard Pro starts if it is not already running. You are prompted to open a workspace if one is not already open.

The Create Automated Test Case dialog box opens.

4. Enter a Script name. The default name is Automated Test Case followed by the test case number.

5. Select a script creation method.

  • Create script from test case steps creates a basic script with test case steps and expected results without recording. Click Create to add the script to the workspace.
  • Record script from test case steps records a script as you perform the displayed test case steps Continue with step 6 to record the script.

6. Select the application to record the steps against or click New to add an application.

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

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

8. Click Record.

The applications starts. The Recording Automated Test Case toolbar opens. The test case steps and expected results are displayed.

9. Perform the steps in the application.

10. Click Done after completing each step to add the actions to the script. If you do not click Done after each step, all the recorded actions are added to the end of the script.

11. Click the Stop Recording toolbar button when you complete all the steps.

The Repository Changes dialog box opens.

12. Click Save.

The repository changes are saved and the script is created. The test case steps, recorded actions, and a hyperlink to the test case are included in the script. Test case steps are added to the script as TestCaseStep statements.