Show TOC

Procedure documentationTest Case Recommendations

 

You can generate recommendations for test cases, and calculate the effort for various scenarios. For example, you can calculate the effort for the following activities:

  • Creating (manual or automated) test cases and improving the test coverage of changed objects

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

Prerequisites

Procedure

Proceed as follows:

  1. Define 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, on the Solution Documentation Options tab.

    End of the example.
  2. Under Target test coverage with automated tests, enter a test coverage value, for example 99%. For more information, 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 that are related to business-critical business processes, you achieve a test coverage of 30% of all changed objects. Enter this value as the target coverage for automated test cases.

    End of the example.
  3. To calculate the effort that is required for and resulting from test automation, do the following:

    Select Calculate effort to create automated test cases up to the coverage below.

    In the Target test coverage with automated tests 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 there are manual test cases, the system assumes they are replaced by automated test cases.

  4. 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:

    • Calculate effort to create automated test cases (recommended): 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.

    • Calculate effort to create 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 Recommendations: 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.

  5. 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.

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

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