I am making a XRAY REST API request from JEST to JIRA cloud as below,
https://adneurope.atlassian.net/api/v2/import/execution
I am also putting JSON Body containing execution results as below,
{
testExecutionKey: 'XAUTO-15',
info: {
summary: 'Execution of automated tests for release v1.3',
description: 'TEST!!!! This execution is automatically created when importing execution results from an external source',
version: 'Beta',
user: 'Anmol Fattepur',
revision: '1.0.42134',
startDate: '2014-08-30T11:47:35+01:00',
finishDate: '2014-08-30T11:53:00+01:00',
testPlanKey: 'DEMO-100',
testEnvironments: ['UAT'],
},
tests: [
{
testKey: 'XAUTO-4',
start: '2014-08-30T11:47:35+01:00',
finish: '2014-08-30T11:50:56+01:00',
comment: 'Successful execution',
status: 'PASSED',
},
],
}
It fails with response as below,
Symbol(Response internals)]: {
url: 'https://adneurope.atlassian.net/api/v2/import/execution',
status: 404,
statusText: 'Not Found',
headers: Headers { [Symbol(map)]: [Object: null prototype] },
counter: 0