|
||||||||
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
- [jbehave-dev] [jira] (JBEHAVE-831) Pre- and postcondit... Olmo Rigolo (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-831) Pre- and postc... Olmo Rigolo (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-831) Pre- and postc... Mauro Talevi (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-831) Pre- and postc... Mauro Talevi (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-831) Pre- and postc... Olmo Rigolo (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-831) Pre- and postc... Mauro Talevi (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-831) Pre- and postc... Olmo Rigolo (JIRA)
Hi Mauro,
the problem is that create user is not a real world scenario. For instance, there is no UI for it.
Create user would be exactly the code of a @BeforeScenario method.
In your proposal, if there would be a story#scenario file for it, this would only be one sentence. The content of /path/to/user_management.story#create_user: would be sth. like that
Scenario: create User
Given a new user <login> with data <dataentries>
Examples:
login|dataentries
bla|{Test, User, Teststreet 3, Berlin, Germany}
I think your proposal makes sense for more complicated tests, but its only an extension (in case of tear down) of the GivenStories keyword.