JBehave
  1. JBehave
  2. JBEHAVE-138

Bug recognising Step with content starting with Given, When, Then, And

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      2

      Description

      When I have a scenario where one my steps contains words starting with Given, When, Then, And, the scenario parser just ignores them.
      Eg: Then the page should display name Anderson (Anderson starts with And, so it doesn't recognise)

      I've made a couple of changes on the PatternScenarioParser to fix it, and I am sending to you.

      Cheers
      Alexandre Martins.

      1. PatternScenarioParser.java
        6 kB
        Alexandre Martins
      2. PatternScenarioParserBehaviour.java
        6 kB
        Alexandre Martins

        Activity

        Alexandre Martins made changes -
        Field Original Value New Value
        Attachment PatternScenarioParser.java [ 37541 ]
        Alexandre Martins made changes -
        Mauro Talevi made changes -
        Fix Version/s 2.1 [ 14547 ]
        Affects Version/s 2.0 [ 14456 ]
        Affects Version/s 2.1 [ 14547 ]
        Hide
        Mauro Talevi added a comment -

        Applied in trunk. Thanks!

        Show
        Mauro Talevi added a comment - Applied in trunk. Thanks!
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Alexandre Martins
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: