Use ignorable step keyword !-- (or whatever you configure it to be).  
So e.g.

When I do something
!-- Ignored text until next keyword
Then I should see result blah

These are parsed as 3 steps, two executable and one ignorable.

On 03/08/2010 15:53, Pranav Singh wrote:
> Hi,
>
> Is it possible to skip characters in the scenario (the plain text
> file) ? Reason been, that I am trying to annotate the text files and
> would like JBehave to ignore them. For instance, can I add "When the
> user types ~lalalal~" and get JBehave to ignore the ~ when parsing the
> file.
>
> I've looked at adding a new keyword (of the type "other") and passing
> it along when defining the scenario:
>
> @Override
> public ScenarioDefiner forDefiningScenarios() {
>     return new ClasspathScenarioDefiner(resolver, new
> PatternScenarioParser(keywords()));
> }
>
> but, it seems that the Keyword class cannot except new keywords of the
> type "other".
>
> Is there a way to achieve this?
>
> Thanks, 
> Pran.
>
>

Reply via email to