Current time: 10-19-2019, 04:41 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
loadVariables - not supported?
04-26-2012, 12:18 AM (This post was last modified: 04-26-2012 12:18 AM by sabreB6.)
Post: #1
loadVariables - not supported?
Hey!
I'm trying to submit script to my private WPT instance that loadVariables however I'm getting this error message:

loadVariables is not a supported command for uploaded scripts.

I can see same error in WPT-Monitor logs as well as in manually submitted scripts.

Do I need to change some config?

Regards.
Find all posts by this user
Quote this message in a reply
04-26-2012, 12:25 AM
Post: #2
RE: loadVariables - not supported?
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).
Visit this user's website Find all posts by this user
Quote this message in a reply
04-26-2012, 12:36 AM
Post: #3
RE: loadVariables - not supported?
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.

Is there a way to do that with WPT, WPT-Monitor?
Find all posts by this user
Quote this message in a reply
04-26-2012, 04:59 AM
Post: #4
RE: loadVariables - not supported?
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
04-26-2012, 04:57 PM
Post: #5
RE: loadVariables - not supported?
Ok I'll try this, thanks!
Find all posts by this user
Quote this message in a reply
04-13-2015, 08:05 PM
Post: #6
RE: loadVariables - not supported?
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

// bring up the login screen
navigate http://xxxx/shop/index.jsp?categoryId=2255956
navigate https://xxx/coreg/index.jsp?step=register

// log in
setValue name=email %Username%
setValue name=password Passw0rd!
submitForm name=returningCustomer

logData 1

//search
navigate http://xxxx/search/index.jsp?kwCatId=&kw=bat&origkw=bat&sr=1
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)