Step Definitions & Transforms
[Collapse All]
Step Definitions
Given /^this (scenario|background|(?:first|second|third)) step$/
Rubular
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
example/step_definitions/example.step.rb:72
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
example/step_definitions/example.step.rb:65
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 (duck|bird) to (\w+)/
Rubular | PENDING
example/step_definitions/example.step.rb:85
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
When /^searching the log for the exact match of the message "([^"]+)"$/
Rubular | PENDING
example/step_definitions/example.step.rb:92
92
93
94
When /^searching the log for the exact match of the message "([^"]+)"$/ do |message|
  pending message
end
When searching the log for the exact match of the message "Entering application."
example/scenario.feature:62
Given /(a|\d+) ducks? that ha(?:s|ve) (a|\d+) bills?/
Rubular | PENDING
example/step_definitions/example.step.rb:81
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
When /^the step definition has HTML escaped characters like: "([^"]+)"$/
Rubular | PENDING
example/step_definitions/example.step.rb:99
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
And /^this (third) defined step definition$/
Rubular | PENDING | UNUSED
example/step_definitions/example.step.rb:53
53
54
55
And /^this (third) defined step definition$/ do |number|
  pending
end
No steps were found to match this step definition.
And /^edits their the (biography) to state:$/
Rubular | PENDING | UNUSED
example/step_definitions/example.step.rb:61
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.
Then /^I expect the customer to be shown the logout page$/
Rubular | PENDING | UNUSED
example/step_definitions/example.step.rb:49
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.
When /^the customer logs out$/
Rubular | PENDING | UNUSED
example/step_definitions/example.step.rb:45
45
46
47
When /^the customer logs out$/ do
  pending
end
No steps were found to match this step definition.
Then /^I expect them to have logged in (successfully|miserably)$/
Rubular | PENDING | UNUSED
example/step_definitions/example.step.rb:41
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
example/step_definitions/example.step.rb:36
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
example/step_definitions/example.step.rb:29
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.
And /^the customer has the following details:$/
Rubular | PENDING | UNUSED
example/step_definitions/example.step.rb:57
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.
[Collapse All]
Step Transforms
Transform /^(?:first|second|third)$/
Rubular
Transform /^background$/
Rubular
example/step_definitions/first.step.rb:5
5
6
7
Transform /^background$/ do |background|
  "background"
end
Transform /^scenario$/
Rubular
example/step_definitions/first.step.rb:12
12
13
14
Transform /^scenario$/ do |scenario|
  "scenario"
end
Transform /^an? customer$/
Rubular | UNUSED
example/step_definitions/example.step.rb:6
6
7
8
Transform /^an? customer$/ do |customer|
  "a transformed customer"
end
No steps were found to match this step transform.
Transform /^(?:(?:an?|the|(?:first|second|third)) customer|teddy bear)$/
Rubular | UNUSED
example/step_definitions/example.step.rb:2
2
3
4
Transform /^#{CUSTOMER}$/ do |customer|
  "a transformed customer"
end
No steps were found to match this step transform.
Transform /^the customer$/
Rubular | UNUSED
example/step_definitions/example.step.rb:10
10
11
12
Transform /^the customer$/ do |customer|
  "the transformed customer"
end
No steps were found to match this step transform.
Transform /^((?:first|second|third)) customer$/
Rubular | UNUSED
example/step_definitions/example.step.rb:14
14
15
16
Transform /^(#{ORDER}) customer$/ do |order|
  "#{order} customer"
end
No steps were found to match this step transform.
Transform /^teddy bear$/
Rubular | UNUSED
example/step_definitions/example.step.rb:18
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
example/step_definitions/example.step.rb:25
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.
Undefined Steps
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
Et que j'entre 2 pour le premier nombre
example/french.feature:9 example/french.feature:9
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