Skip to content

Instantly share code, notes, and snippets.

@barneywilliams
Created May 23, 2012 06:01

Revisions

  1. barneywilliams revised this gist May 24, 2012. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions division.feature
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,12 @@
    Scenario: Regular numbers # division.feature:6
    > ["begin_scenario"]
    < ["success"]
    > ["step_matches",
    > ["begin_scenario"] # Cucumber sends this message to the Wire server to start the scenario
    < ["success"] # Each message sent to the Wire server is acknowledged, and may include response data as well
    > ["step_matches", # Cucumber sends the first step of the scenario
    {
    "name_to_match":"I have entered 3 into the calculator"
    }
    ]
    < ["success",
    < ["success", # The Wire server responds with the regular expression that matches the specified step, including the extracted parameter and location of the step definition
    [
    {
    "regexp":"^I have entered (\\d+) into the calculator$",
    @@ -16,11 +16,11 @@ Scenario: Regular numbers # division.feature:6
    }
    ]
    ]
    > ["invoke",
    > ["invoke", # Cucumber now tells the server to go ahead and execute the step
    {
    "args":["3"],
    "id":"1"
    }
    ]
    < ["success"]
    Given I have entered 3 into the calculator # CalculatorSteps.cpp:11
    < ["success"] # The server responds with the result
    Given I have entered 3 into the calculator # CalculatorSteps.cpp:11 (This is the normal formatted output that appears on the console after a step is executed)
  2. barneywilliams revised this gist May 23, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion division.feature
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ Scenario: Regular numbers # division.feature:6
    "regexp":"^I have entered (\\d+) into the calculator$",
    "args":[{"val":"3","pos":15}],
    "id":"1",
    "source":"GTestCalculatorSteps.cpp:11"
    "source":"CalculatorSteps.cpp:11"
    }
    ]
    ]
  3. barneywilliams revised this gist May 23, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion division.feature
    Original file line number Diff line number Diff line change
    @@ -23,4 +23,4 @@ Scenario: Regular numbers # division.feature:6
    }
    ]
    < ["success"]
    Given I have entered 3 into the calculator # GTestCalculatorSteps.cpp:11
    Given I have entered 3 into the calculator # CalculatorSteps.cpp:11
  4. barneywilliams created this gist May 23, 2012.
    26 changes: 26 additions & 0 deletions division.feature
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    Scenario: Regular numbers # division.feature:6
    > ["begin_scenario"]
    < ["success"]
    > ["step_matches",
    {
    "name_to_match":"I have entered 3 into the calculator"
    }
    ]
    < ["success",
    [
    {
    "regexp":"^I have entered (\\d+) into the calculator$",
    "args":[{"val":"3","pos":15}],
    "id":"1",
    "source":"GTestCalculatorSteps.cpp:11"
    }
    ]
    ]
    > ["invoke",
    {
    "args":["3"],
    "id":"1"
    }
    ]
    < ["success"]
    Given I have entered 3 into the calculator # GTestCalculatorSteps.cpp:11