A Scenario is comprised of sequence of Actions put together to form the required test flow. Each action makes a step in Scenario.
Scenario Builder help you to assemble steps together.
- To start with, you select the Context with which you want to begin the test. A list of all entry-point contexts are presented to select from.
- Once the initial step is created, system presents set of actions available in the selected entry-point context. Select one from here.
- Now, depending on the destination context of the selected action, you are presented with the next set of actions to choose from.
- This process continues until all the steps are assembled.
- During the selection of an Action, if the desired action is not available, you can readily create a new action from this flow.
Here is a snippet of this process:
Inserting steps in the middle of an existing Scenario
To insert a step in the middle of an existing scenario, hover the mouse in the border between the two steps where the new step should go. Wait for a brief second.
Click on Add-Step and select the desired step.
Note: By default, only the steps relevant in the flow are displayed. If you need to review all the actions available in the project, click on the "ALL" tab.
Reordering Scenario steps
Scenario steps can be reordered to change the sequence. Hover on the left margin side of the step, and drag/drop to desired position.
Missing-Steps in scenario workflow
You might sometimes notice an alert, "Missing Steps" in the scenario workflow. This alert shows up in case the two successive steps do not form right sequence based on the action design. Typically, every step in a scenario, builds from the destination context of the previous step/action. In case this rule is not followed, a missing step alert is created. Verify the flow and make necessary corrections.
Existing step sequence may also break, in case an action used in the scenario has either changed its destination or if the action itself is deleted.
- Scenario spans multiple Contexts and achieves a complete use case of the test application.
- Each subsequent Action in a Scenario is picked based on the Destination Context of the current Action.
- Scenario starts with an “Initialize” step from an Entry Point Context (which opens the browser with the given URL).