JBehave
  1. JBehave
  2. JBEHAVE-395

Story reporter in the XML format does not include the story narrative in the story title XML attribute

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Not A Bug
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      XML report builder produces a report with a empty "title" attribute of the "story" elment if the executed story contains a narrative e.g. <story title="">

      If the executed story does not contain a narrative then a empty "title" attribute is still produced.

      I would expect a story narrative to be contained in the "title" attribute if the story provides one or no "title" attribute should be provided if the story contains no narrative

      Attached testcase has only been tested on the 3.1.x versions

        Activity

        Hide
        Mauro Talevi added a comment -

        Story title and narrative are independent elements. The title is free-text and contains whatever comes before the first keyword element, e.g. Narrative:. The narrative by contrast has its well-defined structure. It you want to have the title contain narrative-like structure, simply omit the Narrative: keyword and ensure it comes before any other story keyword.

        Show
        Mauro Talevi added a comment - Story title and narrative are independent elements. The title is free-text and contains whatever comes before the first keyword element, e.g. Narrative:. The narrative by contrast has its well-defined structure. It you want to have the title contain narrative-like structure, simply omit the Narrative: keyword and ensure it comes before any other story keyword.
        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Not A Bug [ 6 ]
        Mauro Talevi made changes -
        Affects Version/s 3.1.1 [ 16850 ]
        Affects Version/s web-3.1 [ 16756 ]
        Affects Version/s web-3.1.1 [ 16885 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: