JBehave
  1. JBehave
  2. JBEHAVE-839

Story meta incorrectly parsed when GivenStories are specified at story level

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.8
    • Fix Version/s: 3.7.2, 3.8
    • Component/s: Core
    • Labels:
    • Environment:
      Linux,Sun Java 1.6, Maven 2.1
    • Number of attachments :
      0

      Description

      When meta info is mentioned as below, with GivenStories at story level, the value of meta property gets appended with the GivenStories line.

      For example for a story file as below
      Meta:
      @storyName ReuseBitrate
      GivenStories:EndToEnd.story

      Scenario: Verifying ReuseBitrate functionality
      Given Step1
      Then Step2

      The value of @storyName appears with the next line (without quotes)
      "ReuseBitrate
      GivenStories:EndToEnd.story"

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Fix Version/s 3.7.2 [ 18853 ]
        Mauro Talevi made changes -
        Summary Story parser is unable to parse end of the line for meta-tag in story file Story meta incorrectly parsed when GivenStories are specified at story level
        Description When meta info is mentioned as below, the value of meta-tag gets appended with the next line characters.For example for a story file as below
        Meta:
        @storyName ReuseBitrate
        GivenStories:EndToEnd.story

        Scenario: Verifying ReuseBitrate functionality
        Given Step1
        Then Step2


        The value of @storyName appears with the next line (without quotes)
        "ReuseBitrate
        GivenStories:EndToEnd.story"
        When meta info is mentioned as below, with GivenStories at story level, the value of meta property gets appended with the GivenStories line.

        For example for a story file as below
        Meta:
        @storyName ReuseBitrate
        GivenStories:EndToEnd.story

        Scenario: Verifying ReuseBitrate functionality
        Given Step1
        Then Step2

        The value of @storyName appears with the next line (without quotes)
        "ReuseBitrate
        GivenStories:EndToEnd.story"
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Mauro Talevi [ maurotalevi ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Fix Version/s 3.8 [ 19104 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 7 hours
              7h
              Remaining:
              Remaining Estimate - 7 hours
              7h
              Logged:
              Time Spent - Not Specified
              Not Specified