You are right. I thought I tried that first and it didn't work. But it works as expected. Thanks for the help. -sud
________________________________ From: Mauro Talevi <[email protected]> To: [email protected] Sent: Tue, October 5, 2010 8:38:39 AM Subject: Re: [jbehave-user] multi line string as input parameter If you write your step in textual scenario as below (no \n delimiter), it'll be interpreted correctly (automatically) as multi-line : Then the result is The quick brown fox On 05/10/2010 13:21, sud wrote: Hi all, > > >I am looking for how to set a multi line input as a parameter in my >step method. So my story looks like below: > > >Given a text wrapper of line width 10 >When I wrap the string The quick brown fox >Then the result is The quick \nbrown fox > > >The string being passed into my @Then step method as the parameter is > > >"Then the result is The quick \\nbrown fox" > > >The "\" is being escaped out. Short of writing a custom parameter is >there is it possible to get JBehave to treat the "\n" without >escaping >the "\". > > >If the only way is to use a custom converter should I pass in each >line in the multi line string as a delimited value and use the >custom >converter to replace the delimiter with "\n". > > >Thanks inadvance for your help. >-sud >
