Hi For me, it works just like that. I use for example (please excuse the localized example): Och anger texten RT-Lektor under Ange inriktning för vald examen If you see it color coded (as I intended) you see that "Ange inriktning för vald examen" is interpreted as the second parameter in that step.
HTH, Christian Christian Karlsson CAG Contactor AB Adress: Jan Stenbecks Torg 17, SE-164 40 Kista Mobil: +46 (0)706694527 Mail: christian.karlsson <at> cag.se www.cag.se<https://wmail.cag.se/owa/redir.aspx?C=G2EjVQkj7kGZyieqy24uGB6NV2uAkM9Iy3xqV4cZFUaEVGXCGlWIq_V5O25t1jIUtjHgAaGFl0U.&URL=http%3a%2f%2fwww.cag.se%2f> Från: Thiwanka Somasiri [mailto:[email protected]] Skickat: den 7 juni 2013 06:00 Till: [email protected] Ämne: [jbehave-user] Fwd: Writing story parameters with spaces Hi, I am new to Jbehave and need a clarification regarding writing stories. I have a step in the story where it gives a name of a person as "James Bond", without quotation marks. So I have to write a step in my step class as follows, Scenario: Given user name is James Bond @Given("user name is $userName") public void setUserName(String userName) { ........................ } In this case how can I capture the value James Bond to my userName parameter? Thanks.
