Entering content frameBackground documentation Part 2 - Executing a Test Script Locate the document in its SAP Library structure

Use

You learn to execute an existing test script and examine the log.

You will execute the script in background processing mode, then in foreground processing mode, and finally in error mode. These modes allow different levels of visibility and interaction with the script while it is executing.

Prerequisites

You are logged on to a SAP System and are in Extended Computer Aided Test Tool: Initial Screen.

You have completed the part 1 of this tutorial.

Procedure

  1. Select Test Script, and enter the name of the script that you created in part 1 of this tutorial.
  2. Choose This graphic is explained in the accompanying text.
  3. The Change Test script: XYZ_FK01 (1) screen appears.

  4. Choose the Editor tab.
  5. In the parameter list, choose This graphic is explained in the accompanying text to display the command interface.
  6. This graphic is explained in the accompanying text

  7. Select the command interface FK01_1, and choose This graphic is explained in the accompanying text to display it in the structure editor.
  8. In the structure editor, expand the tree and select the first screen.
  9. This graphic is explained in the accompanying text

  10. Choose This graphic is explained in the accompanying text, to go to the screen simulation.
  11. In the Vendor field, enter two apostrophes ( '' ).
  12. This graphic is explained in the accompanying text

    This forces eCATT to clear the field each time the script is executed.

  13. Choose This graphic is explained in the accompanying text.
  14. In the structure editor, look in the tree for the field 'RF02K-LIFNR' of the first screen. Double-click the field to display it in the grid on the right-hand side of the structure editor.
  15. You should see that the VALIN field contains four apostrophes. Fixed values in the structure editor are designated by apostrophes. Instead of using the screen simulation, you could have entered the apostrophes directly in the structure editor.

    This graphic is explained in the accompanying text

    Background Processing

  16. In the structure editor, double-click the top node, and enter 'N' for the value of the mode.
  17. You must use apostrophes because it is a fixed value.

    This graphic is explained in the accompanying text 

  18. Choose Enter.
  19. Choose This graphic is explained in the accompanying text.
  20. Choose This graphic is explained in the accompanying text.
  21. The Start Options dialog box appears.

  22. In the Error handling field, select S from the dropdown list.
  23. Select Log Display.
  24. Deselect Start Mode Overwrites Mode if TCD is Run.
  25. Choose This graphic is explained in the accompanying text.
  26. Screen eCATT Log Display <number> appears.

  27. Examine the log.
  28. Note

    The log is structured hierarchically. Expand the tree by clicking on the nodes. You will see information about the system, test script, transaction, screens, and field values.

    This graphic is explained in the accompanying text

    Foreground Processing

  29. Choose This graphic is explained in the accompanying text, to go back to the script editor.
  30. Choose This graphic is explained in the accompanying text.
  31. Choose This graphic is explained in the accompanying text.
  32. Select Start Mode Overwrites Mode if TCD is Run.
  33. In the Start Mode for Command TCD field, select A from the dropdown list.
  34. Choose This graphic is explained in the accompanying text.
  35. Step through the transaction by choosing This graphic is explained in the accompanying text to accept the OK codes presented. You can change field contents on the screens. For example, try changing the name of the city. The change only applies to this run.
  36. At the end of the transaction, a new log is generated.

    Error Processing

  37. Choose This graphic is explained in the accompanying text, to go back to the script editor.
  38. In the structure editor, expand the tree to find the field 'RF02K-LIFNR' of the first screen.
  39. Delete the contents ('''') of the VALIN field.
  40. Choose This graphic is explained in the accompanying text.
  41. Choose This graphic is explained in the accompanying text.
  42. In the Start Mode for Command TCD field, select E from the dropdown list.
  43. Choose This graphic is explained in the accompanying text.
  44. This time, an error is caused by a preexisting record and the screen with the error is displayed.

  45. Clear the Vendor field, and choose This graphic is explained in the accompanying text.
  46. The execution continues and a new log is generated. In the absence of errors, the execution is like background mode.

    Preparing the Script for the Next Part of the Tutorial.

  47. Choose This graphic is explained in the accompanying text, to go back to the script editor.
  48. Remove the error from the script.
  49. Choose This graphic is explained in the accompanying text.

Result

Each time you run the script you generate a vendor record and an eCATT log.

Leaving content frame