Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to switch env variables runtime in case of Scenario Outline #610

Closed
jime2003 opened this issue Aug 6, 2021 · 1 comment
Closed

Comments

@jime2003
Copy link

jime2003 commented Aug 6, 2021

@smoke
Scenario Outline: Test example
Given Step with
When Step with
Then Result is

@qa
Examples:
| param1 | param2 | result |
| foo | bar | foobar |
| 1 | 2 | 3 |

@uat
Examples:
| param1 | param2 | result |
| foo | bar | foobar |
| 1 | 2 | 3 |

When I run below command through “scripts”, it takes correct environment but it runs all the scenarios and completely ignore given tag.
"npx cypress-tags run -e TAGS="@smoke" --browser chrome --env env=qa"

after removing --env env=qa - it works fine.
our requirement is to run scenarios in different environments by switching it by command.

Can someone please look into it?

@badeball
Copy link
Owner

badeball commented Aug 8, 2021

This has been answered here.

@badeball badeball closed this as completed Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants