Current time: 03-27-2017, 04:55 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programmatically Change "load extension" Command Line parameter
02-24-2017, 02:24 AM
Post: #1
Programmatically Change "load extension" Command Line parameter
Hi, I'm trying to use the wpt_batch program on my private instance to load webpages in succession while changing the extensions.

I was able to add another extension to the browser by editing the config file on my private instance however, when I attempt to do this by passing the --load-extension in the 'cmdline' option of test_params I get an "Invalid command line option" error response.

Is it possible to change the extensions loaded on the page programmatically?
Find all posts by this user
Quote this message in a reply
02-26-2017, 11:00 PM
Post: #2
RE: Programmatically Change "load extension" Command Line parameter
I would be interested in this feature too.
Find all posts by this user
Quote this message in a reply
03-03-2017, 06:40 AM
Post: #3
RE: Programmatically Change "load extension" Command Line parameter
Try adding load-extension to the list of command-line options that are allowed special characters in runtest.php: https://github.com/WPO-Foundation/webpag....php#L2491

You might just stub out the validation call to let everything through but it's risky in that it opens up remote access to people running arbitrary commands on your test agents (unless you can also figure out a regex that you can filter for loading that doesn't have the same risk).
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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