A Twist Scenario allows a user to express acceptance criteria using the language of the domain. A scenario expresses test intent, while its implementation describes how the scenario is actually executed. The underlying implementation is written in Java code. Twist's Scenario Editor allows you to navigate from a scenario to its underlying implementation and back.
The Scenarios View is a focused view of your current project. Scenarios are used to describe intent of a test, hiding the mechanics of the test and simplifies reuse and Refactoring.
You can express the expected behavior of your application in easily readable English-like text in a Scenario.
Each scenario consists of the following elements which work together to define the acceptance test.
- Business Workflow
- Business Rules Table
Create a New Scenario
- Click on the New Scenario Icon.
- Enter the scenario name and choose the current project in the New Scenario Wizard.
- Choose the required template for creating the scenario and begin to describe a scenario.
Twist also allows you to add custom templates (or modify the default ones) and make them available to create Scenarios.
- This wizard offers two standard templates when creating a new scenario:
- The Blank Scenario template - This is a blank scenario that allows the user to describe a scenario from scratch.
- The Business Workflow template - This template has place holders for tags,
contexts, comments and the workflow or the business rules steps.
Twist can export a Scenario to html for you. To use this, select a scenario in the scenario view and from the context menu and choose Export Scenario -> Export as HTML
Exporting a scenario makes it easier to share it with others since the other person does not need Twist in order to view the scenario.