Getting test-information out of nightwatch+cucumber? #3255
Unanswered
asos-saveriocutrupi
asked this question in
Help Needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all.
I'm currently in the middle of writing a feature-testing framework using Nightwatch 2.2.2 with Cucumber, and I need information on the feature and scenario of the current test, before the test is in progress (I'm using Cucumber's Before).
I've tried looking through the browser and World objects, but it doesn't seem like they contain info on current tests when using Cucumber integration.
So the question is: is there a way to get that info that I haven't found? A simple solution I'm not aware of?
EDIT: I've found a solution to this on my own, sharing it here for posterity:
The current test info can be accessed inside a Before or other hooks by passing a parameter
Beta Was this translation helpful? Give feedback.
All reactions