XRAY Jira - Can we create test execution set from User Story

Hitesh Sharma February 6, 2019

Hi All,

I have created a user story and idea is to link with Test Sets and then Tests and Test Execution.

When we run via scrum, then it good to have to walkthrough just via User story.

I am not able to find how to create the test execution set from user story or test execution set link and visible at user story level.

 

Any suggestions ?

4 answers

0 votes
Heenaben Sardarbhai Chaudhary August 29, 2024

Hi @Hitesh Sharma ,

If you need a solution to automate test case creation for your Jira stories, the Test Case Assistant for Jira is a great option. This plugin streamlines the process by automatically generating and linking test cases to your user stories based on your specified templates.

With just a click on "Test Case Assistant" within your Jira story, you can effortlessly create and link test cases. The app also allows customization of test case formats using various prompts and leverages advanced OpenAI models to ensure the generated test cases are relevant and high-quality. For extended functionality and higher usage limits, you can easily integrate your own OpenAI API token within the app settings.

You can explore more about the app here:
Market place link

Regards,

Heena Chaudhary.

0 votes
Wladi E_
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!
December 19, 2022

Hallo everybody,

I have a similiar issue:

I want a Test Execution to be linked automatically to a Story (Tests are already linked to the Story) when creating the TE right out of the Story. I am pretty sure it was possible just a couple weeks ago...(?)

Thank you.

Regards,

Wladi

0 votes
Mukundakrishnan G
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!
May 3, 2021

Well. The reason why you see that because the filter in the "Test Coverage" part of a user story has "latest execution" and "All environments" selected by default. In agile the focus is on the user stories(requirements). "Is the product behaving as it supposed to?" that is the question. Xray complements it by allowing us to link the test cases to make sure that the requirement works or not. So linking all wanted test cases to a user story(requirement) and also executing and passing all those test cases( in a particular version) means that the requirement has been implemented properly. So even if you are executing the same test case as part of another user story in the same version of the product the status will reflect in the old user story because the previous requirement is also being validated automatically.  This removed the documentation overhead to track what test cases a tester executed for different user stories for the same version of the product.

Coming back to your question, to see the added test cases in "TODO", all you have to do is to select the version under test in the "TEST COVERAGE" section of the user story. You have to add the version that is under test in jira to be able to do that. Also you will be able to see all the execution done for the test case as part of testing the user story, knowingly of unknowingly under test runs.

image.png

0 votes
Inês Silva
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.
February 15, 2019

Hi Hitesh,

You can link a requirement (Story) with a Test Set (instead of individual Tests) using the "tested by" link type.
This way the requirement will be tested by all the Tests that belong to the Test Set.
Additionally you can create Sub Test Executions as the requirement sub task and then put the Tests from the Test Set into to this Sub Test Execution.
And this way you can track down the Test Executions (Sub) associated with the requirement in the Agile boards.
Please check our documentation about Agile Enhancements here: https://confluence.xpand-it.com/display/public/XRAY/Agile+Enhancements.

Best regards,

Xray Team

Hitesh Sharma February 19, 2019

Thanks once again but this lead me more confusion :( 

I have user story linked with test set now and that test set linked with Test plan having test execution set with say Pass, fail and pass status for 3 test cases.

Now I have another user story and want to re-run the same above 3 test case. I have linked the test set with user story now then I could see all three test cases are now populated with Pass, fail and Pass status which I think is incorrect.

I am expecting default status should be TODO so when I can create test execution out of test plan then the status should reflect accordingly. 

Am i making sense here ?

Like # people like this
andrei.dobrin@zitec.com
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!
May 9, 2020

I have the same problem, is there any way to work around this?

If you have the same TestCase linked to different uset stories, it will be nice to have a different status for them, somehow to make a correlation with the test execution linked to that US.

Thanks,

Andrei.

Like # people like this
amolkhade
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!
October 27, 2020

I am also facing same problem.  Is there a solution or workaround for this??

testjira user
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!
November 2, 2021

Is there any solution for this yet?

Rogério Paiva - Xray Xporter
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, 2021

Hello,

There might be some confusion about this since, in Xray, the User Stories are linked with Tests and not Test Executions.

The idea is that in Xray, a requirement (User Story, Feature, etc.) is tested by a Test case (or group of tests: Test Set).

Suppose it is necessary to have a specific Test Execution to test a given requirement. In that case, it could be an option to create a specific Test for that particular requirement so that a specific Test Execution is related to the requirement through the specific Test case.

This is the way Xray was designed, and it is supposed to be used.

However, if this solution does not work for you, it is best to contact Xray Support (http://Xraysupport.getXray.app) to share your configuration so that the support team can investigate an alternative that suits your needs.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

J_D November 23, 2021

Did you mean

1. User story A

  - Test 1

  - Test 2

2a. Test execution release 1.0

  - Test 1 passed

  - Test 2 failed

2b. Test execution release 1.1

 - Test 2 passed

Final User story will show 2 test executions 1.0, 1.1?

Rogério Paiva - Xray Xporter
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.
December 3, 2021

Hi @J_D 

Yes, in the User Story you will see the result of all the Test Execution status, and you may also analyze it from the scope of a specific release.

You can know what is the status of User Story A based on the tests of release 1.0, if you use the scope for release 1.0. And the status of the User Story A based on the tests for release 1.1, if you can change the scope to release 1.1.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events