|getenv works but getProperty does not [message #759719]
||Tue, 29 November 2011 18:27
Registered: November 2011
I am using Eclipse to write webdriver tests in Java. In the code I had the following line:|
String baseUrl = System.getenv("url");
I entered the url under the environment variables in the run configuration and it works fine.
However, to work correctly in maven the statement needs to be:
String testSite = System.getenv("site");
Where do I need to enter the information in Eclipse? Because it is no longer working in the environment variable of the run configuration.
Powered by FUDForum
. Page generated in 0.02994 seconds