Adding an SAP verification point
With SAP get and SAP call elements, you can retrieve a value from the SAP GUI to create verification points on an SAP screen element.
Before you begin
When you add SAP verification points, SAP get elements, and some SAP calls, retrieve the data from objects in the SAP GUI, such as windows or text fields. SAP get and SAP call elements are contained in SAP screens in the test suite. SAP screens can be windows, dialog boxes, or transaction screens that are part of a recorded transaction.
You can use either the test editor or the SAP Protocol Data view to create or edit SAP get and SAP call elements and place verification points on them. When using the SAP Protocol Data view, you can select SAP screen elements from the screen capture to specify the SAP GUI identifier for the get event. Using this method to create or edit an SAP verification point is easier than adding it manually from the test editor.
- Screen Capture displays a graphical screen capture of the SAP GUI. You can select all GUI objects such as windows, buttons, fields or areas.
- Object Data provides information about the selected GUI object: identifier, type, name, text, tooltip, and subtype.
Procedure
- Open the test editor and the SAP Protocol Data view.
If the SAP Protocol Data view is not open, click .
- In the Test Contents area of the
test editor, expand a transaction and an SAP screen.The SAP Protocol Data view displays a screen capture of the selected transaction.
- Inside the transaction, select the item for which you want
to enter a new value.The Screen Capture page of the SAP Protocol Data view displays the screen capture of the SAP GUI with the corresponding GUI object highlighted in red.
- In the SAP Protocol Data view, right-click the GUI field
that you want to verify, and then select Create Verification
Point.If you want to create an advanced verification point using an SAP GUI call method, then you can select Create Element instead.
- In the Create Verification Point or Create
Element window, specify the expected value for the verification
point.
- If you want to verify a text value in the SAP GUI object, ensure that Verify text is selected, and type the Expected value that you want to verify; then click Finish.
- If you want to verify advanced properties of the SAP GUI object, you can select Advanced, and then specify the properties attached to the GUI object as well as the Expected values. Refer to SAP documentation for information about these properties.
- If you selected Create Element to create a verification point on an SAP call, then select Advanced, choose an Element type that returns a value, and then specify the properties attached to the GUI object. Refer to SAP documentation for information about these properties.