JBehave
  1. JBehave
  2. JBEHAVE-780

Isolate parameter data from .story files

    Details

    • Type: Story Story
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      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

        Activity

        Hide
        Mauro Talevi added a comment -

        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.

        Show
        Mauro Talevi added a comment - 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.

          People

          • Assignee:
            Unassigned
            Reporter:
            prem
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: