igniteram / protractor-cucumber-typescript

e2e kickstarter test framework which consists of protractor, cucumber frameworks using typescript lang!
MIT License
196 stars 170 forks source link

Unable to pass the multiple scenario tags from command line #17

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi - I have setup your project and trying to executing only two specific scenarios by passing the tags via CLI like below. But the scenarios are not getting picked up..

protractor typeScript/config/config.js --cucumberOpts.tags="@Cucumber Scenario","@ProtractorScenario"

igniteram commented 7 years ago

Since cucumber 2.0, tags options have been changed, cucumber-tag-expressions are used now. you should be able to run the scenarios by using - protractor typeScript/config/config.js --cucumberOpts.tags='@CucumberScenario or @ProtractorScenario'

ghost commented 7 years ago

Thanks for the response @igniteram @smoke @demo Scenario : One

@regression Scenario: Two

protractor typeScript/runner.js --env=prod --cucumberOpts.tags='(@smoke and demo) or @regression' ==> This will execute scenarios which are tagged with @regression and scenarios which are tagged with both @smoke & @demo. Am I correct @igniteram ??

igniteram commented 7 years ago

Yes, you are correct. Please refer the above mentioned link for more examples!

Bharath-Kumar-S commented 7 years ago

Hi Ram.How to pick the same list of scenarios to run form a csv file