Hi Team,
we are trying to import our testng_results.xml file using curl command by passing the testplankey as a parameter.
The command we are using is --
c:\> 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?testPlankey=XYZ-257
The output of this command is -- {"error":"Test Execution key or Project key is required."}
When added the ProjectKey to the parameter --
c:\> 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?testPlankey=XYZ-257&projectKey=XYZ
we get following error --
'testplankey' is not recognized as an internal or external command,
operable program or batch file.
any help would be appreciated here.
Hi @AbhijitM ,
please use the url between "".
Also, the testPlankey parameter should be testPlanKey.
Picking your previous command as basis, the following one should work
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?testPlanKey=XYZ-257&projectKey=XYZ"
Regards,
Sergio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.