- gradle
- Cucumber for Java plugin for IntelliJ
- Gherkin for IntelliJ
- clone repository
- open build.gradle file in IDE (IntelliJ)
- import dependencies with gradle
- add your .feature files with scenarios
- create custom steps class / steps classes
- generate steps- in .feature file press 'alt+enter' shortcut and choose 'Create step definition' option, choose created steps class / steps classes to paste steps
- create custom page objects classes with methods
- delete example .feature files, steps classes and page objects classes
-Dselenide.browser=chrome runTests
-Dselenide.browser=firefox runTests
-Dselenide.browser=ie runTests
clean test
clean -Dselenide.browser=chrome test
clean -Dselenide.browser=firefox test
clean -Dselenide.browser=ie test
-Dselenide.browser=chrome -Dselenide.headless=true runTests
run CucumberRunner class
or run .feature file / directory with .feature files / scenario in .feature file
Reports are placed in 'target' directory. To run report in browser, open 'target\html\index.html' file and choose browser.
Reports are placed in 'build' directory. To run report in browser, open 'build/reports/tests/runTests/index.html' file and choose browser.
- runTests
- deleteCucumberReports