JBehave
  1. JBehave
  2. JBEHAVE-1018

Parametrised step is rendered incorrectly if there is more than 1 parameter and a table

    Details

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

      Description

      When having exemples tables parameter with other parameter table is not transformed in generated reports

      Error comes from StepCreator
      -> stepText = stepText.replace(NEWLINE, PARAMETER_VALUE_NEWLINE);
      witch is done even if there is a table.

      for instance
      Given table MY_TABLE with data:

      INSTRUMENT AMOUNT
      AUD_NZD 1000

      for step
      @Given("table $table with data: $examples")
      public void givenTableWithData(String table, ExamplesTable examples) {

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Component/s Core [ 11086 ]
        Fix Version/s 3.9.3 [ 20321 ]
        Summary If there is more than 1 parameter and one exemple table Parametrised step is rendered incorrectly if there is more than 1 parameter and a table
        Mauro Talevi made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Leroux Benjamin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: