There are three command interfaces for use with Test Environments.
Scan_IT Scans a Test Environment and operates in a similar fashion to Option 1 on the Work With Test Case Environments display. It requires the Environment Code, which can be selected from a list of valid values if not keyed and Enter is pressed.
Mark_IT Sets a Checkpoint and operates in a similar fashion to Option 2 on the Work With Checkpoints display. It requires the Environment Code and Checkpoint ID which can be found on this display. If these parameters are not keyed and Enter is pressed, they can be selected from a list of valid values.
Roll_IT Issues a rollback to a Checkpoint and operates in a similar fashion to Option 7 on the Work With Checkpoints display. It requires the Environment Code and Checkpoint ID which can be found on this display. If these parameters are not keyed and Enter is pressed, they can be selected from a list of valid values.
These commands could for example be run as Test Case User Exits. A BA (Before All) User Exit could be used to set a Checkpoint prior to the execution of the test, hence marking the data objects at this point in time. An AA (After All) User Exit could then be used to issue a Rollback to the Checkpoint previously set, ensuring that the database is re-set to the same state that existed prior to the start of the test run. It would then be possible to re-run this test immediately without the need for any manual re-setting of the test database.
These commands can also be issued as a Test Case Process. There are two Test Case User Exits which monitor for the rollback command, BR (Before Rollback) and AR (After Rollback). These enable the specified user processing to be run every time the ROLL_IT command is executed during the test.