JBehave
  1. JBehave
  2. JBEHAVE-487

Allow parameters to be specified as meta properties

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      As suggested by Paul, parameters may be specified as Meta properties:

      Meta: 
      
      @theme parameters
      
      Scenario: 
      
      Meta:
      
      @variant named
      
      Given I have specified the <theme>
      And a <variant>
      Then the theme is parameters with variant named
      

      The named meta parameters would be matched by usual @Named mechanism, also used in story or scenario parametrisation.

      @Given("I have specified the <theme>")
      public void givenIHaveSpecifiedTheTheme(@Named("theme") String theme){
          this.theme = theme;
      }
      

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Mauro Talevi made changes -
        Status In Progress [ 3 ] 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: