Details
-
Type: Story
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Number of attachments :
Description
Would like to segregate data from story file so that maintenance between stories and datas can be easy.
For example,
Given I log into mail account as user $username with password $password
example
username xxx
password xxx.
Would like to keep the example part in one file(.xml or text file) and .story file may not have example part. I want to create a mapping between $username from .story file and the data 'xxx' from .xml/.txt file. When Jbehave executes the scenario in step file, it should able to read the data('xxx') from data file and map to appropriate filed($username). Is this possible in present Jbehave framework? Could help us to do this
You can parametrise a scenario using the table data loaded from a separate file:
http://jbehave.org/reference/stable/parametrised-scenarios.html
When contributing new ideas, please start from asking on the mailing lists if it's already possible with the current functionality:
http://jbehave.org/reference/stable/how-to-contribute.html
An issue can be opened once the idea has been discussed.