Please suggest a alternative to the API '/rest/raven/1.0/testexec/{testExecKey}/executeTestBatch' in Jira xray cloud.
I have been using - 'https://xray.cloud.getxray.app/api/v2/import/execution'. But I have test cases distributed under multiple execution keys, for which I am running an iterator logic and this api instead of skipping the test cases it adds it to the every execution key.
Hi @Snigdha Choudhury
Welcome to the community.
I can't see directly what option you want but you van look at the GraphQL from Xray.
https://us.xray.cloud.getxray.app/doc/graphql/index.html
Late reply, but in case someone else lands here with the same loop problem./api/v2/import/execution treats every test in the payload as "this belongs to that execution", so if your iterator sends the full list to each key, Xray happily adds all of them everywhere. Two ways out: Keep the import endpoint, but group results by execution first and send each Test Execution only its own tests (info / testExecutionKey + that subset). If the tests are already in the executions and you just want to set statuses, skip the import and use GraphQL: getTestRuns (filter by test execution) to grab the test run IDs, then updateTestRunStatus(id, status) per run. That never adds anything new. Option 2 is closer to what executeTestBatch used to do on Server.
/api/v2/import/execution
updateTestRunStatus(id, status)
It looks like you're new here. Sign in or register to get started.