JBehave

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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: