Show TOC Start of Content Area

Procedure documentation Using the Favorites   Locate the document in its SAP Library structure

Use

You use the favorites to group a set of unit tests together, to execute this group, and to define additional options. These options include to enabling coverage measurement during the execution of your unit tests.

Procedure

Creating a Favorite

       1.      To create a new favorite, open the Favorites display and choose Create a New Favorite.

       2.      Assign a name and a description to the favorite.

Adding a Test Class to a Favorite

To add a test class to a favorite, in the Test Browser tree, use the context menu of the test class.

Starting the Favorite Editor

       1.      To start the Favorite Editor, in the Test Browser, double-click a favorite.

The editor displays all test classes in a tree control.

       2.      Use the menu to add and remove test classes, to execute the favorite, and to change the execution options.

Enabling Coverage Measurement

By choosing Execution Option from the menu, you can define restrictions to the risk level and the duration category. You can also enable coverage measurement of the favorite. With this option, any program that is invoked by your tests directly or indirectly is measured for coverage. After the test task is completed, the ABAP Unit result display appears containing information messages. From the detail display of a message, you can start a display of the coverage results. In this display you can access the coverage results for programs and modularization units. By double clicking on a modularization unit, the source code is displayed and statements that are not executed are highlighted.

End of Content Area