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

XRAY-I want to automate adding test cases to a story/taks

Andrea Pareja August 15, 2024

We are using XRAY for manual testing. 

QA planning is done at the execution level so all test cases are first added. 

I want to automate adding test cases to a story/task test coverage by selecting all cases included in an execution. 

Or what other way do we have to link a set of test cases (that are not part of a test set) to their corresponding story/task?

4 answers

2 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Francisco Fonseca _Xray_
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.
August 19, 2024

Hi @Andrea Pareja 

I hope to be of assistance.

If I understood correctly you want, in the context of a Story, to be able to add Tests to that story for coverage purposes.

Please note that what @Stefan Salzl mentioned is accurate as you want to specify which requirements you want testing and start from there, not the other way around.

However, should use the instance as a Test Repo and want to match the planned executions to Story Requirements at a later stage one way to do it is by using a JQL to add those tests. Example:

Test Execution "X" is a phase 1 login test scenario. Add a label to all those tests with "LoginPhase1". Then in the Story issue type, click the button "Test Coverage" followed by "Add Existing Tests" and use the JQL "issuetype = Test AND labels = LoginPhase1"

I hope it helps, best, Francisco.

0 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 18, 2024

Hi @Andrea Pareja 

How are test cases created at the moment? Could you describe your current process/standard operating procedure in a few sentences?

From my point of view it would make sense the other way round than you described - create test cases out of stories/tasks which links them automatically to that issue. Afterwards you could create the test execution with all the test cases from a specific story/task.

Best
Stefan

1 vote
Andrea Pareja August 19, 2024

Hi @Stefan Salzl and @Francisco Fonseca _Xray_ 

 

Thanks for your answers; both are helpful.

I agree that the process is to create the test cases based on the requirements of each task and then link them to the stories and then the executions. At some point, our process started to miss some steps, and we started to create the test case, looking at the story and requirements but only linking them to the execution. So we will start doing that again. 

And I'll use Franciscos's JQL to link test cases to some of our In QA stories that al ready have test cases completed. 

0 votes
Armitha Reddy Toorpu Ceema
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.
August 29, 2024

Hi Andrea Pareja,

 

Good day!

 

If you're looking for a plugin to streamline test case management, check out our Test Case Assistant for Jira. Our app simplifies the process by automatically generating and linking test cases to user stories. 

The Test Case Assistant for Jira app simplifies test case management by automatically generating and linking test cases to user stories using your templates. After opening a user story, just click "Test Case Assistant" to create and link test cases effortlessly. Customize the format with various prompts and easily manage the generated test cases. The app uses advanced OpenAI models to ensure quality and relevance. For continued access and higher limits, configure your own OpenAI API token within the app settings.

 

Please find the App link below:-

https://marketplace.atlassian.com/apps/1235007/test-case-assistant-for-jira?hosting=cloud&tab=overview

 

Thanks & Regards,

Armitha Reddy Toorpu Ceema,

Atlassian Engineer.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events