JBehave
  1. JBehave
  2. JBEHAVE-214

Allow for multiple aliases for a given step

    Details

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

      Description

      I've got a machine which outputs messages. I've found three different ways of expressing that in steps:

      Then the machine should tell me that $message
      Then the machine should tell me to $message
      Then the machine should say "$message"

      I'd like to be able to put more than one alias on a step.

      (@Aliases ?)

        Activity

        Hide
        Cristiano Gavião added a comment -

        Hi,
        Maybe I don't understand right this request, but I'm thinking that @Aliases is already working...

        @Given("the dropdown $label has been selected with $value")
        @Aliases(values =

        { "dropdown $label was changed to $value", "the value $value was choosed in dropdown $label" }

        )
        public void ensureDropDownWasSelectedWithValue(
        @Named("label") String pIdOrLabel, @Named("value") String pValue) {}

        regards.

        Cristiano

        Show
        Cristiano Gavião added a comment - Hi, Maybe I don't understand right this request, but I'm thinking that @Aliases is already working... @Given("the dropdown $label has been selected with $value") @Aliases(values = { "dropdown $label was changed to $value", "the value $value was choosed in dropdown $label" } ) public void ensureDropDownWasSelectedWithValue( @Named("label") String pIdOrLabel, @Named("value") String pValue) {} regards. Cristiano
        Hide
        Mauro Talevi added a comment -

        Implemented in JBEHAVE-131.

        Show
        Mauro Talevi added a comment - Implemented in JBEHAVE-131 .
        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Elizabeth Keogh
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: