JBehave
  1. JBehave
  2. JBEHAVE-949

Same Stacktrace message is repeated for all failed tests in Jenkins plugin test result

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8
    • Fix Version/s: 3.9
    • Component/s: Jenkins Support
    • Labels:
      None
    • Number of attachments :
      2

      Description

      I am running Jbehave tests as Jenkin's free style project using jbehave-jenkin plugin (v3.8 ).

      Test result getting displayed correctly after the build.
      But, same Stacktrace message got displayed for all failed tests in test result.

      Stacktrace of first failed test case is repeated in all the stacktrace of failed test cases.

      Request you to please suggest whether this is known issue or I am doing something wrong ?

      Note - Error message of all failed test cases displayed correctly.

      1. simple.rar
        3 kB
        Naveen Kumar
      1. Stacktrace-issue.JPG
        23 kB

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Summary Jbehave-Jenkin Plugin Issue - Same Stacktrace message got displayed for all failed tests in test result Same Stacktrace message got displayed for all failed tests in test result
        Hide
        Mauro Talevi added a comment -

        Do you have a sample project that allows us to reproduce this behaviour?

        Show
        Mauro Talevi added a comment - Do you have a sample project that allows us to reproduce this behaviour?
        Hide
        Naveen Kumar added a comment - - edited

        Hi Mauro,

        Sorry,I can't share project due to security concern.

        Please suggest.

        Thanks,
        Naveen

        Show
        Naveen Kumar added a comment - - edited Hi Mauro, Sorry,I can't share project due to security concern. Please suggest. Thanks, Naveen
        Naveen Kumar made changes -
        Attachment xxxx_stories.xml [ 64270 ]
        Mauro Talevi made changes -
        Fix Version/s 3.9 [ 19035 ]
        Hide
        Mauro Talevi added a comment -

        So, to clarify, the error message is displayed correctly for each failure but it's only the stacktrace that is repeated?

        Show
        Mauro Talevi added a comment - So, to clarify, the error message is displayed correctly for each failure but it's only the stacktrace that is repeated?
        Naveen Kumar made changes -
        Summary Same Stacktrace message got displayed for all failed tests in test result Same Stacktrace message got displayed for all failed tests in Jenkins plugin test result
        Naveen Kumar made changes -
        Attachment Stacktrace-issue.JPG [ 64297 ]
        Attachment simple.rar [ 64296 ]
        Naveen Kumar made changes -
        Attachment xxxx_stories.xml [ 64270 ]
        Hide
        Naveen Kumar added a comment -

        Yes, only stacktrace is repeated.

        I have attached a simple project to reproduce this issue.
        Same issue is coming when running tests as Jenkins plugin.

        Below is story file :

        Scenario: Addition scenario
        
        Given two numbers 2 and 4
        When user add
        Then addition result should be 8
        
        Scenario: Subtraction scenario
        
        Given two numbers 4 and 2
        When user subtract
        Then subtraction result should be 6
        

        Stacktrace 'java.lang.AssertionError: Addition Result not Correct expected:<6> but was:<8>' is repeated for failed subtraction scenario.
        PFA screenshot for the same.

        Show
        Naveen Kumar added a comment - Yes, only stacktrace is repeated. I have attached a simple project to reproduce this issue. Same issue is coming when running tests as Jenkins plugin. Below is story file : Scenario: Addition scenario Given two numbers 2 and 4 When user add Then addition result should be 8 Scenario: Subtraction scenario Given two numbers 4 and 2 When user subtract Then subtraction result should be 6 Stacktrace 'java.lang.AssertionError: Addition Result not Correct expected:<6> but was:<8>' is repeated for failed subtraction scenario. PFA screenshot for the same.
        Naveen Kumar made changes -
        Summary Same Stacktrace message got displayed for all failed tests in Jenkins plugin test result Same Stacktrace message is repeated for all failed tests in Jenkins plugin test result
        Hide
        Naveen Kumar added a comment - - edited

        It seems issue is with XSL transform sheet jbehave-3.x-to-junit-1.0.xsl present in jbehave-3.8\jbehave-jenkins-plugin\src\main\resources\org\jbehave\jenkins .

        Pull request sent.

        Show
        Naveen Kumar added a comment - - edited It seems issue is with XSL transform sheet jbehave-3.x-to-junit-1.0.xsl present in jbehave-3.8\jbehave-jenkins-plugin\src\main\resources\org\jbehave\jenkins . Pull request sent.
        Hide
        Mauro Talevi added a comment -
        Show
        Mauro Talevi added a comment - Pulled patch https://github.com/jbehave/jbehave-core/pull/56 with thanks.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Naveen Kumar
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: