Skip to content

Scenario Outline Examples do not work with Table parameters #389

Open
@pahniki

Description

@pahniki

Hello.
I'm trying to get into Radish and found unexpected for me behavior.

I have a scenario with test parameterization via Scenario Outline, like this one:

Feature: Whatever.

  Scenario Outline: Test radish parametrization
    Then Print <num1> and <num2>
      | a      | b      |
      | <num1> | <num2> |

    Examples:
      | num1 | num2 |
      | 1        | 2        |
      | 3        | 4        |

And this step:

@step("Print {num1:d} and {num2:d}")
def print_num(step, num1, num2):
    logger.info("Line params: {} {}".format(num1, num2))
    logger.info("Table params: {}".format(step.table))

But for some reason values inside of the table are not replaced by values inside of Examples.
Output I received:

Line params: 1 2
Table params: [{u'a': u'<num1>', u'b': u'<num2>'}]
Line params: 3 4
Table params: [{u'a': u'<num1>', u'b': u'<num2>'}]

From my point of view that's a bug. Could you please provide some information about it? And is there any work around?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions