Help documentation

Scenario

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.

scenario view

You can express the expected behavior of your application in easily readable English-like text in a Scenario.

scenario editor

Each scenario consists of the following elements which work together to define the acceptance test.

  1. Tags
  2. Contexts
  3. Comments
  4. Business Workflow
  5. Business Rules Table

Create a New Scenario

To create a new scenario:
  1. Click on the New Scenario Icon.
  2. Enter the scenario name and choose the current project in the New Scenario Wizard.
  3. 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.

    screen - create new scenario
  4. This wizard offers two standard templates when creating a new scenario:
    1. The Blank Scenario template - This is a blank scenario that allows the user to describe a scenario from scratch.
    2. The Business Workflow template - This template has place holders for tags, contexts, comments and the workflow or the business rules steps.

      sample workflow template

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.