Is there a reason you need to use the loadVariables command and can’t just include them directly in the script? loadVariables was put in place for when the browser plugin was used for offline testing (without the web UI) and the web UI doesn’t have any way to pass external files along with the tests.
It’s not just a configuration thing, loadVariables (and the file attach command) just don’t work unless you build some custom automation around pagetest and urlblaster directly (legacy support for older pre-WebPagetest systems).
Thanks Patrick, I thought that WPT can load file located in web-app root folder.
I would like write scripts that have some runtime params (date, origin/destination), I thought that I can generate flat file (cron) with data for the script and WPT can pick it when WPT-Monitor submit new task. The runtime params would be included in ‘navigate’ command.
I’m not sure where WPT Monitor stores the on-disk representation of a test but modifying the actual script stored in WPT Monitor may be the only way. May be worth asking in the WPT Monitor area or pinging Tony directly to see if he built something into WPT Monitor to handle it.
Can you tell me how to substitute a variable using the command LoadVariable.
I tried the below code , but its throwing the error “Load variables is not a supported commands for uploaded scripts”.
We stored the text file (which is having account details) in the C drive of both the IE9 node
///////////////////////////////////////////////////
loadVariables C:\Accounts.txt <= Here we are passing the path of the text file using LoadVariables
logData 0