BddScenario class

Inheritance

Constructors

BddScenario(BddFramework bdd, String text)

Properties

bdd BddFramework
finalinherited
containsExample bool
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
finalinherited
variation → _Variation
finalinherited

Methods

given(String text) BddGiven
This keyword starts a step that sets up the initial context of the scenario. It's used to describe the state of the world before you begin the behavior you're specifying in this scenario. For example, "Given I am logged into the website" sets the scene for the actions that follow.
keyword(BddConfig config) String
override
keywordPrefix(BddConfig config) String
override
keywordSuffix(BddConfig config) String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
note(String text) BddGiven
Often used informally in comments within a Gherkin document to provide additional information, clarifications, or explanations about the scenario or steps. Comments in Gherkin are usually marked with a hashtag (#) and are ignored when the tests are executed. A "Note" can be useful for giving context or explaining the rationale behind a certain test scenario, making it easier for others to understand the purpose and scope of the test.
prefix(BddConfig config) String
override
spaces(BddConfig config) String
override
suffix(BddConfig config) String
override
toString([BddConfig config = BddConfig._default]) String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited