Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pushing testng results to existing TestExecutionKey

Prajwal kumar R
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 16, 2022

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 

1 answer

0 votes
Stefan Salzl
Community Champion
November 5, 2022

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events