The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.19-0ubuntu0.18.04.2 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 09-17-2019, 10:56 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wptdriver always using first browser listed
05-30-2014, 07:13 AM
Post: #1
Sad wptdriver always using first browser listed
Hi,

Sorry for the long post - i'm trying to provide all the relevant info!

I'm using the EC2 agent image (ami-8b2c2fff) with the location and url set to my WPT-Private instance server.

If I use the web interface to run a test I can choose any of IE, Firefox, Chrome or Safari and they all work.

If I try running tests using the API and a script (via etsy's WPT-Script) then it recognises the 4 browsers available at the site, and says it's running a test for each browser. IE runs (via URLBlast) but the wptdriver will always run 3 tests against the same browser.

The browser it uses is determined by the order they're listed in locations.ini.

wptdriver.ini looks like this:
[WebPagetest]
url=http://xx.xxx.x.xx/
ec2=1
location=ec2-eu-west_wptdriver
Time Limit=60
software=http://www.webpagetest.org/installers/software.dat

[Chrome]
exe="C:\Program Files\Google\Chrome\Application\chrome.exe"
options='--load-extension="%WPTDIR%\extension" --user-data-dir="%PROFILE%" --no-proxy-server'
installer=http://www.webpagetest.org/installers/browsers/chrome.dat

[Firefox]
exe="C:\Program Files\Mozilla Firefox\firefox.exe"
options='-profile "%PROFILE%" -no-remote'
installer=http://www.webpagetest.org/installers/browsers/firefox.dat
template=firefox

[Safari]
exe="C:\Program Files\Safari\safari.exe"

Locations.ini:
[locations]
1=ec2-eu-west
default=ec2-eu-west

[ec2-eu-west]
1=ec2-eu-west-IE9
2=ec2-eu-west_wptdriver
default= ec2-eu-west_wptdriver
label="ec2-eu-west, Dublin, IE9,Chrome,Firefox,Safari"

[ec2-eu-west-IE9]
browser=IE 9
label="EU West IE9"

[ec2-eu-west_wptdriver]
browser=Firefox,Chrome,Safari
label="EU West"

http://server/install shows this:
ec2-eu-west : ec2-eu-west, Dublin, IE9,Chrome,Firefox,Safari
ec2-eu-west-IE9 : EU West IE9 - 1 agents connected
ec2-eu-west_wptdriver : EU West - 1 agents connected

my wpt-script is:

"server": "http://server",
"pending_dir": "private",
"script": "myaccount_stage.wpt",
"logging_ns": "webpagetest.private",
"splunkLog": "/var/log/webpagetest/results.log",
"run_options": {
"video": 1,
"url": "http://stage.site.com/login",
"location" : "ec2-eu-west:Chrome",
"runs": 2,
"private": 0
}
(I've also tried "ec2-eu-west_wptdriver:Chrome", "ec2-eu-west_wptdriver", etc. in the location)

but it always shows:
2014-05-29T21:56:43+01:00 Started test with config: /var/lib/wpt-script/bin/../conf/stage.conf. Testing myaccount_stage.wpt across 4 locations.
2014-05-29T21:56:43+01:00 Started signedout test for scripted test / ec2-eu-west-IE9 / IE 9
2014-05-29T21:56:43+01:00 Started signedout test for scripted test / ec2-eu-west_wptdriver / Firefox
2014-05-29T21:56:43+01:00 Started signedout test for scripted test / ec2-eu-west_wptdriver / Chrome
2014-05-29T21:56:43+01:00 Started signedout test for scripted test / ec2-eu-west_wptdriver / Safari


Regardless of saying it's going to run across all 4 browsers, the test always runs against IE and the first browser listed in wptdriver in locations.ini.

http://server/getLocations.php shows:
Location Idle Testers Total Tests Being Tested High Priority P1 P2 P3 P4 P5 P6 P7 P8 P9
ec2-eu-west-IE9 0 3 1 0 0 0 0 0 2 0 0 0 0
ec2-eu-west_wptdriver:Firefox 0 11 1 0 0 0 0 0 10 0 0 0 0
ec2-eu-west_wptdriver:Chrome 0 11 1 0 0 0 0 0 10 0 0 0 0
ec2-eu-west_wptdriver:Safari 0 11 1 0 0 0 0 0 10 0 0 0 0

So, 2 problems - It's ignoring what I say in locations, and wptdriver runs the same browser, regardless of knowing it has 3.

Any help appreciated!

Thanks

Rich
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
wptdriver always using first browser listed - richiemarshall - 05-30-2014 07:13 AM

Forum Jump:


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