Starting the Record Test Case dialog
You can start the recording of a test case in 2 ways:
- from the Topaz for Total Test Perspective
This option allows you to start the dialog without having to switch perspectives. - from an Troubleshooting-Xpediter-Eclipse-Debugging
This option allows developers to record a test case while in an Xpediter debug session.
Recording test case from Topaz for Total Test
- Perform one of the following actions:
- Click the
Record test case using Total Test icon in the toolbar. (By default the 'Record test using Total Test' button will only appear in the 'Total Test' perspective. for instructions on how to manage toolbar icons, see )
- Right-click a folder in the Project Explorer and select
Topaz for Total Test >
Record Test Case.
- Click the
- Total Test displays the Record Test Case dialog.
- In the General tab, select the Xpediter Session Type and a pre-defined Launch configuration from the respective drop-down lists,
- Choose from the four Session types:
- Xpediter Batch Debug Session
- Xpediter CICS Debug Session
- Xpediter DB2 SP Debug Session
- Xpediter IMS MPP Debug Session
- Use the Edit… button to edit an existing Xpediter launch configuration
Use the New… button to create a new Xpediter debug session
For instructions on creating and editing a debug launch configuration, see Debugging in Xpediter/Eclipse in theTopaz Workbench
Xpediter/Eclipse User Guide .
- Choose from the four Session types:
- Check the Run in background checkbox (initial default). Uncheck it only to start an interactive Xpediter debug session for recording the test case.
Run in background checked:
The test will be recorded in background mode. During the recording session a progress bar and status bar will show the progress of the recording. The UI (user interface) will not be locked, so the you are free to do other work while the test case is being recorded. When running in background mode the following are not supported and will be ignored:
- Using the Runtime Visualizer
- Using existing breakpoint for programs
- Log after debug session is complete
- Scripting is limited to basic commands
Run in background unchecked:
The test will be run in 'Debug Mode'. In this mode the Xpediter perspective will be opened. All Total Test required breakpoints for recording the main program will be set. You can set any additional breakpoints. Click
Resume in the tool bar to start the recording. During the recording session a progress bar and status bar will show the progress of the recording.
Select the Project to save the test under from the drop-down list.
Use the New… button to create a new project.
- Select or specify the Folder to save the test under.
Multiple folder levels can be entered in the folder name. Example "MyTests/SimpleDB2". - 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, CWKTVSKS_Scenario.
- Optionally, you may specify the project's test suite into which the recorded test scenario(s) or context files will be copied.
Select which test to record, either Unit Test (Virtualized Test, default), Functional Test (Non-virtualized Test), or both.
If you selected Functional Test, select the Host connection from the Functional Test Environment drop-down list. Use the Configure button to add or modify a connection.
- Click OK to start recording.
- If you selected Run in background, continue with Run in Background.
If you did not select Run in background, continue with Run in Foreground.
Run in Background
- As the test is being recorded, the user is free to perform other tasks.
- As the test is being recorded, progress bar and status bar will appear showing the progress of the recording.
- When the test is complete, a pop-up will appear containing a link. Clicking on the link takes to user to the newly created test scenario.
Topaz for Total Test also populates the project folders with the recorded data. See Scenarios Folder for a description.
Run in Foreground
- Total Test will switch to the Xpediter perspective to launch the debug session. Provide your credentials to log in to the mainframe.
- When Xpediter is at initial breakpoint, click the
Resume icon in the toolbar. This will start recording
- As the test is being recorded, progress bar and status bar will appear showing the progress of the recording.
- When the test is complete, a pop-up will appear containing a link. Clicking on the link takes to user to the newly created test scenario.
Topaz for Total Test also populates the project folders with the recorded data. See Scenarios Folder for a description.
Related Topics
Record Test Cases from Xpediter vBase