Step Definitions & Transforms
19 20 21 |
Given /^this (scenario|background|#{ORDER}) step$/ do |step| puts "step #{order}" end |
Given
this background step
example/scenario.feature:8
example/child_feature/child.feature:6
example/child_feature/grandchild_feature/grandchild.feature:6
Given
this first step
example/scenario.feature:15
example/scenario.feature:53
example/transform.feature:12
example/child_feature/child.feature:9
example/child_feature/grandchild_feature/grandchild.feature:10
When
this second step
example/scenario.feature:16
example/scenario.feature:56
example/child_feature/child.feature:10
example/child_feature/grandchild_feature/grandchild.feature:11
Then
this third step
example/scenario.feature:17
example/scenario.feature:58
example/child_feature/child.feature:11
example/child_feature/grandchild_feature/grandchild.feature:12
Given
this scenario step
example/transform.feature:7
Given
/^(?:I create )?an? (?:(active|deactive|inactive|simulated)d?)? ?project(?:[\s,]*(?:with)? ?(?:an?|the)? (?:(?:the size? (?:at|of)? ?(\d+)|named? (?:of )?'([^']+)'|start date (?:of )?((?:(?:\d{1,2}[\/-]){2}(?:\d\d){1,2}))|end date (?:of )?((?:(?:\d{1,2}[\/-]){2}(?:\d\d){1,2}))|user range (?:of )?(\d+-\d+)|description (?:of )?'([^']+)'|nicknamed? (?:of )?'([^']+)')[,\s]*)* ?)?$/
Rubular
| PENDING
72 73 74 |
Given /^(?:I create )?an? (?:(active|deactive|inactive|simulated)d?)? ?project(?:[\s,]*(?:with)? ?(?:an?|the)? (?:(?:the size? (?:at|of)? ?(\d+)|named? (?:of )?'([^']+)'|start date (?:of )?((?:(?:\d{1,2}[\/-]){2}(?:\d\d){1,2}))|end date (?:of )?((?:(?:\d{1,2}[\/-]){2}(?:\d\d){1,2}))|user range (?:of )?(\d+-\d+)|description (?:of )?'([^']+)'|nicknamed? (?:of )?'([^']+)')[,\s]*)* ?)?$/ do |state,size,name,start_date,end_date,user_range,description,nickname| pending "#{state} #{size} #{name} #{start_date} #{end_date} #{user_range} #{description} #{nickname}" end |
Given
a project
example/scenario.feature:22
And
an inactive project
example/scenario.feature:23
And
a project with the name 'optional', start date 10/26/2010, nicknamed 'norman'
example/scenario.feature:24
Then
/I expect ((?:(?:an?|the|(?:first|second|third)) customer|teddy bear)) to be a member of the '([^']+)' group/
Rubular
| PENDING
65 66 67 |
Then /I expect (#{CUSTOMER}) to be a member of the '([^']+)' group/ do |customer,product| pending "Customer #{customer} with product #{product}" end |
Then
I expect the customer to be a member of the 'Product A' group
example/scenario_outline.feature:10
example/scenario_outline.feature:86
example/scenario_outline_multi.feature:7
85 86 87 |
Then /I expect the (duck|bird) to (\w+)/ do |animal,verb| pending end |
Then
I expect the duck to quack
example/scenario.feature:29
92 93 94 |
When /^searching the log for the exact match of the message "([^"]+)"$/ do || pending end |
When
searching the log for the exact match of the message "Entering application."
example/scenario.feature:62
81 82 83 |
Given /(a|\d+) ducks? that ha(?:s|ve) (a|\d+) bills?/ do |duck_count,bills_count| pending end |
Given
a duck that has a bill
example/scenario.feature:28
99 100 101 |
When /^the step definition has HTML escaped characters like: "([^"]+)"$/ do |characters| pending characters end |
When
the step definition has HTML escaped characters like: "<>&"
example/scenario.feature:63
53 54 55 |
And /^this (third) defined step definition$/ do |number| pending end |
No steps were found to match this step definition.
61 62 63 |
And /^edits their the (biography) to state:$/ do |section,text| pending "text_field not present for #{section} #{bio} for this release" end |
No steps were found to match this step definition.
49 50 51 |
Then /^I expect the customer to be shown the logout page$/ do pending end |
No steps were found to match this step definition.
45 46 47 |
When /^the customer logs out$/ do pending end |
No steps were found to match this step definition.
41 42 43 |
Then /^I expect them to have logged in (successfully|miserably)$/ do |success| pending "Validation that the customer has logged in #{success}" end |
No steps were found to match this step definition.
When
/^a customer logs in as username '([^']+)' with password '([^']+)'$/
Rubular
| PENDING
| UNUSED
36 37 38 39 |
When /^a customer logs in as username '([^']+)' with password '([^']+)'$/ do |username,password| Given "that the customer is a valid customer" pending "Customer logs in with #{username} and #{password}" end |
No steps were found to match this step definition.
Given
/^that ((?:(?:an?|the|(?:first|second|third)) customer|teddy bear)) is a valid customer$/
Rubular
| PENDING
| UNUSED
29 30 31 |
Given /^that (#{CUSTOMER}) is a valid customer$/ do |customer| pending "Customer #{customer} validation" end |
No steps were found to match this step definition.
57 58 59 |
And /^the customer has the following details:$/ do |table| pending "Table of data #{table.hashes}" end |
No steps were found to match this step definition.
1 2 3 |
Transform /^#{ORDER}$/ do |order| order end |
Given
this first step
example/scenario.feature:15
example/scenario.feature:53
example/transform.feature:12
example/child_feature/child.feature:9
example/child_feature/grandchild_feature/grandchild.feature:10
12 13 14 |
Transform /^scenario$/ do |scenario| "scenario" end |
Given
this scenario step
example/transform.feature:7
6 7 8 |
Transform /^an? customer$/ do |customer| "a transformed customer" end |
No steps were found to match this step transform.
2 3 4 |
Transform /^#{CUSTOMER}$/ do |customer| "a transformed customer" end |
No steps were found to match this step transform.
10 11 12 |
Transform /^the customer$/ do |customer| "the transformed customer" end |
No steps were found to match this step transform.
14 15 16 |
Transform /^(#{ORDER}) customer$/ do |order| "#{order} customer" end |
No steps were found to match this step transform.
18 19 20 |
Transform /^#{TEDDY_BEAR}$/ do |teddy| "the tranformed teddy bear" end |
No steps were found to match this step transform.
Transform
/^((?:\d{1,2}[\/-]){2}(?:\d\d){1,2})?\s*(\w{3})?\s*(\d{1,2}:\d{2}\s*(?:AM|PM)?)$/
Rubular
| UNUSED
25 26 27 |
Transform /^((?:\d{1,2}[\/-]){2}(?:\d\d){1,2})?\s*(\w{3})?\s*(\d{1,2}:\d{2}\s*(?:AM|PM)?)$/ do |date,day,time| "#{date} #{day} #{time}" end |
No steps were found to match this step transform.
When
the customer has purchased the product
example/scenario_outline.feature:9
example/scenario_outline.feature:9
example/scenario_outline.feature:9
example/scenario_outline.feature:85
example/scenario_outline.feature:85
example/scenario_outline_multi.feature:6
example/scenario_outline_multi.feature:6
When
I click on an example row
example/scenario_outline.feature:24
example/scenario_outline.feature:24
example/scenario_outline.feature:38
example/scenario_outline.feature:38
example/scenario_outline.feature:52
example/scenario_outline.feature:52
Given
that Customer A is a valid customer
example/scenario_outline.feature:7
example/scenario_outline.feature:7
example/scenario_outline.feature:7
example/scenario_outline.feature:83
example/scenario_outline_multi.feature:4
Given
the following table:
example/scenario.feature:33
example/scenario_outline.feature:35
example/scenario_outline.feature:35
example/scenario_outline.feature:49
example/scenario_outline.feature:49
And
that the product, named 'Product A', is a valid product
example/scenario_outline.feature:8
example/scenario_outline.feature:84
example/scenario_outline.feature:84
example/scenario_outline_multi.feature:5
example/scenario_outline_multi.feature:5
Given
the following text:
example/scenario.feature:39
example/scenario_outline.feature:20
example/scenario_outline.feature:20
Then
I expect toy to be replaced by the example name
example/scenario_outline.feature:39
example/scenario_outline.feature:53
Then
I expect game to be replaced by the example name
example/scenario_outline.feature:39
example/scenario_outline.feature:53
Then
I expect that the step, on the step transformer page, will link to the step transform
example/transform.feature:8
example/transform.feature:13
Given
that Customer B is a valid customer
example/scenario_outline.feature:83
example/scenario_outline_multi.feature:4
And
that the product, named 'Product B', is a valid product
example/scenario_outline.feature:8
Alors
le résultat affiché doit être 5
example/french.feature:13
Et
que j'entre 3 pour le second nombre
example/french.feature:11
Then
I expect cow to be replaced by the example noun
example/scenario_outline.feature:25
And
I expect moon to be replaced by the example place
example/scenario_outline.feature:26
Then
I expect horse to be replaced by the example noun
example/scenario_outline.feature:25
And
I expect spoon to be replaced by the example place
example/scenario_outline.feature:26
Alors
le résultat affiché doit être 4
example/french.feature:13
And
I expect $99 to be replaced by the example price
example/scenario_outline.feature:40
Et
que j'entre 2 pour le second nombre
example/french.feature:11
And
I expect $49 to be replaced by the example price
example/scenario_outline.feature:40
And
I expect 99 to be replaced by the example price
example/scenario_outline.feature:54
And
I expect cost in euros to be replaced by the example denomination
example/scenario_outline.feature:55
And
I expect 49 to be replaced by the example price
example/scenario_outline.feature:54
And
I expect cost in dollars to be replaced by the example denomination
example/scenario_outline.feature:55
And
that the product, named 'Product C', is a valid product
example/scenario_outline.feature:8