Hey there! I could use some assistance. I'm attempting to execute a specific scenario using Cucumber tags with the expression below:
npx wdio run wdio.conf.js --cucumberOpts.tagExpression='@sanity and @stage'
However, when I run the command above, nothing seems to happen. I have defined the tag '@Tag' at the feature level and expected all scenarios within the feature file to be executed. Can someone lend a hand?
npx wdio run wdio.conf.js --cucumberOpts.tagExpression='@Tag'
Example:
@sanity
Feature: Automated Testing
As a user, I want to perform automated login on a website
Scenario: Login with test credentials
Given I navigate to "<Link>"
Then I expect the page title to be "iCRM Login"
When I enter "<Username>" into the input field "#loginEmail"
And I click the button "[role=button]"
And I enter "<Password>" into the input field "#Password1"
Then I click the button "//button[contains(text(),'Log In')]"
Then I wait for element "//body/div[@id='wrap']/div[4]/div[2]/div[2]/div[3]/div[3]" to display for 10000ms
@stage
Examples:
| Username | Password | Link |
| [email protected] | test5# | https://test.com/icrm/index.html |
@Live
Examples:
| Username | Password | Link |
| [email protected] | Virtua5# | https://testlinkslive.com/icrm/index.html
|