Open NitroTamagotschi opened 11 months ago
JSON format used to import Test results does not have iterations
field.
https://docs.getxray.app/display/XRAY/v2.0#/Import/post-import-execution
Yes you're right. Its only supported for manual tests until today
Hi i can able to import results to jira by using below pytest hook. test_input.json has test_key: "JIRA-1" my tests created through parameterized /pytest_generate_tests hook
def pytest_runtest_call(self, item):
inputdict= item.callspec.params["test_case"]
test_key=inputdict.test_key
if not test_key == "":
item.add_marker(pytest.mark.xray(f'{test_key}'))
It would be nice if parameterized tests would be supported as well. So that tests which got executed in multiple iterations with different parameters as documented here. An example you'll find below under key iterations