Re running failed cucumber scenarios on failure

Hi all,

I am using cucumber-jvm with selenium webdriver using maven, to automate web based application. The scripts are running from jenkins  CI. I want to re execute the scenarions again in case of failure. Please let me know how is this possible.

Default Asked on March 3, 2015 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    You can have

    format rerun in your parameters.

    Thanks
    Virender

    Professor Answered on March 5, 2015.

    Thanks for the reply Virender.
    I am getting below exception on running the test
    cucumber.runtime.CucumberException: Couldn’t load formatter class: rerun
    at cucumber.runtime.formatter.FormatterFactory.loadClass(FormatterFactory.java:135)

    on March 7, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.