Starting the Record Test Case dialog


You can start the recording of a test case in 2 ways:

Warning

Note

You cannot start a Total Test recording while another recording is still active.

Recording test case from Topaz for Total Test

  1. Perform one of the following actions:
    • Click the RecordTestCase.png 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 Toolbar icons)
    • Right-click a folder in the Project Explorer and select total_test_16x1600013.png Topaz for Total Test >RecordTestCase.pngRecord Test Case.
  2. Total Test displays the Record Test Case dialog.
    GenerateTestCase-NEW.png
  3. In the General tab, select the Xpediter Session Type and a pre-defined Launch configuration from the respective drop-down lists, 
    1. Choose from the four Session types:
      1. Xpediter Batch Debug Session
      2. Xpediter CICS Debug Session
      3. Xpediter DB2 SP Debug Session
      4. Xpediter IMS MPP Debug Session
    2. Use the Edit… button to edit an existing Xpediter launch configuration
    3. 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 the 

      Topaz Workbench

       Xpediter/Eclipse User Guide .

  4. Check the Run in background checkbox (initial default). Uncheck it only to start an interactive Xpediter debug session for recording the test case.
    1. 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
    2. 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_co.gif 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.

  5. Select the Project to save the test under from the drop-down list.

    Use the New… button to create a new project.

  6. Select or specify the Folder to save the test under.
    Multiple folder levels can be entered in the folder name. Example "MyTests/SimpleDB2".
  7. 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.
  8. Optionally, you may specify the project's test suite into which the recorded test scenario(s) or context files will be copied.
  9. Select which test to record, either Unit Test (Virtualized Test, default), Functional Test (Non-virtualized Test), or both.

    Warning

    The Functional Test selection is only available when using a Repository Server (Window > Preferences > Compuware > Topaz for Total Test > Repository Server with check box Use repository server.)

  10. 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.

    Warning

    The Unit Test Options tab includes fields and settings specific for generating Virtualized Test test cases. For detailed descriptions, see to Context Menus from Xpediter Debug Session

  11. Click OK to start recording.
  12. 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.

recording_status.png

  • 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.

Test_Complete_pop-up.png

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_co.gif 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.

recording_status.png

  • 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.

Test_Complete_pop-up.png

Related Topics

Record Test Cases from Xpediter vBase



 

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

BMC Compuware Topaz Workbench 20.06