Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

xRay: When creating a test execution from a test plan, the tests are not created inside it

Anna Lucovsky February 14, 2022

Hello,

 

We're using Jira server on-premises with xRay. I created a test plan and a test execution from the test plan (in several ways). However, the test execution is always created empty and I need to re-add tests to it.

Is it a bug or some configuration issues?

 

Thank you

3 answers

1 accepted

0 votes
Answer accepted
Stefan Salzl
Community Champion
February 14, 2022

Hi @Anna Lucovsky and welcome to the community,

for gaining better insights of your problem could you please provide following screenshots:

  • your testplan (with the test cases)
  • the setting/configuration screen when you create the test execution
  • the test execution issue after creation

 

Thanks in advance.

Best
Stefan

Anna Lucovsky February 15, 2022

Hi @Stefan Salzl ,

 

Thank you! Please see the screenshots attached.

Test Plan:

Test Plan.png

Create Test Execution (All Tests):

Config Screen.png

Config Screen2.png

Test Execution:

Test Execution.png

Best,

 

Anna

Like Stefan Salzl likes this
Stefan Salzl
Community Champion
February 15, 2022

Thank you very much @Anna Lucovsky 

There should be a setting when clicking the "create execution" button regarding which tests you want to have in the new test execution (all, only a certain test status,....)

 

  • So when you click "create execution" do you see something similar to this:

image.png

  • and if so: which option did you chose?

 

Thanks in advance.

 

Best
Stefan

Stefan Salzl
Community Champion
February 15, 2022

Hi @Anna Lucovsky ,
Please ignore my last answer. I just saw that you mentioned the "all tests" in the first screenshot.

Sorry for the confusion.

 

Best
Stefan

Stefan Salzl
Community Champion
February 15, 2022

Hi @Anna Lucovsky ,

From your screenshot everything looks fine (unless that there are no tests listed during creating the execution).

 

Did this work in the past and is now a new behaviour?
What came to my mind is that there could be a correlation with permissions/statuses. There is a special setting for allowing executions of tests in certain statuses or with certain assignees (see link below):

https://docs.getxray.app/display/ProductKB/%5BXray+Server%5D+No+permissions+to+execute+Test+Executions

 

Could you please check those settings?

 

Best
Stefan

Anna Lucovsky February 15, 2022

Hi @Stefan Salzl ,

 

We've just implemented xRay, so it's our first time trying.

 

Best,

Anna

Like Stefan Salzl likes this
Stefan Salzl
Community Champion
February 15, 2022

Hi @Anna Lucovsky ,

I see :) Sure will find a solution to this ;)

 

There is one thing in your first screenshot that kinda confuses me:

It shows one testcase in the list that says passed but the overall execution doesn´t show any passed part but all 81 testcases in "to do". Could you please who the whole testplan issue (including the list of tests).

 

Furthermore could you check if you are allowed to edit the testplan issue?

 

Best
Stefan

Anna Lucovsky February 15, 2022

Hi @Stefan Salzl ,

 

Please see the test plan. There's one execution we've attached (and added tests there separately), which has one passed tests, just to see the results.

Tests.png

Execs.png

 

Best,

 

Anna

Stefan Salzl
Community Champion
February 15, 2022

Hi @Anna Lucovsky ,
did you try to let any other user perform the action of creating the test execution out of the test plan? eg. any user that is an assignee of any of the test cases (eg. Michal Thal as seen in the screenshot) ?

Best
Stefan

Anna Lucovsky February 15, 2022

Hi @Stefan Salzl ,

 

I performed such a test - created a Test Plan assigned to me containing tests assigned to me - still the same result with the execution.

 

Best,

 

Anna

Stefan Salzl
Community Champion
February 15, 2022

Hi @Anna Lucovsky 

one last question that comes to my mind:

Do you have permission to edit issues (test plan issues) ? (there is a difference in permissions between create issue and edit issue)

 

In case you have full permission and it still doesn´t work my knowledge and focused questions come to an end =S and in this case I would rather suggest to contact xRay support.

Best

Stefan

Like Anna Lucovsky likes this
Stefan Salzl
Community Champion
February 15, 2022

@Anna Lucovsky 

BTW: in case you contact the support team and you get provided a solution I would appreciate if you could share the solution here as I could also learn from that :)

Best
Stefan

Like Anna Lucovsky likes this
Anna Lucovsky February 16, 2022

@Stefan Salzl Of course, I'll share it if I get one.

Like Stefan Salzl likes this
Shai Shapira September 11, 2022

Was there a solution for this?

Is it related to the screens used for test plan or test execution?

Anna Lucovsky September 11, 2022

It was related to both test plan and test execution, but at some point, it started working. Some admin action caused the fix, we don't know which one.

1 vote
Mohan
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 6, 2023

Hi All, 

Please follow the following steps-

  1. Goto settings
  2. Create new screen or configure existing screen.
  3. Add the field " Test association with test execution".s1.png
  4. Make sure you have added above screen, into screen scheme and used in project. Also make sure you have added into the issue type screen scheme.

If you have followed all the above steps then I hope you can see the test cases from test plan into test execution. 

But I am unable to create the linkage between test plan and test execution automatically even after getting all the linked test cases of test plan in test execution.

0 votes
Camila Rojas February 4, 2025

Hi ,
Is there a way to validate by script runner or automation that the Test Execution issue type is created only from the Create Test Executions button in the Test plan and not from the Create button in the Jira main menu? I am using Jira Data Center

Stefan Salzl
Community Champion
February 5, 2025

Hi @Camila Rojas 

Please open a new question for this as this one is a very old post and as far as I got you right the context is very different.

So please post a new question describing your use case in more details l, what exactly you wanna do? why you wanna do it? maybe also screenshosts that describe the problem.

thanks in advance.

Best
Stefan

Suggest an answer

Log in or Sign up to answer