Split an SAP test
After recording a test, you can split it into smaller tests. Splitting tests enables you to create modular building blocks of smaller tests and combine them to make bigger tests. The original test is unchanged. You can recombine these building blocks in a schedule, including loops and conditions.
When reusing split tests in a schedule, ensure that the general test structure is consistent including SAP session logon and logoff details.
For example, if split test a contains the session logon details and split test c contains the logoff transaction, place them in the correct order in the schedule user group.
SAP tests can be split only at the transaction level. When the test is executed in the schedule, it must start with a SAP logon transaction and end with a SAP logoff transaction. To split an SAP test:
- In the Test Navigator, browse to the test and double-click it.
- Right-click a SAP transaction in the test, and select Split Test. The page that you click is the first page of the new test.
- In the New Test Names window, confirm the location of the split, optionally provide names and descriptions for the split tests, and click Next.
- In the Split Test window, examine the changes to be performed as a result of the split, and click Finish.
Example
For example, you could record a test containing the following actions:
- Logging on to a server.
- Create an entry on the server and removing the entry.
- Editing an entry, validating that the change occurred, and restoring the entry.
- Logging off of the server.
You then split the test into four parts: Logon, Create, Edit, and Logoff. You create a schedule that runs virtual users selected from a datapool. Each virtual user runs the Logon test, performs various combinations of the Create and Edit tests, and finally runs the Logoff test.
Related
SAP test editor overview
Related tasks
Verify expected behavior Add elements to an SAP test Viewing GUI data in the SAP Protocol Data view