Use environment variables in node script

Hi, I want to test the app that is uploaded to Browserstack.
In Browserstack upload step I have:
[upload app and return app_url] | envman add --key BROWSERSTACK_APP_ANDROID

And in webdriverio config I have this refecence:
app : process.env.BROWSERSTACK_APP_ANDROID

As a result, app property is not read during test at all (not app: null, just no app).

Please explain, how to write environment variables in node scripts correctly?

Thanks!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.