You can use SAP sequence elements to specify complex interactions
with the SAP GUI that involve multiple actions within a single object.
Before you begin
SAP sequence elements represent complex user interactions
with the SAP GUI, and contain multiple SAP set, get, or call child
elements where each child element of the sequence is an action that
relies on the return result of the preceding child element. In most
cases, SAP sequences are recorded when you interact with complex SAP
GUI objects. However, with advanced knowledge of the SAP API, you
can use SAP sequences to create complex actions or verification points.
SAP
sequence elements are contained in SAP screen elements.
You
can use either the test editor or the SAP Protocol Data view
to create or edit SAP sequences. When using the SAP Protocol
Data view, you can select SAP screen objects from the screen
capture and copy the information directly to the new SAP sequence
element.
The SAP Protocol Data view contains two pages that
are synchronized with each other and with 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 in 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 a SAP screen. The SAP
Protocol Data view displays a screen capture of the selected
transaction.
- Inside the SAP screen, select where you want to enter the
new sequence. The Screen Capture page
of the SAP Protocol Data view displays the screen
capture of the current SAP screen.
- In the SAP Protocol Data view, right-click
the SAP GUI object for which you want to create the SAP sequence element,
and then click Create Element. This
opens the Create Element window, which already
contains the Identifier from the recorded session.
- Select Advanced, select SAP
Sequence in the Element type list,
and then click Finish.
- In the Test Contents area of the
test editor, select the SAP sequence and click to add a SAP set, get,
or call element to the SAP sequence.
- In the Test Contents area of the
test editor, select the SAP sequence, and then click Add or Insert to
add sequence child elements as required. In the Create
Element window, use the Cast button
to cast the results of the previous child element to match the expected
input type. See the SAP API documentation for detailed information
on SAP objects and calls.