SAP Optional TestSteps

Test automation in the SAP environment requires an SAP GUI to be installed on the workplace intended for the automation. A prerequisite for executing the procedures described in this document with the associated data is an IDES Installation (see http://help.sap.com/).

Optional TestSteps enable to execute TestCases in which it is not known prior to runtime whether or not a screen will be displayed. An example of a frequent use case is popup windows that are only shown with the first execution in a month. The window is to be steered in such cases. If no popup window appears, the TestCase is to be executed without an error message.

You can download the package from the Tricentis Support Portal as described in chapter "Exchange Portal".

For further information on licenses, please contact Tricentis Support.

Modules

Modules whose TestSteps should be optionally steered must contain the entry SAPOptStep.vbs in the parameter Keyword.

In addition, the parameter CaptionList must be created on the Module level (for tables: on the table attribute level). The caption of the optional window must be specified as a parameter value. Several captions are specified separated by semicolons.

Optional TestSteps - Module

TestSteps

The names of optional TestSteps must start with <optional>.

Example

<optional>Popup Date

TestCase example

The TestCase examples Popup without table and Popup with table show the procedures using the transaction VK11 Create condition record. If several condition records are created for the same material and the same period, a popup window is displayed after saving, which warns against overwriting an existing condition.

Popup without table

The TestCase Popup without table shows the steering of a popup without a table. In the TestStep Confirmation <optional>, the Valid from date is verified and then confirmed with Enter if the caption of the current screen matches with an entry.

If the caption of the current screen does not match any of the entries in the parameter CaptionList, the step is ignored.

Popup without table

Popup with table

In the TestStep Confirmation <optional>, the Valid from date in the table is verified and then confirmed with Enter if the caption of the current screen matches an entry. If the caption of the current screen does not match any of the entries in the parameter CaptionList, the step is ignored. The parameter CaptionList must also exist on the table level.

Popup with table