How do I ensure the automatically generated test execution result inherit all attr from the test

Raushan Ranjan
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!
April 11, 2024

1. Create a Test Plan from xRay
2. First I ensure the test to be executed have been linked to Test plan created in step 1

3. Add test sets
4. Run the BDD tests from Linux, which generate a test execution JSON and successfully upload to Jira xRay
5. To update the test result in the Test plan, I have to identify the test from the Test execution tab
6. Edit the test execution Jira, add the test plan Jira number, and update
7. The test is updated with test status in the Test plan

 

In theory, steps 5 and 6 should not be required if I have already implemented step 2. It should inherit all the Test attributes, including which test plan it is linked to. Can someone please guide me to resolve this so I don't have to carry out steps 5 and 6

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Manuel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2024

Hi @Raushan Ranjan , you need to provide the Test Plan issue key while uploading the test results. For that, you need to use the cucumber multipart endpoint and pass  JSON with that info. You'll need to know the custom field ID of the "Test Plan" custom field.

Please have a look at this documentation for the cucumber multipart endpoint.

If your Test Plan custom field has, for example id 10032, the INFO json to use would be something like the following. If you don't know the Test Plan custom field id, please ask your Jira administrator.

 

{

    "fields": {

        "project": {

            "KEY": "DEMO"
        },

        "summary": "Test Execution for cucumber Execution",
        "issuetype": {
            "name": "Test Execution"
        },

        "customfield_10032" : [
            "TES-38"
        ]
    }

}

 

 

TAGS
AUG Leaders

Atlassian Community Events