WebPagetest Forums
Test run Failed: Invalid Browser name - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Test run Failed: Invalid Browser name (/showthread.php?tid=13698)



Test run Failed: Invalid Browser name - Santhosh P - 04-28-2015 04:23 PM

Hi all,

Can someone help me with the following problem:

locations.ini:
[locations]
1=Test_loc
2=Public_Dulles
3=Appurify
default=Test_loc

;
; These are the top-level locations that are listed in the location dropdown
; Each one points to one or more browser configurations
;

[Test_loc]
1=IE
2=Test
label=Test Location
group=Desktop

[Public_Dulles]
1=WPT_Dulles_IE8
label="WebPagetest.org - Dulles, VA"
group=Public

;
; Tese are the browser-specific configurations that match the configurations
; defined in the top-level locations. Each one of these MUST match the location
; name configured on the test agent (urlblast.ini or wptdriver.ini)
;

[IE]
browser=IE 11
latency=0
connectivity=LAN
label="Test Location"
;browserExe=pagetest.exe
;key=TestKey123


;
; For a wptdriver configuration (chrome, firefox), the browser labels here
; MUST match the labels used in wptdriver.ini
;

[Test]
browser=Chrome
connectivity=LAN
label="Test Location"

;
; This is an exaple of a "remote" configuration where tests can be proxied to a remote
; webpagetest instance. The test will be run by the remote server but the results
; will be downloaded to the local server and deleted from the remote agent
;
; Each location that you want to use from the remote server needs to be configured
; individually on the local configuration (location names do not need to match)
;
; To use the public webpagetest.org instance you will need an API key
;

[WPT_Dulles_IE8]
browser=IE 8
label="WebPagetest.org Dulles, VA - IE8"
relayServer="http://www.webpagetest.org/"
relayKey=<your API key>
relayLocation=Dulles_IE8

;
; This is a special location for testing on Appurify mobile devices.
; Appurify offers mobile device testing as a service.
;
[Appurify]
1=Appurify_Mobile
label="Appurify Mobile Testing"
lat=35.682175
lng=139.752731
group=Mobile

[Appurify_Mobile]
type=Appurify
label="Appurify Mobile"
key=<API Key>
secret=<API Secret>

WPTdriver.ini
[WebPagetest]
url=http://127.0.0.1/
location=Test
browser=Chrome
;key=TestKey123
;Automatically install and update support software (Flash, Silverlight, etc)
software=http://127.0.0.1/installers/software.dat

Some how my test is not runningSad it shows the error mentioned in the subject of this thread)


RE: Test run Failed: Invalid Browser name - andydavies - 04-28-2015 07:20 PM

I'd start by removing all the stuff in locations.ini that's not relevant but…

The main issue is there's no browser specified in your wptdriver.ini

Code:
[WebPagetest]
url=http://127.0.0.1
location=Local-WPTDriver
browser=chrome
Time Limit=120
;Automatically install and update support software (Flash, Silverlight, etc)
software=http://your-webpagetest-server/installers/software.dat

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

The path to Chrome changes depending on whether it's a 32 or 64 bit OS, also you might want to add in sections for FF and IE eventually


RE: Test run Failed: Invalid Browser name - Santhosh P - 04-29-2015 07:10 PM

Thanks Andy.

If I include my Chrome locations in wptdriver.ini, every time it tries to download the chrome(ending up saying software installation failed)

Note: I am not running VM. So I thought of removing the Chrome path in wptdriver.ini(I have chrome installed in my machine)

Is my assumption wrong. Please advice.


RE: Test run Failed: Invalid Browser name - andydavies - 05-01-2015 07:40 AM

Try commenting out the installer line for Chrome