JBehave
  1. JBehave
  2. JBEHAVE-648

Expose story and scenario elements as Meta

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.4, 3.6
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      On the back of JBEHAVE-625, it can be useful to expose story and scenario elements (only top-level ones and excluding the user-defined meta properties) as Meta, which can then be used for filtering or matching.

      This can be done as a decorator method on the Story and Scenario model classes, e.g.

      Meta storyMeta = story.asMeta("story_");
      Meta scenarioMeta = scenario.asMeta("scenario_");
      

      where the prefix can be used to provide a namespace to avoid conflicts with user-defined meta properties, but can also be set to an empty string.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Description On the back of JBEHAVE-625, it can useful to expose story and scenario elements as Meta, which can then be used for filtering or matching.

        This can be done as a decorator method on the Story and Scenario model classes, e.g.

        {code}
        Meta storyMeta = story.asMeta("story_");
        Meta scenarioMeta = scenario.asMeta("scenario_");
        {code}

        where the prefix can be used to provide a namespace to avoid conflicts with user-set meta properties, but can also be set to an empty string.
        On the back of JBEHAVE-625, it can be useful to expose story and scenario elements (only top-level ones and excluding the user-defined meta properties) as Meta, which can then be used for filtering or matching.

        This can be done as a decorator method on the Story and Scenario model classes, e.g.

        {code}
        Meta storyMeta = story.asMeta("story_");
        Meta scenarioMeta = scenario.asMeta("scenario_");
        {code}

        where the prefix can be used to provide a namespace to avoid conflicts with user-defined meta properties, but can also be set to an empty string.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: