1

I have a feature file containing multiple scenarios, few of them are manual. When I run my scenarios I want to exclude Manual scenarios. How to exclude Manual scenarios using QAF BDD2?

Ex: Feature Hello
@channel.. @run
Scenario: Run this scenario
Given ...
When ..
Then..

@Manual
Scenario: Exclude this scenario
Given ...
When ..
Then..

When I run this, it picks all scenarios and skips the one with have @Manual tag saying no def found which is valid but I dont want this scenario to run and skip. I want to exclude this scenario, I tried adding exclude tags in config xml file like below it did not work.

<groups>
            <run>
                <exclude name="Manual"></exclude>
            </run>
        </groups>
Akshata
  • 11
  • 1

1 Answers1

0

it should work with qaf latest version. As alternate you also can try using meta-data filter providing exclude property instead of groups tag. For example:

<parameter name="exclude" value="{'groups': ['Manual']}" />
user861594
  • 5,733
  • 3
  • 29
  • 45