Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber title doesn't load parameters from datatable on scenario outlines #296

Open
farmijolg opened this issue Nov 21, 2019 · 1 comment

Comments

@farmijolg
Copy link

Issue description

Sometimes we use parameters on the titles of the scenarios to avoid duplication of very similar tests. On the cucumber version included on wdiov5, we're facing that the onTestPass event is not replacing the variable on the fullTitle field with the parameter specified on the examples table.

Steps to reproduce

  • Using an scenario outline like this
    Scenario Outline: Signup with the <tier> selected
     Given I use the preselected url for <tier>
     Then <tier> option is preselected

     Examples:
       |tier|
       |tier1|
       |tier2|

  • Run the test
  • Debug on the reporter the object passed to onTestPassed() event and to onSuiteStart() event

Expected behavior

The fullTitle field on both events is: "Signup with the tier1 selected" for the first iteration, "Signup with the tier2 selected" for the second iteration

Actual behavior

On the full title, for both events, the object received is

TestStats {
  type: 'test',
  start: 2019-11-21T08:31:32.217Z,
  _duration: 2117,
  uid: 'I clean the browser cookies6',
  cid: '0-0',
  title: 'Given I clean the browser cookies',
  fullTitle: **'Signup users: Signup with the <tier> selected: Given I clean the browser cookies',**
  output: [],
  argument: undefined,
  state: 'passed',
  end: 2019-11-21T08:31:34.334Z
}

Issue occurred on browser/platform

Not related to the browser.

@paulodsncir
Copy link

Same problem here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants