Step Catalog
25 step definitions across 3 files · 11 Given, 5 When, 9 Then
25
Total steps
3
Files
10
Parameterised
0
With docstring
0
Regex patterns
| Keyword ↕ | Pattern ↕ | Function ↕ | File ↕ | Params ↕ |
|---|---|---|---|---|
| given | the cart contains {count:d} items | step_cart_items |
checkout_steps.py:10 |
count:d |
| given | the cart contains 1 item | step_cart_items |
checkout_steps.py:10 |
count |
| given | the total is {total:d} | step_total |
checkout_steps.py:15 |
total:d |
| when | the user pays with "{method}" | step_pay |
checkout_steps.py:20 |
method |
| then | the payment is accepted | step_payment_accepted |
checkout_steps.py:27 |
|
| then | the payment is rejected | step_payment_rejected |
checkout_steps.py:32 |
|
| given | the order is confirmed | step_order_confirmed |
checkout_steps.py:37 |
|
| when | the user selects "{method}" shipping | step_select_shipping |
checkout_steps.py:42 |
method |
| then | the shipping cost is {cost:d} | step_shipping_cost |
checkout_steps.py:48 |
cost:d |
| then | the order is confirmed | step_check_confirmed |
checkout_steps.py:54 |
|
| given | the database is reset | step_reset_db |
login_steps.py:7 |
|
| given | a registered user exists | step_user_exists |
login_steps.py:12 |
|
| given | the username is "{username}" | step_set_username |
login_steps.py:17 |
username |
| given | the password is "{password}" | step_set_password |
login_steps.py:22 |
password |
| when | the user logs in | step_login |
login_steps.py:27 |
|
| then | the dashboard is shown | step_dashboard |
login_steps.py:33 |
|
| then | an error is shown | step_error |
login_steps.py:38 |
|
| then | the account locked message is shown | step_locked |
login_steps.py:43 |
|
| given | the report engine is ready | step_engine_ready |
reporting_steps.py:9 |
|
| when | the report is generated with {rows:d} rows | step_generate_report |
reporting_steps.py:14 |
rows:d |
| then | the report is available | step_report_available |
reporting_steps.py:21 |
|
| then | the report size is greater than {size:d} MB | step_report_size |
reporting_steps.py:27 |
size:d |
| given | the legacy engine is enabled | step_legacy_engine |
reporting_steps.py:33 |
|
| given | the legacy report engine is being implemented | step_legacy_pending |
reporting_steps.py:38 |
|
| when | the legacy report is generated | step_legacy_report |
reporting_steps.py:43 |
Metrics
Distribution and coverage of step definitions.
25
Total steps
40.0%
Parameterised
0.0%
Documented
0.0%
Regex
By keyword
- Given
- 11 (44.0%)
- When
- 5 (20.0%)
- Then
- 9 (36.0%)
By file
| File | Steps |
|---|---|
checkout_steps.py |
10 |
login_steps.py |
8 |
reporting_steps.py |
7 |