Slots examples
store, generate, calculate, and @@ group slots as .stk files
Capturing and generating values for later steps. See Slots and dynamic values.
store — scenario slot
Platform: web
Group: Slots
Scenario: Store CSRF and reuse
Given I navigate to "$BASE_URL/checkout"
When I store "@csrf" from "csrf-field"
And I fill "confirm-token" with "@csrf"
Then I should see "@csrf"
And I should have "confirm-token" value "@csrf" be enabledgenerate + fill
Platform: web
Group: Slots
Scenario: Guest booking with generated values @smoke
Given I navigate to "$BASE_URL/registration"
When I generate "@guest" as email domain "myapp.test"
And I generate "@promo" as string length "8" charset "hex"
And I generate "@name" as name
And I fill "Guest email" with "@guest"
And I fill "Promo code" with "@promo"
And I fill "Full name" with "@name"
And I fill "Notes" with "Customer {{name}} in {{city}}"
And I click on "Submit"
Then I should see "Guest booking saved"
And I should see "@guest"calculate
Platform: web
Group: Slots
Scenario: Line total from unit and quantity
Given I navigate to "$BASE_URL/order"
When I generate "@unit" as number from "10" to "50"
And I generate "@qty" as number from "2" to "5"
And I fill "unit-price" with "@unit"
And I fill "line-qty" with "@qty"
And I calculate "@line" as "@unit*@qty"
And I fill "line-total" with "@line"
Then I should have "line-total" value "@line" be enabledGroup slot (@@) across scenarios
Platform: web
Group: Slots
Scenario: Create account and keep signup email
Given I navigate to "$BASE_URL/register"
When I generate "@@signup-email" as email domain "accounts.test"
And I fill "email" with "@@signup-email"
And I fill "confirm email" with "@@signup-email"
And I click on "Create account"
Then I should see "Welcome"
Scenario: Reuse group email after navigate
Given I navigate to "$BASE_URL/profile"
When I fill "contact email" with "@@signup-email"
Then I should have "contact email" value "@@signup-email" be enabled@@ survives across scenarios in the same file on one browser run. @ clears at each new scenario.