RE: How to Continue the Test step execution , even on failure of a Test step in Cucumber

Hi Guys ,
Am using Cucumber Framework with selenium. Currently if one test step fails  , all the other steps are getting skipped.How to Continue the Test step execution , even on failure of a Test step.

sudheer Default Asked on April 26, 2015 in Selenium WebDriver.
Add Comment
5 Answers

Are you using assertion in your test step? if there is an assertion in the test step or an exception, that test will cause the whole execution of the test to stop.

Try putting a try catch or not throwing an Assertion in that step and your execution will not stop.

Virender

Professor Answered on April 27, 2015.
Add Comment

Your Answer

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