MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - WPT location reorganization

WebPagetest Forums

Full Version: WPT location reorganization
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My tool pulls locations dynamically using getLocations.php and uses the location ID when submitting tests as the location. My team noticed that the list has changed in the last day or two. I was wondering how to fix my logic to accommodate this.

So what used to be
dulles: IE8
dulles: IE9
dulles: chrome
dulles: Firefox

is now broken up into


Where dulles has "chrome, canary, firefox, etc" listed as browsers (that's why Dulles:Firefox is not on the list anymore)

Before, I would just take location and send in my runTest call:
&location=(location ID)

Is the way to fix this to get the ID, parse the browser list, and send location as:
(locationID) : (parsed browser name) ?
Yep. I just noticed this as well. I'm working on fixing up my script now. Thinking I'll probably do something similar to what you mentioned.
I couldn't find any docs that said the proper syntax (location.browser, location:browser, etc).. if you figure it out, can you post? I'm going to try to find time later in the week to try to code the fix
i think the locations parameter is still the same. I just tested with: /runtest.php? and it worked fine. So the location parameter accepts location:browser.connectivity per

So I'm going to update my code for that.
Hey Mark, thanks... so I'll one up this piece of info...

So in my older instances I would look up

but comparing XML I notice it's now
location/Browsers (note the extra "s")

In my code I now test for location/Browsers, if I don't see it, I test for location/Browser so my code is backward compatible (my tool is designed to work across WPT installations/instances)

Then I just list each.. i.e.

location = get nodes for (//location)
for each  location
  curlocation = /location
  browserlist = try to get /Browsers or /Browser
  browserarray = browserlist.split(",")
   for each browser in browserarray
     list curlocation:browser
Reference URL's