#cypress #javascript
+How to create environment variables in Cypress?
+How to create and use global variables in Cypress?
▬▬▬▬▬▬ In this Video ▶️ ▬▬▬▬▬▬
In Cypress, “environment variables” are variables that are accessible via Cypress.env . Those variables are great at pointing to external services and servers, or storing password or other credentials.
Environment variables are useful when:
-Values are different across developer machines.
-Values are different across multiple environments: (dev, staging, qa, prod)
-Values change frequently and are highly dynamic.
-Environment variables can be changed easily - especially when running in CI.
▬▬▬▬▬▬ Useful Links 🛠 ▬▬▬▬▬▬
Blog ► http://codenboxautomationlab.com/
GitHub Repo ► https://github.com/codenbox
Cypress doc ► https://docs.cypress.io/guides/guides/environment-variables.html#Option-1-configuration-file
▬▬▬▬▬▬ Connect with us 👋 ▬▬▬▬▬▬
~~~Subscribe to this channel, and press bell icon to get all updated videos on Selenium and Cypress Automation:
null
~~~ Follow us on Facebook & Twitter to get more updates:
https://www.facebook.com/CodenBoxQA/
10 Comments