Scenario Type cucumber test Xray

Jonathan Santos
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 4, 2021

Hello , we need your help, when designing outline scenarios, when adding the reserved word  in the steps in the Issue type test, when downloading the Feature it duplicates the Scenario. I send reference image

Thanks

:)

 Captura de Pantalla 2021-10-04 a la(s) 12.16.00.pngCaptura de Pantalla 2021-10-04 a la(s) 12.16.34.png

3 answers

0 votes
Locke
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 23, 2023

I met the same issue, that you can't choose Scenario Types from a jira ticket. This is not matching with https://docs.getxray.app/pages/viewpage.action?pageId=62268093

 

Yet, you still can get Scenario Outline by appending your arguments into the bottom of feature files. Most importantly, DO NOT ADD arguments into Datasets, otherwise it is still Scenario but not Scenario Outline.

 

@TEST_XXX-123
Scenario Outline: some test
Given  some argument <Test 1>
And some steps

Examples:
| Test 1 |
| 111 |
| 222 |

0 votes
Miguel Á. Herrero
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 7, 2021

Jonathan,

After reading in the help for the Cloud version I found this phrase, which is NOT very clear, but lead me to the solution:

"The Scenario Types are inferred from the Scenario specification, i.e., the behavior to be reproduced by the Cucumber tool in entered in the Steps field."

This means: Do NOT write the words "Scenario outline" in the steps. XRay will see it's an outline because there are Examples included in the steps. When you export cucumber, you'll see the feature generated is correct.

Cheers.

0 votes
Miguel Á. Herrero
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 7, 2021

We're having the same problem.

I think that the problem is: The field "Scenario type" does NOT come up when selecting the "Cucumber" type as it appears in the documentation.

If it did, we would just select "Scenario outline" instead of "Scenario", but right now it's not an option.

I insist, it looks like we should have that option, but we don't.

Please, Atlassian people, let us know whether it's really supported, and if it is, let us know why the field isn't showing up.

Thanks.

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.
October 18, 2021

Hi @Jonathan Santos and @Miguel Á. Herrero 

In a Scenario of Xray Test, it is only necessary to have the Cucumber Steps, there is no need to have the words "Scenario outline" in it. Actually, if it has the words it does not work correctly.

Also, in Xray Cloud, it does not have the Cucumber Type field (like in Jira DC/Server) so in Cloud it is not necessary to set up this field, Xray will handle both Cucumber types.

If you need additional help, please contact Xray Support (http://xraysupport.getxray.app) to help further.

Thank you.

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

Suggest an answer

Log in or Sign up to answer