Cucumber not identifying scenario without examples
Asked Answered
H

1

5

I have a gherkin scenario similar to following:

Scenario Outline: Test some behaviour
    Given a set of preconditions
    When an event occurs
    Then my application has to behave in a particular manner
    And respond as expected

When I execute this scenario my report says

0 Scenarios, 0 steps executed.

How ever when I execute a scenario with Examples, my setup works fine.

Am I missing something?

Haroun answered 22/8, 2018 at 16:28 Comment(2)
U are using a 'Scenario Outline' so u need to provide the examples table. Change 'Scenario Outline' to 'Scenario' if u want to run it once.Pleader
@Pleader Thanks for the answer mate :)Sloe
M
6

Scenario Outline is specific to Examples. If you swap to just Scenario you should be fine.

Mangan answered 22/12, 2020 at 17:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.