The DataSetup class
Scenario-specific test data
When a test data object is created for a specific scenario, the scenario may specify values that the object must have. For example, consider the following scenario:
When I create an activity
And the activity priority is "Urgent"
And the activity is due in "7" days
And I assign the activity using automated assignment
Then the activity is assigned to my supervisor
An activity must be created specifically for this scenario. The activity's priority must be Urgent, and the activity's due date must be 7 days from the current date.
Scenario-specific test data is typically created using test data builders. For more information on using test data builders, see Using test data builders.
