webdriverio: Cucumber: Scenario Outline fails if there is more than one table

Environment:@wdio/cucumber-framework”: "^5.11.11

Log:

ERROR @wdio/runner: TypeError: Cannot read property 'steps' of undefined
at CucumberEventListener.onTestCasePrepared (ode_modules\@wdio\cucumber-framework\build\cucumberEventListener.js:132:42)

Steps to reproduce: Step definition:

Given(/^User (.*) with (.*) is logged in$/, { wrapperOptions: { retry: 2 } }, function (userId, password) {
    console.log(userId, password)
})

Feature

Feature: Foo
    foobar

    Scenario Outline: Bar
        Given User <userId> with <password> is logged in

        @first
        Examples:
                | userId    | password |
                | 345       | pw3      |

        @second
        Examples:
                | userId    | password |
                | 456       | pw4      |

More information on below thread: https://github.com/webdriverio/webdriverio/issues/4195

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (12 by maintainers)

Most upvoted comments

Sorry .I don’t know have reference of any document.