Hi Mauro, Thanks for the solution. Once I try this will let you know how it works.
Thanks, Manpreet From: Mauro Talevi [mailto:[email protected]] Sent: Friday, August 23, 2013 1:19 AM To: [email protected] Subject: Re: [jbehave-user] Jbehave Meta Filters Hi, in effect the default meta matcher currently only supports the * directive. We could extend it but given we have a more powerful groovy-based meta matcher, it's best you use that: MetaFilter filter = new MetaFilter("groovy: (theme == 'T1' | theme == 'T2')"); assertTrue(filter.allow(new Meta(asList("theme T1")))); assertTrue(filter.allow(new Meta(asList("theme T2")))); assertFalse(filter.allow(new Meta(asList("theme T3")))); Note that you need the groovy runtime in your classpath. Cheers On 22/08/2013 19:29, Manpreet Ratra (CS) wrote: Hi All, I am trying to set meta filter but having hard time doing that. I have a set of scenarios say "10" in a story file from Level L1 - L10, out of this I only need to execute L1 & L2 and I tried the following which doesn't work - meta.filter=+Level L1 L2 - Nothing executed meta.filter=+Level L1, +Level L2 - only executes the last one i.e. L2 meta.filter=+Level L* - executes all L1 - L10 Is there any other way I can do this. Thanks, Manpreet
