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
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"
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.