It's possible if you define your own custom converter, but it should be
associated to a custom parameter type, e.g. ErrorCode.
Then you implement the value conversion logic in the parameter converter.
That said, it does not really seem very logical to do this. What's your
usecase?
On 03/04/2015 03:00, Patel, Nikunj (GE Healthcare) wrote:
Hi,
Is there any way in Jbehave we can override step with converted
parameter values?
Here is what I am trying to do:
For Example:
I have step in feature file- Then error message “abc” should be
displayed.
Let’s see I am converting string from “abc” to “xyz”.
Now, I want to override feature file step with converted value and see
HTML report like- Then error message “xyz” should be displayed.
Thanks,
Nikunj