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 Add package... button
For the Search input text enter com.enactor.retail.pos.stepDefinitions and select the first option
Click OK... button
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.
Running a feature
In cucumber, you can use the run option infront of the tag of the feature file to run the test
Or else, you can right click on the feature file and use Run as -> Cucumber feature option