JBehave
  1. JBehave
  2. JBEHAVE-209

Add ParameterConverter for ExamplesTable

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      To facilitate parsing of table parameters with tabular structure, it's useful to have a parameter converter that takes multi-line input and converts it to a ExamplesTable. This then allows users to match step such as:

      Given the traders:

      name rank
      Larry Stooge 3
      Moe Stooge 1
      Curly Stooge 2

      using a method with ExamplesTable parameter:

      @Given("the traders: %tradersTable")
      public void theTraders(ExamplesTable tradersTable) {
      // use traders table to extract required data
      }

        Activity

        Hide
        Mauro Talevi added a comment -

        Updated wildcard_search.scenario to use ExamplesTable parameters.

        Added table-parameters.html page to documentation.

        Show
        Mauro Talevi added a comment - Updated wildcard_search.scenario to use ExamplesTable parameters. Added table-parameters.html page to documentation.
        Mauro Talevi made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Mauro Talevi
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: