Record new baseline Total Test Scenario
Total Test provides the functionality to re-record the test scenario with a new state. This process is known as Rebaselining. Before initiating the rebaseline procedure, ensure the following prerequisites are met:
- Record the original program and ensure the successful execution of the scenario.
- Copy the TTTRUNNER.jcl from the /TotalTestConfiguration/JCLSkeletons/ directory into the same location, and rename it to REBASELINE.jcl.
- An interceptor is necessary; create a script for the program by following the steps provided in the below section and configure it within the Launch configuration that will be used for rebaselining.
- Rebaselining can only be performed on INPUT stubs.
Create a script
Following are the steps to create an intercept script:
- Right-click on the z/OS dataset and select Allocate/Define > PDS or Sequential Dataset.
- Enter the required details in the Allocate Dataset dialog.
- After allocating the dataset, a Dataset attributes popup window will appear.
- Create a new member within the dataset by right-clicking on it and selecting New Member. Specify the member name and click OK.
- Edit this new member. To do this, add the following INTERCEPT command:
INTERCEPT PROGRAM
(where, PROGRAM is the name of the test program. For example, CWKTCOBX) - Configure the interceptor. To do this, go to the Scripting tab in the Launch configuration that is used for rebaselining. Add the dataset and script member created in the previous steps.
Recording the rebaseline
Record and execute the original launch that you want to rebaseline. Ensure this step is completed before proceeding further.
- To initiate the rebaselining process, choose the original input stub value you wish to modify and make the necessary changes.
- Right-click on the Scenario file > Total Test, and select Record New Baseline.
- In the Record New Baseline window:
- Click General tab and enter all the required details. Ensure the launch configuration matches the one used in the previous steps.
- Click Stubs tab, select the Read from Stub checkbox, and click Record to start recording the new baseline.
- Confirm to continue with the baseline recording by clicking YES.
- If you are logging in for the first time during the recording, a login screen is displayed. Enter your credentials and click OK to continue with the baseline recording.
- After the rebaseline recording is complete, verify the changes in the Stubs folder of the rebaseline and execute the scenario.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*