Show TOC

Procedure documentationRecording TBOMs with Automated Test Cases

 

Automate the creation and update of TBOMs by recording TBOMs in automatic test cases. When the automatic test cases are performed, the system also creates or updates the TBOMs affected, automatically.

Note Note

TBOM recording is currently only supported for automated test cases of type eCATT.

End of the note.

Prerequisites

  • You have created a solution documentation.

  • You have created automatic test cases of type eCATT.

  • You have assigned executable entities to the relevant nodes.

  • You have assigned automatic test cases to the same nodes.

  • Both the RFC connection from the SAP Solution Manager system to the managed system, and the RFC connection back from the managed system to the Solution Manager system, exist. The RFC back connection has the naming convention SM_<SAP Solution Manager system>CLNT<SAP Solution Manager client>_BACK. The required logon data is also entered. This back connection is normally created automatically by the system when you create an RFC connection, in the SAP Solution Manager Configuration work center, under Start of the navigation path Managed Systems Configuration End of the navigation path.

  • You have created a user to record automatic test cases. For more information, see the Customizing forSAP Solution Manager under Start of the navigation path Capabilities Next navigation step Business Process Change Analyzer End of the navigation path.

Procedure

  1. In the Solution Documentation view, do the following:

    1. Drill down to an executable, and ensure that at least one automated test case is assigned to it.

    2. In the executable's context menu, choose Assign for TBOM Generation.

    3. Select the test cases to be used for the automatic TBOM creation, and confirm.

    For more information about identifying executables for which to create TBOMs, see Checking the TBOM Coverage and Status.

  2. In the Test Plan Management view, do the following: :

    1. Create a dedicated test plan for TBOM generation, containing the previously-assigned automatic test cases.

      Background: If the automatic generation of a TBOM fails, the test execution status is red, even though the test case might have been executed successfully, so the results of a test plan could be distorted.

      For more information, see Creating and Editing Test Plans.

    2. Create at least one test package which contains the previously-assigned test cases, in the test plan, and assign it to the tester who generates the TBOMs.

      For more information, see Creating and Editing Test Packages.

  3. Schedule the test packages which contain the TBOM-relevant test cases:

    1. In the Tester Worklist view, select the test package.

    2. Choose Start of the navigation path Automatic Test Next navigation step Schedule Execution End of the navigation path.

    3. In the Schedule Execution dialog, select the Copy Status in Test Workbench and Activate TBOM Recording checkboxes. The system can only record a TBOM when the test case runs, if both checkboxes are selected.

    4. Check the runtime details in the Runtime dialog. For example, schedule background jobs for test cases without SAP GUI. Schedule dialog jobs (Foreground) for test cases which simulate SAP GUI Interaction. This option is the default, so ensure that transaction STPFE is active.

      For more information, see the eCATT: extended Computer Aided Test Tool application help in SAP Help Portal at http://help.sap.comInformation published on SAP site, under Start of the navigation path Executing Test Scripts Next navigation step Scheduling Tests for Automatic Execution in the Foreground End of the navigation path.

      Note Note

      You can also run a test package immediately, instead of scheduling it. Enter system data, target system, etc. for the execution, in the Start Options dialog.

      Set the following checkboxes in the Start Options dialog:

      • Close RFC Connection

      • Copy Status in Test Workbench

      • Activate TBOM Recording

      End of the note.
    5. To save the scheduling, choose OK.

Result

The system creates TBOM enhancements for all executable entities affected. The TBOM enhancements overview shows the enhancements created.

If a TBOM enhancement had already been created in an automatic test case, the system updates it.

The eCATT log shows the automatic test cases which created the TBOMs.