Module: | Driver Framework |
---|
In rare cases, the user may wish to pass environment variables
to the Java process running the driver agent, such as preloading
certain libraries used by
the driver agent by specifying the LD_PRELOAD environment
variable.
Environment variables can be passed to a driver process on a per driver type basis by adding fd:environment elements within the fa:driverConfig block for the driver that needs the environments. Any number of fd:environment elements may be specified, one for each environment variable. The value provided in the fd:environment elements is the variable name and value separated by an '=' (equal) sign. The sample below shows setting of LD_PRELOAD and LD_LIBRARY_PATH for a driver agent process:
<fa:runConfig
definition="sample.driver.WebDriver" xmlns="http://faban.sunsource.net/ns/fabandriver" xmlns:fa="http://faban.sunsource.net/ns/faban" xmlns:fh="http://faban.sunsource.net/ns/fabanharness"> .... <driverConfig name="WebDriver"> <agents>1</agents> <environment>LD_PRELOAD=mypreload.so<environment> <environment>LD_LIBRARY_PATH=/mylibs<environment> .... </driverConfig> .... </fa:runConfig> |