How can we prevent test steps from being skipped if a test step before fails #2933
Unanswered
Golshy
asked this question in
Help Needed
Replies: 2 comments 1 reply
-
You can try using |
Beta Was this translation helpful? Give feedback.
1 reply
-
I would need to see more details before I can say for sure. Which version of Nightwatch are you using? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose I have a test case with the following steps:
If step #3 "I validate number of items in wishlist" fails, the remainder of the steps should not be skipped. Rather, the script should attempt to proceed.
If step #4 "I navigate to product PDP" fails, then it is appropriate for the remainder of the steps to be skipped, as step #4 is critical functionality and must critical fail all the time.
Thus, is there a way to integrate a Soft fail vs a Hard fail in NightWatch?
So far we have attempted to add
skip_testcases_on_fail: false,
into our nightwatch.conf.js in the test_settings:{} , but it our test case still aborts after a single test step failure.Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions