Replies: 1 comment 2 replies
-
Try storing the DEVICE environment variable in a require('fs').writeFileSync('.env', `DEVICE=${randomDevice}`); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I've looked into your documentation of environment variables, and as I understood, I can pass them like this
"url": "{TEAMS_URL}"
in the config file, but it doesn't work for me.This is my config file:
I assign a value to the variable during the test run:
process.env.DEVICE = String(randomDevice)
But in the report, I get this:
Using
"title": "Test Results - Mobile (Device: {process.env.DEVICE})"
also gives a stringMobile (Device: process.env.DEVICE)
.Can you help me please? What am I doing wrong?
Thanks!
@ASaiAnudeep
Beta Was this translation helpful? Give feedback.
All reactions