JVM] Retry failed tests in jenkins.

111 views
Skip to first unread message

Ina Lieder

unread,
Apr 11, 2014, 2:13:58 PM4/11/14
to cu...@googlegroups.com

Hello,

we are using cucumber tests with a jenkins server to test a website.

If the tests run manually and separate (locally or on the server) they all pass.

But if Jenkins runs all scenarios there is always one witch mysteriously failed, because of a strange Selenium- behavior: by any one of 100 scenarios  Selenium is suddenly unable to click on any link.  And this scenario get failed. The next scenario, wich uses the same steps will pass.   After many weeks of searching i did not find any solution for this strange case.

Also i thought there will be a solution to rerun only the failed tests on jenkins server and a way to ignore the first failed test-result ( to mark as failed only those scenarios, wich fails more then only one time).

Any ideas how to solve it?

we use cucumber(1.1.2 vers.) with selenium-firefox-driver(2.41) and Junit build with Maven.

Thank you,

Ina

jovistruck

unread,
Apr 12, 2014, 5:51:00 AM4/12/14
to cu...@googlegroups.com
Has it something to do with your test flow?. When running them in a bunch, your previous test leaving it a state where the element isn't present or clickable?. How about running this failed case with just one more additional case (2 tests). Does it work?
Reply all
Reply to author
Forward
0 new messages