Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After a scenario failure, cucumber-nightwatch stops running the remaining scenarios #28

Closed
sharathkonda opened this issue Feb 3, 2016 · 7 comments
Labels

Comments

@sharathkonda
Copy link

I got 5 scenarios in a feature.

If the 3rd scenario is failed, the runner stops and doesnt' continue to execute the remaining scenarios in that feature file.

@mucsi96
Copy link
Owner

mucsi96 commented Feb 4, 2016

Thanks for feedback!

This is the expected behavior. See Nightwatch.js assertions
Can I close this issue?

@ivancho98
Copy link

Actually, it is possible that @sharathkonda is using .verify, in that case the runner should not stop.

@mucsi96
Copy link
Owner

mucsi96 commented Feb 4, 2016

@sharathkonda are you using .verify for assertions?

@sharathkonda
Copy link
Author

I use in my common library the nightwatch assertion.

this.api.assert.visible(selector);

On 4 February 2016 at 10:13, Igor Muchychka notifications@github.com
wrote:

@sharathkonda https://github.com/sharathkonda are you using .verify for
assertions?


Reply to this email directly or view it on GitHub
#28 (comment)
.

@mucsi96
Copy link
Owner

mucsi96 commented Feb 4, 2016

Try to replace assert with verify. This way when an assertion fails, the test logs the failure and continues with other assertions.

@rohitkashyapvatta
Copy link

This is happening in our case as well, the test step failure , fails the other scenarios of the suite with same error "at World. (/home/jenkins/workspace/.............................)" . Can you please advise what is happening here?

@JoseThen
Copy link

JoseThen commented May 7, 2018

I am seeing the same as well, using : client.verify.elementPresent(elements) within a loop, stops once it fails and does not continue with the rest of the elements in the loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants