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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Howto make multiple execution of a single test in a test execution in Xray

Hi.

How can I add multiple test execution of the same test in a test execution? Or do i have to make multiple test execution for that test?

1 answer

0 votes
Dave Mathijs
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 13, 2023

Hi @Pål Skiftun Athammer welcome to the Atlassian Community!

Test Run is part of a Test Execution.

See the documentation article on Test Runs for more info.

So what i'm reading you can only have 1 test run pr test in each test execution. And have to make multiple test execution.

 

For me i have perform these tests 8 times.

So i have made test for each of the tests that needed to be tested. 

And then need to make 8 executions linked to my testplan for those tests.

Me problem is that I have to go back and forwards into those executions. because I want to run the 8 x test 1, then 8x test 2.

But since it is seperate execution it is a lot of back and forward on the different executions

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.
Mar 13, 2023

Hi @Pål Skiftun Athammer 

could you describe your use case in more details? especially: why would it be necessary to execute 1 and the same test case 8 times?

Best
Stefan

@Stefan Salzl  I have same problem, i have cucumber test with parameters, i executed the test N times, each times with different parameters. e.g:

 

# Feature definition in Grehkin syntax
Feature: Is it Friday yet?
Everybody wants to know when it's Friday

Scenario Outline: DEMO-2555: Checking whether it is Friday
Given today is "<day>"
When I ask whether it's Friday yet
Then I should be told "<resp>"
Examples:
| day | resp |
| Sunday | Nope |
| Monday | Nope |
| Friday | Yes |

 This test is executed 3 times,, each time with different day- and i want to report the result of each test to xray. Do i really need to create separate test execution for each case? Or is there any way to differentiate each run and have it all in test runs ? Its one test with different parameters.

Now this is primitive example, but lets say i have test plan that contains 10 of cucumber tests. Each  release iteration i want to have new Test Execution that executes these tests . Each of these cucumber test has parameters like these and multiple Scenario outlines. Now i will have 1000 Test executions for each iteration? Thats not really wanted. Or is there some good practice to do so?

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.
Jul 11, 2023

Hi @JohnnyDoe 

to be honest I´m not quite sure if or how this works with cucumber tests as I´m not familliar with cucumber.

Nevertheless there is a similar functionality for manual tests as you could add datasets and refer to this dataset within your test steps.

This will later (in the test execution) create (so called) "iterations" within your test run for each of the options from your dataset.

Did you try to add and execute your test? What is/was the result? Would be curious too to see how this works with cucumber tests.

Best
Stefan

 

@Stefan Salzl 

I am using api to import every data - would you mind navigating me to some example? The xray json format from docs literally does not work...


Also:

1)   I am sending result after each test execution, is there "merge" for test run ? E.g  create one if doesnt exist and update if it does? As if i execute test 3 times ( since there are 3 parameters) first time i want to craete test run with first step ( execution as u mentioned) and second and third time i want to just add step ( these are limitations of project since afaik each run of cucumber test with different paramete ris treated like different test run

 

2) If i add step, i dont see if it failed or passed. So it it kinda.. useless? Maybe i am just using wrong but i have trouble to see some working examples in docs.

Thanks.

@Stefan Salzl i still fail to find any examples or guide how to do this using mix of adding dataset/steps and importing test results via REST API.

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.
Aug 18, 2023

Hi @JohnnyDoe 

unfortunately my knowledge in the area of cucumber tests in xray is not sufficient to guide you.

I would warmly recommend to get in touch with the vendor support team. They are eager to help and ask those deep questions.

Best
Stefan

Suggest an answer

Log in or Sign up to answer