Overview of running scenarios

Every Cucumber scenario describes a behavior that the application is ultimately expected to have. The behavior can be tested by running the scenario. This produces a test result, which indicates if, under the given pre-conditions, the behavior resulted in the expected outcome. The test result is either a pass or a fail.

There are several different options for running scenarios.

Which scenarios to run

You can choose to run an individual scenario, a feature file, or a test suite.

A feature file is a Cucumber file that contains a set of related scenarios. Features typically contain scenarios for a single type of user that test a particular aspect of application behavior.

A test suite is a Gosu class that defines a group of feature files to run at the same time.

How to initiate the testing

Individual scenarios and feature files can be run only through Guidewire Studio. For more information, see Running feature files from Studio.

Test suites can be run in one of two ways:

  • Through Guidewire Studio
  • From a command prompt

For more information, see Running a test suite from Studio and Running a test suite from a command prompt.