I am sorry if this is already answered but I could not find this question in the community.
Here is what we are tying to do:
1. Create a new test via app with test type as Automated[Generic] but entering Summary & Test Definition. We are entering the test definition as test script path('.' separated)+summary. Let's assume the test key for this test is MYPROJ-999.
2. We then create a Test Plan and include this test in the test plan.
3. We run the automated test and generate Junit xml report.xml
4. We post the result using REST API with POST method.
curl -H "Content-Type: multipart/form-data" -u user:pwd -F "file=@pcx-qm-report-stg-exp.xml" https://jira.my.com/rest/raven/1.0/import/execution/junit?projectKey=MYPROJ^&testPlanKey=MYPROJ-702400178
Expected Result:
The result for MYPROJ-999 should be updated with PASS/FAILED under the Test Plan. No new test should be created.
Actual Result:
The API is creating a new test under the Test Plan. The existing test MYPROJ-999 is not updated instead a new test created.