The Store action is one of the most important actions in Qualibrate because it enables the user with the capability of storing an output value from the application under test and reuse it in another action from the same flow during execution.
You can store value by clicking a Store button on the recorder widget:
Example:
Store the sales order number from the Status Bar after the document is created.
Procedure:
Start the Recorder;
Go on with the actions needed to be performed on SAP to create a sales order. After saving it the sales order number will be displayed on the bottom status bar like this:
Select the
Store option in the Recorder widget and select the status bar as shown:
The SAP status bar text represents a concatenation of MessageParameter properties as you may see in more details by consulting the SAP Help documentation.
MessageParameter[0] = "Standard Order"
MessageParameter[1] = "15083"
MessageParameter[2] = "has been saved"
You only need to capture the sales order number which is stored under
MessageParameter[1]. Therefore, expand the Recorder widget and go to the Basic Configuration window where we can choose the MessageParameter[1] property of the SAP GuiStatusBar.
The default property captured by the Recorder is Text.
Change the
Select Control Property from Text to MessageParameter[1]
The Verification Test Result will represent now the sales number order we intend to store and reuse for our next Display Sales Order SAP flow.
Save the recording
Verify and Store functions have only the basic setting
If you want to further optimize the handling of the verify or store function, you can change the action to → Custom
Changing the action to “Custom” will port the configuration into a code snippet
To persist the new “Custom” action, you have to Save the configuration
If the configuration is not saved, the old “Verify” or “Store” configuration will be kept
Comments
0 comments
Please sign in to leave a comment.