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

use Verify or a custom check and log structure instead of assert. Assert is only used when  you want to stop the execution of the test when it fails.  In short at absolutely necessary conditions, without which there is no point in executing the test further.

Virender

Professor Answered on April 28, 2015.
Add Comment

Your Answer

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