Show TOC

 Saving Tests and Test SequencesLocate this document in the navigation structure

Use

You use this procedure to:

  • Save test runs
  • Display old tests and their results
  • Compare previous test results with results from a new test run
  • Compose a test sequence for repeating tests.
Procedure

Saving a Test Run

  1. In the Object Navigator (transaction SE80), open the function module you want to test.
  2. In the toolbar, choose the Test/Execute pushbutton.

    The Test Function Module: Initial Screen appears.

  3. Choose Execute.

    The Enter Parameter Value screen appears.

  4. In the New Value field, specify a value for the input parameter and choose Continue.
  5. In the toolbar, choose the Save Data Records pushbutton.

    The Save Test Data screen appears.

  6. In the Comments field, enter a description of the test run and choose Continue.

Displaying Old Test Data and Running Regression Tests

  1. In the Object Navigator (transaction SE80), open the function module you want to test.
  2. In the toolbar, choose the Test/Execute pushbutton.

    The Test Function Module: Initial Screen appears.

  3. In the toolbar, choose the Test Data Directory pushbutton.

    The Test Data Directory: Single Tests screen appears.

  4. Do one of the following:
    Activity Result

    To display old tests

    1. In the toolbar, choose the Test Data Directory pushbutton.

      The Test Data Directory: Single Tests screen appears.

    To re-run old tests

    1. In the toolbar, choose the Test data directory pushbutton.
    2. Place the cursor on the test you want to re-examine.
    3. In the toolbar, choose the Regression Test pushbutton.

      The system executes the same test again and displays any differences in the results.

Using Test Sequences

  1. Open the Function Builder (transaction SE37).
  2. Choose Start of the navigation path Function Module Next navigation step Test Next navigation step Test Sequence End of the navigation path.

    The Select Function Module screen appears.

  3. Enter the function modules you want to test in the table and choose Execute.

    You can re-run the same function module several times or test different function modules. For example, you can test a module that creates a new table record and then test one that deletes the same record. If you want to test a series of function modules, choose Start of the navigation path Function modules Next navigation step Other function module End of the navigation path after each test.

  4. End the sequence by choosing Start of the navigation path Edit Next navigation step New sequence End of the navigation path.