Test Scripts in Flowriter
Last updated
Last updated
Flowriter can analyze a Story's Acceptance Criteria and generate Step Definition test scripts, in Javascript.
These can be used to save time when creating automated tests to validate the implementation of the feature documented in the Story.
Step Definitions connect steps in Gherkin -style Acceptance Criteria to programming code.
A Step Definition contains an expression that links it to one or more Gherkin steps. When the Cucumber test automation tool executes a Gherkin step in a scenario, it will look for a matching step definition to execute.
Flowriter will generate sample Step Definition test scripts, in Javascript, for each Scenario generated from the Story flowchart.
For more information about Step Definitions used in the Cucumber test automation tool, see Cucumber Step Definitions
Step Definition test scripts do not prescribe the test automation framework - different tools may be used to automate testing.
For example, Selenium is a popular tool for controlling web apps in automated tests, while Appium is a popular tool for controlling mobile apps in automated tests.
If your feature relates to an app, Flowriter will attempt to determine whether it is a web or mobile app and include sample Selenium or Appium Javascript code in the Step Definition test scripts.
Where Flowriter cannot determine the technical nature of the feature, or it includes steps that cannot normally be automatically controlled by a third-party automation framework, it will include comments in the source code to indicate this.