Step 1: Creating scenarios that use new steps

Write new scenarios and feature files that contain new steps that extend the base configuration context API.


For step 1, you create the new feature file.

The following text is an example of a new Calendar_Supervisor_Ext.feature file. It contains several new steps, including "I am the supervisor of "<user>".

Feature: Calendar functionality

  As a supervisor,
  I want to administer the business calendar

  Background:
    Given I am a user with the "Underwriting Supervisor" role
    And today is a "Monday"
    And tomorrow is the only holiday
      
  Scenario: Adding a new holiday to the calendar
    When I create an activity using the "General reminder" activity pattern
    Then there should be a "General remainder" activity
    And the due date should be "2" days from today

For more information on creating scenarios, see Writing scenarios.