Record Test Case


When selecting image2022-11-8_16-3-55.png Record Test Case…, the Record Test Case dialog box opens displaying the General tab. 

Record Dialog - From Xpediter context menu.png

Record Test Case dialog (General Tab)

Here you can specify the program or called program to be recorded. Also, the project and scenario for the scenario name where new tests will be recorded. This eliminates creating all elements manually.

Record Session

  • Program to record and Record mode group will appear if the Record dialog box is launched by selecting Record in the Total Test Perspective. 
  • Only the Program to record group will appear if the Record dialog box is launched from the Xpediter/Eclipse context menu.

Program to record

In Program to record mode when either of the following option is selected,

  • Record the program specified in launch configuration - The program specified in the launch configuration is recorded.
  • Record a called program - The program specified is recorded.

    • Program name - The name of the program to be recorded. This is a required field.
    • Load module - The name of the load module containing the specified program. If this field is left blank Total Test will try to find the specified program in the load module associated with the main program. If not found Total Test will try to locate the program as a dynamic called program.
    • Maximum program executions to record - The number of times the called program will be recorded.

Record mode

In Record mode when either of the following option is selected,

  • Record in background - Total Test will record the test in the background. Only one active background recording is allowed. The user is free to continue with other tasks.
  • Record in debug mode - Total Test will launch Xpediter/Eclipse and set the required breakpoints for recording the test. The user can set additional breakpoints before recording the test.

Name and Location of Recorded Tests

The dialog contains the following fields under the Name and Location of Recorded Tests heading.

Project

From the Project drop-down, select a project for which the new unit test will be recorded. The last specified Topaz for Total Test project should be pre-selected. The drop-down should list of all Topaz for Total Test projects in your current workspace.

If you need to create a new project, click on the NEW... button to the right of the Project drop-down and the New Topaz for Total Test Project Wizard will open. See also Creating A New Project.

Folder

The Folder drop-down lists all Test Folders in the project. Select a folder or enter a new folder into which the Total Test folders with recorded tests will be created.
The Test Folders can have multiple levels, for example "MyTests/SimpleDB2".

Scenario

After you select the project, in the Scenario drop-down, the last scenario specified for this program is pre-selected. Otherwise, a new scenario is displayed, using the name of the program with the suffix _Scenario (<program>_Scenario), for example, CWXTCOB_Scenario. For more information refer to Test-Scenarios.

Warning

Important

You can change the scenario name to any value. See also Renaming Moving and Deleting Resources.

Suite

Optionally, you may specify the project's test suite. The generated test scenario will be copied into the specified test suite. For more information refer to Test-Suites.

Tests to Record

The dialog contains the following check boxes under the Tests to Record heading.

  • Unit Test (Virtualized Test) if you intend to record unit tests.
  • Functional Test (Non-virtualized Test) if you intend to record Non-virtualized tests.

Functional Test Environment

If you selected Functional Test, the Functional Test Environment drop-down list becomes active. Select the Host connection from the Functional Test Environment drop-down list that is appropriate for program to test. Use the Configure button to add or modify a connection.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Compuware Topaz Workbench 20.12