JBehave
  1. JBehave
  2. JBEHAVE-814

Format.XML_TEMPLATE using Hamcrest matchers produces invalid xml tags

    Details

    • Number of attachments :
      0

      Description

      When using OutcomesTable with Hamcrest matchers, if you have an outcome error, the generated value from the matcher for Long, Short, Float and Object is surrounded with '<' and '>'.

      It gives an xml tag that looks like this:
      <value><1234L></value>

      which is invalid xml.
      Hudson/Jenkins plugin then fail to produce a report for xUnit.

      I think the reporter should escape these characters.

        Activity

        Hide
        Alexander Lehmann added a comment - - edited

        There are a few escape errors in the template report in 3.6.8 that are fixed in the snapshot version, however these errors only happen in the template version of the report.

        If you are using XML_TEMPLATE, please check if the error goes away when using Format.XML instead.

        (sorry, i failed to read the title properly before)

        Show
        Alexander Lehmann added a comment - - edited There are a few escape errors in the template report in 3.6.8 that are fixed in the snapshot version, however these errors only happen in the template version of the report. If you are using XML_TEMPLATE, please check if the error goes away when using Format.XML instead. (sorry, i failed to read the title properly before)
        Hide
        Alexander Lehmann added a comment -

        this is in fact fixed in the snapshot version

        Show
        Alexander Lehmann added a comment - this is in fact fixed in the snapshot version
        Hide
        Ghislain Nadeau added a comment -

        i'll use it then
        thanks for the info

        Show
        Ghislain Nadeau added a comment - i'll use it then thanks for the info
        Ghislain Nadeau made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Fix Version/s 3.7 [ 18390 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Ghislain Nadeau
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: