Is it possible to pass an argument to a test? #24194
Answered
by
mkonev-casafari
stephenmday
asked this question in
Questions and Help
-
Along the lines of this article - https://blog.bitsrc.io/how-to-pass-command-line-arguments-in-node-js-46af7960b45f |
Beta Was this translation helpful? Give feedback.
Answered by
mkonev-casafari
Oct 11, 2022
Replies: 1 comment 1 reply
-
Hi, you can pass variables in following way when run cypress
and use it in test
for more details read following article https://docs.cypress.io/guides/guides/environment-variables#Setting |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
stephenmday
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
you can pass variables in following way
when run cypress
and use it in test
for more details read following article https://docs.cypress.io/guides/guides/environment-variables#Setting