Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting error as 'testplankey' is not recognized as an internal or external command

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.

1 answer

1 accepted

2 votes
Answer accepted

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

This worked. Thank you @Sergio Freire.

Like Sergio Freire likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you