JBehave
  1. JBehave
  2. JBEHAVE-713

Web Runner results leak between invocations

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: web-3.x
    • Component/s: Web Runner
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Take a story that passes:

       
      Scenario:
      Given a threshold of 10.0
      When the stock is traded at 5.0
      Then the alert status should be OFF
      When the stock is traded at 11.0
      Then the alert status should be ON
      

      Confirm it passes. Change it so that it does not pass. In this case, change 5.0 to 888. The re-run.

      Note that it fails as expected.

      Change it back to the 'passing' grammar again, and re-run.

      Note that it apparently fails. Any repeated clicking of the 'run' button shows the failed results again and again

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Fix Version/s web-3.5 [ 17722 ]
        Hide
        Mauro Talevi added a comment -

        Can't seem to reproduce the issue. My steps:

        mvn clean install -Pexamples
        cd examples/trader-runner
        mvn jetty:run-war
        

        Open http://localhost:8080/trader-runner/story/run

        First run passes with

        Scenario:
        Given a threshold of 10.0
        When the stock is traded at 5.0
        Then the alert status should be OFF
        When the stock is traded at 11.0
        Then the alert status should be ON
        

        Second run fails with

        Scenario:
        Given a threshold of 10.0
        When the stock is traded at 15.0
        Then the alert status should be OFF
        When the stock is traded at 11.0
        Then the alert status should be ON
        

        Third run passes with params of first run.

        Are you using run or submit (i.e. async running)?

        Show
        Mauro Talevi added a comment - Can't seem to reproduce the issue. My steps: mvn clean install -Pexamples cd examples/trader-runner mvn jetty:run-war Open http://localhost:8080/trader-runner/story/run First run passes with Scenario: Given a threshold of 10.0 When the stock is traded at 5.0 Then the alert status should be OFF When the stock is traded at 11.0 Then the alert status should be ON Second run fails with Scenario: Given a threshold of 10.0 When the stock is traded at 15.0 Then the alert status should be OFF When the stock is traded at 11.0 Then the alert status should be ON Third run passes with params of first run. Are you using run or submit (i.e. async running)?
        Hide
        Mauro Talevi added a comment -

        Not able to reproduce issue. Moving to web-3.x backlog.

        Show
        Mauro Talevi added a comment - Not able to reproduce issue. Moving to web-3.x backlog.
        Mauro Talevi made changes -
        Fix Version/s web-3.x [ 17273 ]
        Fix Version/s web-3.5 [ 17722 ]

          People

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

            Dates

            • Created:
              Updated: