Vous êtes sur la page 1sur 3

Building good test cases is very important to ensure that SAP is properly tested before go-live.

Test cases include test conditions, test data and also the expected results to check the design and functionality of SAP. Test cases should be comprehensive enough to take into account all business scenarios. SAP test scenarios contains a number of test cases whereas a SAP test script lists down the steps that are needed to execute a test case. Tools are available in the market to develop test scenarios. SAP tests can be designed in spreadsheets or even text editors. So what makes up a good test case. SAP best practice test cases have the following characteristics: 1. Test cases should be reusable so that a test case once designed can be used in different testing. 2. Test cases should use the SAP role profile that will be used to test the condition. This will take care of access control testing as well. 3. Test cases should include a description of what exactly is being tested and how it will be tested. It is good to have a narrative in place for tests. 4. Tests should have valid data (transaction and master data) which can be related to the business process and technical and functional requirments. 5. Test cases should be reviewed and signed off once testing is complete.

Working with Test Case Templates

Test case templates are available for the second generation business functions that are delivered with the enhancement packages. These help you to reduce the implementation time and efforts. With the test case templates you can test the new functions that belong to the scope of a business function. The use of test case templates gives you the following advantages:
y y y

Using the test case description, you can find out how to test the new functions and what you have to consider. You can plan your tests using the test case templates and calculate the efforts accordingly. You can prepare the content of the tests,for example, by creating the test data required.

For more information about using test cases, see SAP NetWeaver Library under Test Workbench Features
y y y

The test case templates delivered give you examples that show you how to test the new functions. You can, of course, add further test cases. Test case templates are available for all business functions whose functions are part of your ECC system. You can access the test case templates in transaction SFW5. From there you can navigate to the related SAP test case catalog for each business function.

Activities

Note The following procedure describes how to use the test case templates for SAP NetWeaver 7.0, Support Package 12. As of one of the following Support Packages, a more comfortable use of the test case templates will be available. Proceed as follows to look at the SAP test catalog for the individual business functions: 1. Call up transaction SFW5. You access the transaction from the Implementation Guide under Activate Business Functions . 2. In the Test Catalog column, select the test catalog that you want information about. The application Display Test Catalog <topic> appears. 3. Open the descriptions for the respective test cases. Proceed as follows to copy and provide the test catalog for your tests: Recommendation Proceed in exactly the sequence that is described in this procedure. 1. Call transaction SFW5. You access this transaction from the Implementation Guide under Activate Business Functions . 2. In the Test Catalog column, select the test catalog that you want to use. The application Display Test Catalog <topic> appears. 3. Make a note of the name of the highest node. 4. In the SAP Easy Access menu, choose Tools ABAP Workbench Test Test Workbench Test Organizer Test Catalog Management . 5. Choose the input help for the Test Catalog field. 6. Enter the name of the test catalog that you noted and want to use and choose Start Search. If necessary, remove the language from the selection criteria. 7. Add the entry to your list of favorites. Choose Favorite. 8. Select the new entry and choose Test Catalog Copy . 9. Give your test catalog a new name, choose Continue, and specify the package in which the new test catalog is to be saved. Your new test catalog is now in the list of favorites. 10. Select your new test catalog and choose Test Catalog Display 11. Choose View Hierarchy Display Title and Key . 12. Open a new window. .

13. In the SAP Easy Access menu, choose Workbench Test Tools CATT .

Tools

ABAP Workbench

Test

Test

The Computer Aided Test Tool application appears. 14. In the Test Case field, enter the technical key of a test case from your test catalog and copy the test case. 15. Copy all further test cases and add them to your favorites list. 16. Switch back to the Test Catalog Management application. 17. In your copy of the test catalog, replace the individual test case templates from SAP with your copies of the test cases as follows. 1. Add the copy of your test case behind the original. 2. Delete the original from the test catalog. 18. Replace all further test case templates from SAP with your copies.

Vous aimerez peut-être aussi