JBehave
  1. JBehave
  2. JBEHAVE-1006

Lifecycle steps not aware of examples table data

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.9.1
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Because the Lifecycle object containing all the before/after steps runs as a separate thing, if any of those steps needs data from the examples table of each scenario, it will not be found

      Example

      Lifecycle:
      Before:
      Given that I am looged as <user>

      Scenario: test

      When I do something
      Then bleh

      Examples:

      user password
      userA passwordA
      userB passwordB

      in this example the runner will not find a matching step because the method for the log in is expecting data, but because the step is in the lifecycle the examples table is not provided to it

        Activity

        There are no entries against this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Bruno Bonanno
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: