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

Sudheer,

The whole point of assertion is to assert something, if not stop the further execution. We usually use assertions in situations where we know that if a particular thing fails there is no point in executing the test further.

I think what you are looking for is a simple Verify. Try to check for the condition and print a message in the report. Instead of applying assertion.

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.