JBehave
  1. JBehave
  2. JBEHAVE-609

Allow named parameters to be replaced in table row parameters values

    Details

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

      Description

      Named parameters, e.g. coming from the examples table in parametrised scenarios, should be optionally replaced in the row parameters values

      Given a parametrised table:

      name value
      name1 <scheme>

      Examples:

      <scheme>
      scheme1
      scheme2

      Values can be retrieved from the parameters row, using the option to replace named parameters:

      boolean replaceNamedParameters = true;
      String value = table.getRowAsParameters(0, replaceNamedParameters).valueAs("value", String.class);
      

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Description Named parameters, e.g. coming from the examples table in parametrised scenarios, should be optionally replaced in the row parameters values

        Given a parametrised table:
        |name|value|
        |name1|<scheme>|

        Examples:
        |<scheme>|
        |scheme1|
        |scheme2|
        Named parameters, e.g. coming from the examples table in parametrised scenarios, should be optionally replaced in the row parameters values

        Given a parametrised table:
        |name|value|
        |name1|<scheme>|

        Examples:
        |<scheme>|
        |scheme1|
        |scheme2|

        Values can be retrieved from the parameters row, using the option to replace named parameters:

        {code}
        boolean replaceNamedParameters = true;
        String value = table.getRowAsParameters(0, replaceNamedParameters).valueAs("value", String.class);
        {code}

          People

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

            Dates

            • Created:
              Updated:
              Resolved: