Step definitions overview
Gherkin syntax
These automated tests follow actions usually performed by an end user. The test is built with step definitions written in natural language using Gherkin syntax. Each step uses Sage X3 graphical components, the actions to execute, and the data to use. This document provides step definition samples for each graphical component or action necessary to interact with Sage X3.
Important considerations
A set of step definitions should be for a signal graphical component. For example, do not try to combine step definitions for a text field with step definitions for a data table cell. Each step definition corresponds to a given context and it starts by selecting the graphical component first, after which it is possible to confirm the value or enter the value for the given graphical component.
There are dedicated step definitions for each graphical component as shown below.
Step definitions for a text field
#Text field: selection by name and entering a value, and press Enter:
Given the user selects the text field with name "Short description"
When the user writes "Sage" to the selected text field and press Enter
Step definitions for a check box field
#Text field: selection of a check box, and press Enter:
Given the user selects the check box with name "Intersite"
When the user selects the check box to ticked