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

Mark Fail at respective steps instead of last step #4

Open
Joothi opened this issue Mar 25, 2024 · 1 comment
Open

Mark Fail at respective steps instead of last step #4

Joothi opened this issue Mar 25, 2024 · 1 comment

Comments

@Joothi
Copy link

Joothi commented Mar 25, 2024

Hi Alfonso,

Is there anyway we can fail the respective step in cucumber WDIO instead of making fail at last step.

For example:
Given As a admin user I am able to see the dashboard in Admin View
And I am able to see the admin logo
Then I am able to add users

In the above, if I am adding softAssert in Given, And, Then, in case of failure at Given I can able to see that failure occurs in last step only(Then).

I am using Multiple Cucumber HTML Report, the consolidated failure is shown in the flush and marking the Given as PASS. This makes the report invalid to the business.

@alfonso-presa could you help on this?

@alfonso-presa
Copy link
Owner

If you want the execution to reach the end, I don't think that's possible, at least without messing with the reporters code. I guess you could potentially modify the report your self based on the information of the failure...

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

No branches or pull requests

2 participants