Contact me:
in/paweł-radzikowski
paw.radzikowski@gmail.com
Señor Developer @
© G.Renee Guzlas
Image comes from emojidex.com
We would offer 10% discount for first orderto encourage new users
function
testGrantInitialOrderDiscount()
{...}
Register as "Anna"
Go to "/catalog/search"
Click "Add to Cart"
[...]
Image comes from emojidex.com
Given the user has not ordered yet
When the user adds a book with the price of EUR 37.5 into the shopping cart
Then the shopping cart sub-total is EUR 33.75
Feature: Some terse yet descriptive text of what is desired
In order to realize a named business value
As an explicit system actor
I want to gain some beneficial outcome which furthers the goal
Scenario: Some determinable business situation
Given some precondition
And some other precondition
When some action by the actor
And some other action
And yet another action
Then some testable outcome is achieved
And something else we can check happens too
Scenario: A different situation
...Feature: Serve coffee
In order to earn money
Customers should be able to
buy coffee at all times
Scenario: Buy last coffee
Main words:
Scenario: Buy last coffee
Given there are 1 coffees left in the machine
And I have deposited 1 dollar
When I press the coffee button
Then I should be served a coffeeThe feature scenario
Other:
@coffe @test
Feature: Serve coffee
In order to earn money
Customers should be able to
buy coffee at all times
@positive
Scenario: Buy last coffee
Given there are <start> coffees left in the machine
And I have deposited <money> dollar
When I press the coffee button
Then I should be served a coffee
And There are <left> coffees left in the machine
Examples:
| start | money | left |
| 1 | 5 | 0 |
| 2 | 2 | 1 |For All:
For devs:
For QA:
For Product Owner: