Running Test Scenarios


From release 20.04.01 onwards, Total Test uses the Execution Context Dialog box to execute both Virtualized Test (Unit Test) scenarios and Non-virtualized test (Functional Test) scenarios.

Important

The classic Run Test Dialog box for Unit Test scenarios has been deprecated. You must select the Use the classic Test Run dialog deprecated when running unit tests option in the Preferences if you still want to use the classic Run Test Dialog box. The classic Test Run dialog box will be removed in a future release.

The Execution Context Dialog box is now only showing the information needed to execute the test scenarios. The number of tabs shown depends on what kind of test scenarios is being executed.

For detailed descriptions, see Options. Each time you execute a Total Test scenario, you will see the Execution Context dialog box below.

Important

Virtualized Test only: Before executing a test scenario or test suite, verify that the required source listings are current and that the date and timestamp on the listing must match the date and timestamp of the load module or an invalid return code appears in the debug log and the test case fails with a user abend.
Source listing support is required for:

  • IMS
  • CICS
  • Db2
  • Statically linked sub-programs

To open the Execution Context dialog box:

Perform one of the following actions:

  • Click image2022-11-8_11-31-36.png Execute in the top right corner in the test scenario editor
  • Right-click a .scenario or .testscenario file in the Project Explorer and select Total Test > Execute Total Test Scenario or Total Test > Run Total Test Scenario
  • Double-click a .context file in the Project Explorer

The content of the dialog box depends on your Preferences setting. When Use Repository server is checked in the Repository preferences, the Environment tab shows the Environment Login section. The Environment combo box will only show when there are Functional Test elements in the test scenario.

Execution Context dialog box with Use Repository Server checked in Preferences

pg35_1.png

When Use Repository server is unchecked, the Environment tab shows the Host connection section allowing you to use HCI connections.

Execution Context dialog box with Use Repository Server unchecked in Preferences

pg36_1.png

Click Apply to save the changes and click Run. The dialog box will create a context (.context) file with the same name and in the same Scenarios directory, if a context (.context) file for the test scenario does not exist. Next time the Total Test scenario is executed, the context file will be used to initiate the dialog box with data.

The context files are visible by default in the Project Explorer view. You can choose to hide them by clicking the Filter (triangle) button in the view menu, select Filters and Customization, and then select the Total Test files option.

image-2023-3-16_16-54-58.png

This section provides information about the following topics:

 

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