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.

Note - informationBe sure to review the Sage X3 Automated Test Platform - User guide, specifically the section on Methodology and recommendations.

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

Note - informationStep definition examples are provided for each graphical component to help you understand which step definitions to use for the different graphical components or context.