Hi!
Trying to import test execution results using XRAY API.
Without custom fields values it works well:
Payload ={'info': {'testPlanKey': 'LQ-000', 'description': 'DDDDD', 'summary': 'Regression summary', 'version': '', 'startDate': '2024-06-16T07:40:26+0000', 'finishDate': '2024-06-16T07:40:29+0000'},
'tests': [{'testKey': 'LQ-1474', 'status': 'PASSED'}, {'testKey': 'LQ-1475', 'status': 'PASSED'}]}
But if I tried to add custom fields values, got the error:
Payload = {'info': {'testPlanKey': 'LQ-000', 'description': 'DDD', 'summary': 'Regression summary ', 'version': '', 'startDate': '2024-06-16T07:40:26+0000', 'finishDate': '2024-06-16T07:40:29+0000'},
'tests': [{'testKey': 'LQ-1474', 'status': 'PASSED', 'customFields': [{'id': 11723, 'value': ['2024.1.10.1.5.RC.1']}]}, {'testKey': 'LQ-1475', 'status': 'PASSED'}]}
The error is:
'{"error":"Result is not valid Xray Format"}'
Please help.
Hi @Oleg Shtilerman ,
Welcome to the Community.
I would suggest you contact our Support through this Portal. They can assist you with this.
Still, the errors you mention suggest you are not using the correct Xray JSON format. Do you want to take a look at this article from our documentation:
Best
Francisco - Xblend
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.