0

I am using selenium webdriver and Junit. I am able to run the tests from jenkin. What are the commands to run that tests or scenario from command line?

  • Use the cucumber.api.cli.Main class and provide the options necessary. You can get the options by using '--help' as argument to this class. Or check out the contents of this question to get them ready made - https://stackoverflow.com/questions/43696842/usage-java-cucumber-api-cli-main-options-filedirlineline/43706445 – Grasshopper Sep 14 '17 at 05:45
  • If you have some sort of testrunner class such as : http://toolsqa.com/cucumber/junit-test-runner-class/ then you can just run by "mvn test" make sure yo name this class either Test* or *Test so that it is recognised as the runner class. – Chai Sep 19 '17 at 13:37

0 Answers0