Cucumber Config Framework
Cucumber Config Framework
Add new config.properties (URL, browserName, data of test cases: password, login, email, address ...)
9-Implement PageObjectModel.java src/test/java (package pageObjects) (locate the web page elements (By
Xpath, By Id) and return the WebElements located)
10-Implement ConfigReader.java src/main/java (package utils) (it is a file reader to read group of properties and
return it) (file config.properties should exist)
12- Implement HooksApp.java (@Before, @After ...) src/test/java (package hooks) (needs driverFactory
configReader)
src/test/java runner
driverFactory
pageObjects
hooks
stepDefinition
JunitRunner: CucumberOptions:
Options Type Purpose Default Value
dryRun true: Checks if all the Steps have the Step Definition false
features set: The paths of the feature files {}
glue set: The paths of the step definition files {}
tags instruct: What tags in the features files should be executed {}
monochrome true: Display the console Output in much readable wav false
format set: What all report formaters to use false
strict true: Will fail execution if there are undefined or pending steps false
plugin set: generate cucumber reports {}