...
Example: py.test --cucumberjson=/user/path/result.json
If feature file contains only Scenarios & Scenario Outlines
...
Code Block |
---|
py.test --cucumberjson=<path to json report> --cucumberjson-expanded |
Example: py.test --cucumberjson=/user/path/result.json --cucumberjson-expanded
Note : If you are using tags @testEntityKey and @requirementKey to reuse QMetry assets in feature file, the output file generated from Py test BDD will skip the @ character and will only have testEntityKey & requirementKey in the output file. Importing this file will not link the test cases or requirements in QMetry. You may need to write a converter that would take input as your output file of py test and add the @ character to tags testEntityKey & requirementKey and generate the new output file. The converted output file can be imported to QMetry.
Result File Output
Sample Project: https://pypi.org/project/pytest-bdd/
...