Hello,
Hope you are doing well!.
I'm trying to import test execution with a few test cases but unable to do so.
API: api/v1/import/execution/
Input JSON file content
{
"tests": [
{
"testKey": "TK-0001",
"status": "FAILED",
"comment": "Error: expected 400 \"Bad Request\", got 200 \"OK\". Along with some json string."
}
],
"info": {
"summary": "Automated TestExecution for release V1.2",
"description": "This execution is automatically created when importing execution results from an external source"
}
}Response:
{"error":"Error creating Test Execution - Issue create failed!"}NOTE: As per the documentation, https://docs.getxray.app/display/XRAY/Import+Execution+Results+-+REST#ImportExecutionResultsREST-XrayJSONresults, If I do not provide testExecutionKey , a new test execution would be created using info object and all the tests in tests object would be associated to it.
I'm not sure if I'm doing something wrong. Your inputs would be highly appreciated.
Thanks,
Zaid