Show TOC

Procedure documentationRecord TBOM in Automatic Test Cases

 

Test cases are often performed after implementing changes. As the existing TBOMs may no longer be up-to-date after implementing changes, it is useful to combine the creation of TBOMs with the performance of the test cases. You can automate the creation and update of TBOMs by recording TBOMs in automatic test cases. When the automatic test cases are performed, the system automatically also creates or updates the TBOMs affected.

Note Note

Currently, TBOM recording is only supported for automatic test cases of type eCatt.

End of the note.

Prerequisites

  • Sie haben eine Business Process Hierarchy angelegt.

  • You have created automatic test cases of type eCatt.

  • You have assigned executable entities to the relevant nodes, in the Transactions tab.

  • You have assigned automatic test cases to the same nodes, in the Test Cases tab.

  • Both the RFC connection from the Solution Manager system to the managed system, and the RFC connection back from the managed system to the Solution Manager system, are in the transaction SMSY. The RFC back connection has the naming convention SM_[Solution Manager system]CLNT[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 Solution Manager system landscape maintenance (SMSY) or the Configuration work center.

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

Procedure

  1. Open the attribute dialog of the executable entity, and choose the TBOM tab.

  2. Select the test cases which you want to use to record the TBOM, in the Assigned Automatic Test Cases group box.

  3. Save the TBOM.

  4. Create a test plan containing the previously-assigned automatic test cases. For further information, see Create Test Plan for a Project.

  5. Create at least one test package which contains the previously-assigned test cases, in the test plan. For further information, see Create Test Package for Projects in Solution Manager.

    Note Note

    You can use the Test Cases filter, to choose only test cases which are assigned to a TBOM. In the Filter Test Cases dialog, choose the BP Change Analyzer tab, and choose TBOM-Relevant.

    End of the note.
  6. Schedule the test packages which contain the TBOM-relevant test cases:

    1. In the Test Management work center, choose the Test Plan Management view.

    2. Select the test plan.

    3. Choose Test Package Management.

      The test plan is displayed in the test workbench.

    4. Select the test package which you want to schedule.

    5. Choose Start of the navigation path Goto Next navigation step Automatic Test Next navigation step Schedule End of the navigation path.

    6. In the Scheduling dialog, select the Put 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.

    7. Choose the test packages.

    8. Choose Execute.

    9. Check the runtime details in the Runtime dialog.

    10. Save the scheduling.

    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. As the TBOM is created for a specified project or solution, you must choose the target system so that it is in the system landscape of the project or solution.

    You must also set the following checkboxes in the Start Options dialog:

    • Close RFC Connection

    • Put Status in Test Workbench

    • Activate TBOM Recording

    End of the note.

    Note Note

    Alternatively, you can also select a test package in the Tester Worklist view, display the package in the system, with Run Test, and then run the package immediately.

    End of the note.

Result

The system has created TBOM extensions for all executable entities affected. The TBOM extensions overview shows the automatic test case an extension has been created.

If a TBOM extension had already been created in an automatic test case, the system has updated it.

More Information

To get an overview of the executable entities to which automatic test cases are currently assigned, see, in the Reports view, the Transactions/TBOMs/Test Cases report.

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