So I'm trying to use the XRAY api to Import a JSON as a test execution.
I've tried having the test execution already created and have it in the first tags and the actual TEST issue in the scenario tags.
Also the custom field in the error is {"id":"customfield_11714","name":"Tests association with a Test Execution","custom":true,"orderable":true,"navigable":true,"searchable":true,"clauseNames":[],"schema":{"type":"array","custom":"com.xpandit.plugins.xray:testexec-tests-custom-field","customId":11714}},
Before adding the Test Execution as @BP-1084 I would get an error response that the Error assembling issue data: Field 'customfield_11714' cannot be set. It is not on the appropriate screen, or unknown.
JSON:
[
{
"uri": "C:\\TestProject\\Magento2-testing\\Source\\Features\\Magento2\\Orders.feature",
"id": "orders",
"tags": [
{
"name": "@BP-1084"
}
],
"keyword": "Feature",
"name": "Orders",
"line": 0,
"description": "asd",
"elements": [
{
"id": "orders",
"tags": [
{
"name": "@BP-1079"
}
],
"keyword": "Scenario",
"name": "failed order",
"line": 26,
"description": "",
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "I am on \"Home\" Page",
"line": 27,
"match": {
"location": ""
},
"result": {
"status": "passed",
"error_message": null,
"duration": 21847000000
},
"arguments": []
},
{
"keyword": "And",
"name": "I login with valid user",
"line": 28,
"match": {
"location": ""
},
"result": {
"status": "passed",
"error_message": null,
"duration": 27863000000
},
"arguments": []
},
{
"keyword": "And",
"name": "I add a physicalProduct to cart with quantity 1",
"line": 29,
"match": {
"location": ""
},
"result": {
"status": "failed",
"error_message": "chrome not reachable\n (Session info: chrome=94.0.4606.71)\n (Driver info: chromedriver=94.0.4606.61 (418b78f5838ed0b1c69bb4e51ea0252171854915-refs\/branch-heads\/4606@{#1204}),platform=Windows NT 10.0.19042 x86_64)",
"duration": 40077000000
},
"arguments": []
}
],
"examples": []
}
]
}
]
ENDPOINT: POST rest/raven/1.0/import/execution/cucumber