Can I create multiple test scenarios within one feature file in Jira Xray?

I’m working with Cucumber Gherkin tests in Jira Xray and I’ve successfully created one scenario that I imported into my testing framework. Now I’m wondering if it’s possible to add several scenarios to the same feature file in Jira Xray instead of creating separate files for each test case. I want to organize my tests better by grouping related scenarios together in a single feature file that I can then import as one unit into my framework. Has anyone figured out how to do this? I would really appreciate if someone could share the steps or show an example of how to set this up in Jira Xray. This would help me keep my test suite more organized and easier to manage.

Been using Xray for two years - multiple scenarios per feature file work great. Just add more Scenario blocks in the same Gherkin definition when creating or editing a Test. Each scenario runs as a separate execution but stays grouped together, which makes maintenance way easier. Xray automatically maps each scenario to its own execution result, so you still get detailed reporting even though they’re all in one file. This setup has cut down the clutter in my test repo big time and makes managing related test cases much simpler.

yea, totally! just throw in more scenario blocks in that feature file on xray. it helps keep things neat. just ensure every scenario’s got its own unique name. that’s how i do it!

Yes, definitely do this! It’s way better for organization. Just edit your existing Test in Xray and add more Scenario blocks under your current one in the same Gherkin editor. Each scenario gets its own pass/fail status when you run them, so if one breaks the others keep going. This approach changed everything for me - instead of digging through tons of individual feature files, I group related stuff like ‘User Authentication’ or ‘Shopping Cart Functions’ with multiple scenarios per feature. Just make your scenario names descriptive since they show up as separate items in the results even though they’re in the same file.