Skip to content

Generate scenarios from a user story

AssertThat’s AI scenario generation creates BDD test scenarios directly from your Jira user story. The AI reads the issue’s summary, description and Acceptance Criteria field (when your site has one) and produces a set of structured Gherkin scenarios for you to review before anything is saved to your project.

💡 Human in the loop — no scenarios are saved automatically. Every generated scenario must be explicitly accepted before it is added to your project. You can also edit or regenerate steps before accepting.


Before using AI scenario generation, ensure that:


Open the Jira work item. In the AssertThat BDD panel, select ✦ Generate scenarios. On a work item without scenarios it’s in the middle of the empty panel; otherwise it’s next to Add.

The AssertThat BDD panel on a story with no scenarios: Generate scenarios, Add new scenario and Link existing scenario


Step 2: Enter a Feature Name and Optional Context

Section titled “Step 2: Enter a Feature Name and Optional Context”

Two fields will display below the scenario list:

  • Feature Name (required) — enter a new feature name or select an existing one from the dropdown. The generated scenarios will be grouped under this feature.

  • Additional Context (optional) — use this field to guide the AI, for example by specifying “create positive scenarios only” or focusing on a particular aspect of the story.

Once ready, click ✦ Generate.

The Generate scenarios form with a new feature name and additional context


To stop a generation that’s running, select Cancel.

AssertThat uses an advanced agentic workflow to produce your scenarios. Rather than generating output in a single pass, the AI runs a multi-stage Author → Critic → Rewriter process — drafting scenarios, evaluating them for quality and consistency, and refining them before presenting them for your review. This takes a few moments but ensures the generated test cases are well-structured and ready to use.


Once generation is complete, the suggestions appear in the panel under the feature you chose, marked with ✦. A banner counts them, for example AI suggestions to review: 3. Accept the ones you want to keep. Each suggestion shows its Gherkin steps and has Accept and Discard; Discard all in the banner removes every suggestion.

A suggestion that looks like a scenario already in the project is marked Possible duplicate, with the name of the similar scenario.

Three AI-generated scenarios for saving a card, each with Accept and Discard

Review each scenario carefully before taking action. You have three options:


If you are happy with a scenario as generated, click Accept to save it to your project. If the scenario is not relevant or not needed, click Discard to remove it without saving.

accept or reject changes.png


If a scenario is mostly right but needs adjustments, you can edit the steps directly inline before accepting. Click into the step text to make your changes, then click Accept to save the edited version.

manually-edit-steps then you need to click on accept.png


If you want the AI to rewrite the steps for a specific scenario, use the AI step regeneration option within the scenario. You can provide additional context to guide the rewrite — for example, making the steps more prescriptive or focusing on a specific condition — then click the submit button to regenerate. Review the updated steps and click Accept when satisfied.

regen steps- add context- click enter.png

You can also accept or reject individual steps within a scenario using the per-step Accept and Reject buttons.

accept or reject step changes.png


⚠️ Scenarios that are discarded are not saved to your project. If you discard a scenario and change your mind, you can re-run generation from the Generate scenarios button.