Skip to main content

Running POS Automation Tests Using Cucumber

Adding Enactor Step Definition Filters

To access the Enactor behaviour-driven development steps within features files, Cucumber filters should be defined.

To Define existing Cucumber Glue Packages, Open the Eclipse Preferences menu and expand the Cucumber group.

Select Java

Select Cumber Glue Packages

Select Add package... button

For the Search input text enter com.enactor.retail.pos.stepDefinitions and select the first option

Select Retail Pos Step Definitions

Click OK... button

Apply and Close Step Defs

Click Apply and Close... button

Update Parameters

To run a feture test, you should first set up the parameters correctly in the launcher.properties file.

Refer Launcher Properties to setup launcher properties correctly.

Once you have set up, your launcher.properties file should be shown as below.

Launcher Properties

Running a feature

In cucumber, you can use the run option infront of the tag of the feature file to run the test

Cucumber Run

Or else, you can right click on the feature file and use Run as -> Cucumber feature option

Run as Cucumber