"Examples: " block for several scenarios?

39 views
Skip to first unread message

Kapor Zhu

unread,
Mar 15, 2013, 1:08:44 AM3/15/13
to lettuc...@googlegroups.com
Hi all,

    Feature: test outlines

    Scenario: s1
        Given I accesss "<url>"
        Then I can see "<message>"

    Scenario: s2
        Given I go to "<url>"
        Then I can read "<message>"

    Examples:
        | url | message |
        | /    | welcome |
        | /a/ | hello       |

Is the "Examples" block only for the "Scenario: s2"( the first Scenario above it)?
Or it can use for   "Scenario: s1" too?

Thanks
Regards
Kapor

Kapor Zhu

unread,
Mar 15, 2013, 1:36:59 AM3/15/13
to lettuc...@googlegroups.com
Any one can help?

在 2013年3月15日星期五UTC+8下午1时08分44秒,Kapor Zhu写道:

jenisys

unread,
May 30, 2013, 12:22:34 PM5/30/13
to lettuc...@googlegroups.com
1. You need to use "Scenario Outline" instead of "Scenario".
2. Examples are associated to its preceeding "Scenario Outline".
    Therefore you cannot use them for 2 scenarios (as you use it).
Reply all
Reply to author
Forward
0 new messages