Show TOC

Procedure documentationGenerating Recommendations for Test Cases Locate this document in the navigation structure

 

You can generate recommendations for test cases and calculate the effort for various scenarios. For example, to calculate the effort

  • to create (manual or automated) test cases and to improve the test coverage of changed objects

  • to reduce the effort to execute test cases by replacing manual test cases with automated ones

Prerequisites

  • Optional: You have adjusted the default values for the average effort to create and execute automated or manual test cases in view AGS_BPCA_REC_DFT (transaction SM30).

  • You are in the Edit Test Scope Optimization screen.

Procedure

Proceed as follows:

  1. Specify the objects for which test automation might be desirable and for which you want test case recommendations.

    Example Example

    To get test case recommendations for your most business-critical processes, put their nodes in the must include area, by structure attributes. For more information, see Specifying the Test Scope Based on Structure Attributes (Business Process Hierarchy).

    End of the example.
  2. In the Test Coverage field, enter a test coverage value, for example 99%. For more information about the test coverage, see Adjusting Test Scope in Graphic.

    The required test effort is shown in the results area, on the Test Scope Optimization Ranking tab page.

    Example Example

    If you test all objects related to business-critical business processes, you achieve a test coverage of 30% of all changed objects. Specify this value as the target coverage for automated test cases.

    End of the example.
  3. Choose the Optimization Options link.

  4. Choose the Test Case Recommendations tab page.

  5. To calculate the effort required for and resulting from test automation, do the following:

    1. Select the Calculate effort to create automated test cases checkbox.

    2. In the Coverage field, enter the value for the percentage of objects to be covered by automated test cases.

    Example Example

    To cover all objects related to business-critical business processes, enter the value 30. 30% of all objects are to be covered by fully automated test cases.

    End of the example.

    If manual test cases exist, the system assumes they are replaced by automated test cases.

  6. Calculate the effort required to create and execute test cases for the remaining part of the test coverage.

    Note Note

    The system calculates the following:

    • The effort to create new test cases where test cases are missing

    • The total effort to execute existing and new test cases

    End of the note.

    In our example, you calculate the effort for the difference between the total coverage of 99% and the 30% target coverage of objects which you achieve if you have automated test cases for the must-include business processes. The remainder is 69% of all changed objects.

    If you are not primarily interested in full test automation (you have not checked the Calculate effort for creation of automated test cases check box or have set the target for automated test case coverage to 0, so you do not want existing manual test cases to be replaced with automated ones), the remainder is the total desired coverage (in our example, 99%).

    You can try the following scenarios:

    • Creation of automated test cases: In our example, if there are no test cases, for the remaining 69%, the system recommends the creation of automated test cases and calculates the effort to create and execute them. The system does not recommend replacing existing manual test cases by automated test cases.

      This scenario is recommended: It minimizes the test effort in the long run although the initial effort to create automated test cases is higher than that to create manual ones.

    • Creation of manual test cases: In our example, if there are no test cases, for the remaining 69% the system recommends creating manual test cases which can be created more quickly than automated ones. The system calculates the effort to create and execute them.

    • No recommendation: You do not want to change the existing test case coverage. In our example, the system calculates only the effort for the 30% target coverage for test automation.

  7. Choose Apply and Save.

    In the results screen area, on the Test Case Recommendations tab page, the current situation and the calculated efforts to create and execute additional test cases are displayed in graphical and tabular form.

  8. Optional: To create the manual or automated test cases and assign the test cases to the business blueprint, under Test Case Recommendations Details you can export a list of the recommended test cases.

  9. To display the effect of newly created and assigned test cases, choose the Refresh Test Case Data pushbutton.