Currently we are having testng results which are pushed to jira using rest API curl command which is creating new TestExecutionKey for each push but we need to push to the already existing TestExecutionKey
We have created TestExecution using rest API with our own details like label,compenent, description
Kindly help how can we mention TestExecutionKey in curl command so that it should push to respective test execution
Currently used command
curl -H "Content-Type: multipart/form-data" -u username:Password -F "file=@testng-results.xml" "https://MyServerName/jira/rest/raven/1.0/import/execution/testng?projectKey=XYZ
We are using Jira server not the cloud
Hi @Prajwal kumar R -- welcome to the community,
according to the documentation
the query parameter "testExecKey" should do the work.
try the following call:
curl -H "Content-Type: multipart/form-data" -u username:Password -F "file=@testng-results.xml" "https://MyServerName/rest/raven/1.0/import/execution/testng?projectKey=XYZ&testExecKey=XYZ-123
Hope this is helpful and covers your requirement.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.