JBehave
  1. JBehave
  2. JBEHAVE-149

Support loading of stories from ODT format

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4
    • Component/s: ODF Support
    • Labels:
      None
    • Number of attachments :
      1

      Description

      As a BA I want to be able to write my story in a ODT format

        Activity

        Hide
        Jan Kronquist added a comment -

        Perhaps only the examples are useful to have in a spreadsheet? Have a look at http://jira.codehaus.org/browse/JBEHAVE-417

        Show
        Jan Kronquist added a comment - Perhaps only the examples are useful to have in a spreadsheet? Have a look at http://jira.codehaus.org/browse/JBEHAVE-417
        Hide
        Bart De Neuter added a comment -

        While I was playing with jbehave I made a Story loader to load ODT files in order to use OpenOffice to create scenario's. This way you can add also other information to the stories like images, styling, ...
        I put the code on google-code: http://code.google.com/p/jbehave-utils/ (maven project with some tests)

        Maybe ODS files (spreadsheat) can be done in a similar way?

        Show
        Bart De Neuter added a comment - While I was playing with jbehave I made a Story loader to load ODT files in order to use OpenOffice to create scenario's. This way you can add also other information to the stories like images, styling, ... I put the code on google-code: http://code.google.com/p/jbehave-utils/ (maven project with some tests) Maybe ODS files (spreadsheat) can be done in a similar way?
        Mauro Talevi made changes -
        Field Original Value New Value
        Summary Support conversion of scenarios from non-textual formats Support loading of stories from ODT format
        Assignee Mauro Talevi [ maurotalevi ]
        Fix Version/s 3.4 [ 17278 ]
        Description As a BA I want to be able to write my scenario in a non-textual format, e.g. spreadsheet, and convert to and from textual format. As a BA I want to be able to write my story in a ODT format
        Component/s ODT Support [ 14705 ]
        Hide
        Mauro Talevi added a comment -

        Started with ODT format support. Other formats like ODS can be added later in the same jbehave-odf module.

        Show
        Mauro Talevi added a comment - Started with ODT format support. Other formats like ODS can be added later in the same jbehave-odf module.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Jonathan Woods added a comment -

        I wonder if this is the time to introduce a strategy such as StorySource: List<Story> getStories(). Then all these various... er, story sources could be used by anything which needed stories, via Configuration implementations or whatever. And it would make mocking nice and easy.

        I realise that many story sources get their stories from a path, but that's not a necessary feature of being a StorySource as suggested here.

        Show
        Jonathan Woods added a comment - I wonder if this is the time to introduce a strategy such as StorySource: List<Story> getStories(). Then all these various... er, story sources could be used by anything which needed stories, via Configuration implementations or whatever. And it would make mocking nice and easy. I realise that many story sources get their stories from a path, but that's not a necessary feature of being a StorySource as suggested here.
        Hide
        Mauro Talevi added a comment -

        Hi Jon, the support of alternative formats to load stories is quite a separate concern.

        Let's discuss the proposed story source strategy separately.

        Show
        Mauro Talevi added a comment - Hi Jon, the support of alternative formats to load stories is quite a separate concern. Let's discuss the proposed story source strategy separately.
        Hide
        Bart De Neuter added a comment -

        Mauro,

        I made some adjustments in order to use a real odt table in the text document. In that sense you can specify the example table with a nice layout. I attached the changes I made to your code.

        Show
        Bart De Neuter added a comment - Mauro, I made some adjustments in order to use a real odt table in the text document. In that sense you can specify the example table with a nice layout. I attached the changes I made to your code.
        Bart De Neuter made changes -
        Attachment jbehave-odf-with-table.zip [ 54947 ]
        Hide
        Mauro Talevi added a comment -

        Thanks, Bart. Patch applied.

        Show
        Mauro Talevi added a comment - Thanks, Bart. Patch applied.

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Mauro Talevi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: