Saving Tests and Test Sequences 

The Function Builder offers you several further options that can be helpful when you are developing your function. These options include:

Saving a Test Run

execute the test and then select the Save icon. Enter a short description of the test so that you can identify it better later on.

Displaying and Rerunning Old Tests

To display old tests that you have saved, enter the test screen in the Function Library and choose Test data directory. You can view either the test parameters or the actual results.

Rerunning old tests shows you if the changes you have made in your function module affect the data received by the calling program. To rerun a test using the same parameters:

  1. Choose Test from the Function Builder initial screen.
  2. The system displays the test environment.

  3. Choose Test data directory.
  4. Place the cursor on the test you want to reexamine.
  5. Choose Test.

The system immediately reruns the same test and displays any differences in the results.

Using Test Sequences

  1. Open the function module test environment.
  2. Choose Goto ® Test sequence.
  3. Run a series of tests as you would normally, entering relevant parameters and selecting Execute.
  4. You can re-run the same function module several times or test different, related 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 Function modules ® Other FM after each test.

  5. End the sequence by choosing Edit ® New sequence.

The system lets you save your test sequence.

To display an existing sequence, choose Test seq. directory to display the sequence. You can also run a test sequence by selecting Edit ® Enter sequence. The system provides a window where you can enter the names of all the modules you want to test. Select Execute and the system lets you run each module in test mode one after the other.