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

testCase does not contain Scenario name #943

Closed
paul-phillips-ark opened this issue Oct 5, 2017 · 3 comments
Closed

testCase does not contain Scenario name #943

paul-phillips-ark opened this issue Oct 5, 2017 · 3 comments

Comments

@paul-phillips-ark
Copy link

When using 2.0.0, I used ScenarioResult to get the status of the test scenario and also the name of the current scenario. This was useful as I had a conditional statement on failure to take a screenshot and name it after the failed scenario, making it easy to see exactly where each scenario was falling. #919, I believe was used to 'fix' ScenarioResult as it was no longer functioning in more recent versions of Cucumber-js. I am now using V 3.0.3 as testCase gives me a similar function as ScenarioResult. However, unlike ScenarioResult, it does not contain the scenario name in the object (it does contain the status of the test though, at least). Is there a new method to get the name of the scenario? At the moment it seems to only give the name of the feature file this failure comes from, which is not specific enough for my needs. Thanks in advance :)

@charlierudolph
Copy link
Member

Closing as duplicate of #923, there is no way to get the name at the moment.

@paul-phillips-ark
Copy link
Author

My bad. Will use the uri and line features.

@lock
Copy link

lock bot commented Oct 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants