Current time: 11-25-2020, 09:40 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Benchmarks and Scripting
06-24-2014, 06:32 AM
Post: #3
RE: Benchmarks and Scripting
Warning, the benchmark support is still pretty rough, though feedback is very much appreciated.

Yes, There are 2 ways to do it depending on if you want a bunch of different scripts (1) or the same script applied to a bunch of different URLs (2).

1) The URL list can contain scripts or urls for each entry. It's a bit convoluted because the script needs to fit on one line in the url list so you need to use \t for the tab separators and \n for the line separators. i.e.:

script:setDns\twww.webpagetest.org\t1.2.3.4\nnavigate\thttp://www.webpagetest.org/

2) You can pass a script as a test option. The scripts support a couple of substitution markers so that you can use the same script with a bunch of URLs:
%URL% - gets replaced with the URL being tested
%HOST% - gets replaced with the host name of the URL being tested

A script can look like:
setDns %HOST% 1.2.3.4
navigate %URL%

Then any URL tested will have it's host name redirected to 1.2.3.4 before navigating to the test page.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Benchmarks and Scripting - pganti - 06-24-2014, 04:43 AM
RE: Benchmarks and Scripting - pganti - 06-24-2014, 06:24 AM
RE: Benchmarks and Scripting - pmeenan - 06-24-2014 06:32 AM
RE: Benchmarks and Scripting - eddy - 06-28-2014, 12:42 AM
RE: Benchmarks and Scripting - pmeenan - 07-01-2014, 04:06 AM

Forum Jump:


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