I have a machine on which I'm writing the code and I'm executing the code on a different machine locally by using port forwarding. In this case, if I set IntelliJ environment variables in my local machine IntelliJ (The machine in which I'm writing the code), will it be read on the remote machine? Basically I'm confused about where IntelliJ sets this environment variable and whether its global?
I have set the environment variable under "Run Configurations" by the way.
IntelliJ IDEA TestNG run configuration does nothing to pass the environment variables to the remote machine, they will be set for the local machine only. You need to do it from your code that runs on the remote system.