from pytest_bdd import scenario, scenarios, given, when, then, parsers
scenarios('../feature')
Able to get the function for the scenario
request.node.nodeid gives scenario outline examples. However, is there a way to get the feature file name during the execution of test in any of the @Given or @when methods.
how to get the current feature file which is under execution.
My project structure:
test_check.py has
Able to get the function for the scenario request.node.nodeid gives scenario outline examples. However, is there a way to get the feature file name during the execution of test in any of the @Given or @when methods.