How to get the step name description in pytest-bdd? #671
Unanswered
Nagendrababu1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
want to get this step description name "capture user logout option navigated screen" within the function. But not able to get it
@when(parsers.parse('capture "{user}" logout option navigated screen'), converters=CONVERTERS)
def step_capture_login_option_navigated_screen(context, user, request):
step_name = request.node.name #This prints Scenario name
I have tried request.node.name but it's giving the Scenario name, but I need exact step name. Please suggest possible ways to get the scenario description
Beta Was this translation helpful? Give feedback.
All reactions