Details
-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Not A Bug
-
Affects Version/s: 3.6.8
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Environment:windows7, java 1.6.0-26
-
Number of attachments :
Description
I have a step method aliased like this (to be able to use the step with table parameters and explicitly as well)
@Then("title is \"$title\"") @Alias("title is <title>") public void thenTitleIs(@Named("title") final String title) { logger.debug("thenTitleIsTable("+title+")"); }
when I now use the steps
... Then title is <title> ... Then title is "some other title"
the 2nd step gets the variable set from the first step
when the steps are defined in 2 different methods, the behavior is as expected.
Activity
Alexander Lehmann
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | jbehave-800.zip [ 60564 ] |
Alexander Lehmann
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Not A Bug [ 6 ] |
This is not directly caused by the alias defintion, it doesn't work if a @Named parameter in a regular parameter has the same name as an example parameter.