behavex icon indicating copy to clipboard operation
behavex copied to clipboard

Tags Pre-processor to filter Feature files and scenarios based on free-hand expressions

Open qarampage opened this issue 2 years ago • 7 comments

Hi @hrcorval @anibalinn

I am using your behavex package extensively in the automation framework. It is quite impressive and I am also having a few suggestions that I have posted in the issue tracker and waiting for other new features to get implemented from the tracker.

However, to support filtering out the feature files and scenarios based on given tags expression like below, I have created an bdd-tags-processor module. I was wondering if you could have a look at it and integrate that within behavex. I am using this on top of behaveX call to have the right set of scenarios to be executed by behavex

Given expression: { ~@web and @browser and @checkout and ~@norun and ( @regression or @Sanity )} Result: --> NoRuns: ['@web', '@norun'], Ands: ['@browser', '@checkout'], Ors: ['@regression', '@Sanity']

Given expression: { @web and @regression and @norun and ( @test1 or @test2 )} Result: --> NoRuns: [], Ands: ['@web', '@regression', '@norun'], Ors: ['@test1', '@test2']

I have the main() function with adequate examples and how to use.

qarampage avatar Aug 17 '23 12:08 qarampage

Hi @qarampage, I like this feature a lot. Do you have the implementation to review it and analyze extending the BehaveX library? Thanks!

hrcorval avatar Jun 28 '24 21:06 hrcorval

Thanks @hrcorval , Sure, you can review it here https://pypi.org/project/bdd-tags-processor/ I have detailed examples there and you can also try it out

qarampage avatar Jul 01 '24 12:07 qarampage

hi @hrcorval, how's everything going on your side ! just want to know if you tried the bdd-tags-processor module ?

qarampage avatar Aug 20 '24 08:08 qarampage