scenario
One concrete example of behaviour in a feature file, written as Given, When and Then steps.
In more detail
It reads as a short story: the starting situation, the action, and the expected result. Keep each scenario focused on one outcome.
Related terms
- Gherkin — The plain-text language for BDD scenarios, using the keywords Feature, Scenario, Given, When and Then.
- feature file — A .feature text file containing one Gherkin feature and its scenarios.
- step definition — The C# method that runs when a Gherkin step matches its pattern, connecting plain-language steps to real code.
Taught in
- Behavior-Driven Development with Reqnroll — Modern .NET Core, C# & Enterprise Microservices