We have a requirement to have our firefox profile is to be remotely loaded at run time from a centralized server. We need to make the Browser Agent be able to work with both the selenium web driver and selenium 1.0.3. We are currently having problems with the web driver... The firefox profile is copied by selenium to the local hard drive and then run by selenium. When firefox comes up we see that the Browser Agent is load correctly but is not reading from the Environment Variables. We have tested that is we load the browser manually from the same box we can get connected to the Dynatrace server. But if we load the firefox profile remotely and allow selenium to start the browser, the variables are not being read.... Anything you can do to help???
Answer by Andreas G. ·
You probably need to specify these environment variables on the selenium proceess that will then launch firefox. Env-Variables are passed on to child processes - therefore you need to specify them on the process that launch your browser. makes sense?
Answer by Lawrence M. ·
No. Because there is no way to be able to change the environment and pass those variables to the selenium process without restarting the process. We have to Dynamically set the variables and then have those variables cascade throughout all processes. How can we do that without restarting the selenium process.
I am not aware of a feature in windows to propagate env-variable changes to running processes. If this works (maybe some research on the MSDN Forums) - you should set these variables on the selenium process so that it cascades these values to the launched browser processes
Answer by Lawrence M. ·
This can not be done in the windows environment. Your product does not allow us to scale in a distributed model. Any Automation tool (QTP, Selenium, Silk, etc...) will not be able to dynamically set a windows environment variable such as AGENTNAME and allow this to cascade down thru the Automation processes without a restart. A large modal cannot restart AGENT's every time they need to run a test across a large amount of systems. We need to be able to set both the AGENTNAME and AGENTACTIVE on a dynamic basis. How can you help us with that?
JANUARY 15, 3:00 PM GMT / 10:00 AM ET