Starting the Record Test Case dialog box
You can start the recording of a test case in 2 ways:
- from the Total Test Perspective
This option allows you to start the dialog box without having to switch perspectives. - from the Troubleshooting-Code-Debug-Debugging
This option allows developers to record a test case while in a Code Debug session.
Recording test case from 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 will only appear in the Total Test perspective. For instructions on how to manage toolbar icons, see Toolbar icons)
- Right-click a folder in the Project Explorer and select Total Test >
Record Test Case.
- Click the
- Total Test displays the Record Test Case dialog box.
- In the General tab, select the Code Debug Session Type and a pre-defined Launch configuration from the respective drop-down lists,
- Choose from the four Session types:
- Code Debug Batch Session
- Code Debug CICS Session
- Code Debug DB2 SP Session
- Code Debug IMS MPP Session
- Click Edit… to edit an existing Code Debug launch configuration
- Click New… to create a new Code Debug session
For instructions on creating and editing a debug launch configuration, see Debugging in Code Debug in the BMC-AMI-DevX-Code-Debug-Eclipse-User-Guide.
- Choose from the four Session types:
- Select the type of program to be recorded. When Record the program specified in launch configuration is selected the main program is recorded. If Record a called program is selected, the specified called program is recorded as per the number of times specified in the Maximum program executions to record.
- Select the Run in the background (initial default) to record the test in the background or select the Record in debug mode to start Code Debug session for recording the test case.
If Run in the background is selected:
The test is 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 that 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
If Run in debug mode is selected:
The test will run in Debug Mode. In this mode the Code Debug perspective is opened. All Total Test required breakpoints for recording the specified program are 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. If you are recording multiple called program tests you can utilize the Resume Recording and Skip Entry Breakpoints option by right clicking when stopped at a breakpoint. This will eliminate having to press Resume after each test is recorded.
Select the Project to save the test under from the drop-down list.
CLick New… 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. For 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 scenarios 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. Click Configure 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.
Total Test also populates the project folders with the recorded data. See Scenarios Folder for a description.
Run in debug mode
- Total Test will switch to the Code Debug perspective to launch the debug session. Provide your credentials to log in to the mainframe.
- When Code Debug 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.
Total Test also populates the project folders with the recorded data. See Scenarios Folder for a description.