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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,874
Community Members
 
Community Events
176
Community Groups

How can I create a condition in my test execution?

Hello everyone

How can I create a condition in my test execution?

Example:

I am using the following dataset:

User type:  Admin         | Simple_User
Order:         can_order   | can't_Order
Available:    present       | absent
Result:         Valid           | Invalid

We generate the test execution I find:

Admin           | can_order   | present  | Valid
Admin           | can_order   | absent   | Valid
Admin           | can't_order | present | Invalid
Admin           | can't_order | absent  | Invalid
Simple_User | can_order   | present | Valid
Simple_User | can_order   | absent  | Valid
Simple_User | can't_order | present | Invalid
Simple_User | can't_order | absent  | Invalid

I want to have all iterations equal to "Valid" except when:

{Type user = "Simple user" and available = "absent"} = Invalid

in other words I want to have these iterations:

Admin           | can_order   | present | Valid
Admin           | can_order   | absent  | Valid
Admin           | can't_order | present | Valid
Admin           | can't_order | absent  | Valid
Simple_User | can_order   | present | Valid
Simple_User | can_order   | absent  | Invalid
Simple_User | can't_order | present | Valid
Simple_User | can't_order | absent  | Invalid

 

I am new to xray so I don't know where this condition should really be, in the dataset, test case or test run.

 

Thank you in advance

1 answer

Hi @Walid Ben Younes 

You can use the data set will the 4 parameters, where the last parameter is the result you expect.

When the Tester executes the test, he/she should then check if the result matches the one expected. For instance, in the example below:

Simple_User | can_order   | absent  | Invalid

If this case is invalid, the Tester should make this iteration as PASS since it has the expected Result: Invalid.

So yes, your approach looks fine. It is only necessary that the Testers be aware the last parameter is the expected Result, and if it is correct, it should be set as a PASS; otherwise, it should get a FAILED status.

If you need additional help, please contact the Xray Support (http://xraysupport.xpand-it.com).

Thank you.


Kind regards,
Rogério Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events