Use Prerequisites and Dependencies
Use prerequisite and dependent tests to share setup without making every scenario long and repetitive.
When To Use A Prerequisite
Situation
Example
Example
Feature: Customer creation
Scenario: Admin creates an active customer
Given the admin is on the customers page
When the admin creates a customer named "Acme QA"
Then the customer record should be visibleHow Dependencies Affect Maintenance
Change
What to check
Keep Dependencies Understandable
Alternatives
Need
Better option
Next
Last updated
Was this helpful?
