I want to rerun failed end-to-end tests. I'm using Jbehave and WebDriver, Java. Currently I'm using Maven but going to migrate to Gradle. Is there any solution?
Asked
Active
Viewed 1,240 times
1
-
Why can't you relaunch the tests? Also, most of the IDE allow you , for a set of launched test whose have been launche by the IDE , to rerun only the one who have failed. – sab Mar 16 '16 at 11:02
-
I need to relaunch them automatically during test run on Jenkins. – Olena Shyshkova Mar 17 '16 at 17:41
-
1Actually I got a good recommendation in JBehave user group "You can throw a RestartingStoryFailure or RestartingScenarioFailure. " – Olena Shyshkova Mar 17 '16 at 17:42
-
If I understand, you want to relaunch a test who have failed, with the same code? Test aren't supposed to have the same result launch after launch? – sab Mar 17 '16 at 20:25
1 Answers
0
I think JBehave is able to run JUnit stories, and so, you might use a JUnit @Rule
to implement the retries mechanism. Take a look to this.

Community
- 1
- 1

Boni García
- 4,618
- 5
- 28
- 44