Utils.setEnv

Sets the named environment variable to the specified value. If the variable already has a value, it is overwritten.

Utils.setEnv(name, value);

Arguments

Name Description
name(string) Name of the environment variable.
value(string) Value to set for the environment variable.

Return value

A promise that is fulfilled with undefined upon success.

Example

Copy code
(async ()=>{
    await Utils.setEnv("PATH", "C:\\loadrunner\\");
})();