Environment Variables

1- Create your Environment(s):

2- Create and set your Environment variables:

 

3- Use environment variable in your Step Code:

driver.findElement(By.id("YOUR_ID")).sendKeys(System.getenv("Email"));

 

await driver.elementById("YOUR_ID").sendKeys(process.env.Email);

 

driver.FindElement(By.Id("YOUR_ID")).SendKeys(Environment.GetEnvironmentVariable("Email"));

 

 

 

4- Set your environment for Test Run:

Please do not use the following variables as your custom system environment variable name. These are Momentum system variables as mentioned here → https://mobven.atlassian.net/wiki/spaces/MOMSU/pages/1473511427


Prohibited variable names:
"host", "device_index", "port", "test_id", "session_id", "type", "os_version", "test_plan_id", "device", "assets", "device_id", "case_id", "integration_id", "output", "appUrl", "isError",