GivenStories: keyword must come after Scenario: keyword and before any step.

On 13/03/2014 05:31, farheen khan wrote:
I need to run other scenario's in this story,So I called GivenStories after this scenario is completed.

Below is my story file:


Scenario:  Create Users
When the user clicks on Administration Module
Then click on Users tab
And Create new user <UserID> <FirstName> <LastName> <Email> <Password> <Roles>
Examples:
|UserID|FirstName|LastName|Email|Password|Roles|
|kn|kn|kn|[email protected] <mailto:[email protected]>||Finance Manager|


GivenStories: Module2/abc.story#{id1:scenario1}



When I give it for run,I can see GivenStories is taken as a parameter in Examples table.


Examples:
When the user clicks on Administration Module
Then click on Users tab
And Create new user <UserID> <FirstName> <LastName> <Email> <Password> <Roles>

|UserID|FirstName|LastName|Email|Password|Roles|
|kn|kn|kn|[email protected] <mailto:[email protected]>||Finance Manager|
|GivenStories: Module2/abc.story#{id1:scenario1}||||||


What am i doing wrong.Please advice.


--
Thanks and regards
Farheen Khan



Reply via email to