Hi
what is the stated intention here? You want two steps to match the
same method with different parameter names?
Can you please provide a sample project - inclusive of textual stories
and steps class that reproduces your issue?
Thanks
On 06/02/2014 16:52, Hans Schwäbli wrote:
I have two steps like this with a examples table where the values are
defined:
Given the account data of <debitAccount> is known
Given the account data of <creditAccount> is known
First I tried this in the step class method for the two steps above:
@Given("the account data of $debitAccount is known")
It works only for the first of the two steps. But the second step gets
value "<creditAccount" passed into the method instead of the actual
value from the examples table.
So I changed the annotation to be like this:
@Given("the account data of $acount is known")
But this does not work for both steps above since "<debitAccount>" and
"<creditAccount>" is passed into the method instead of the actual values.
Then I tried it with an alias:
@Given("the account data of <debitAccount> is known")
@Alias("the account data of <creditAccount> is known")
The result was that the story failed without showing me why (no
exception or any meaningful message).
I tried also some other things with no success. I use JBehave 3.9 by
the way.
Can you please tell me the solution?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email