timjroberts/cucumber-js-tsflow

How to retrieve values from a scenario outline

zoiman opened this issue · 0 comments

zoiman commented

I simple have no idea how to retrieve values from a scenario outline in my steps. When I have this simple scenario for example:

Feature: User creation

  Scenario Outline: Creating <numUsers> new users
    Given I have a valid authentication token
    When I send a request for <numUsers> users to create
    Then the the response should contain <numUsers> ids
    
    Examples:
      | numUsers |
      | 1            |
      | 5            |
      | 10           |

I tried to use {string} and {number} in the pattern or something like this:
/I send a request for <([^"]*)> users to create/

But I can not get it done.