Selenium Not Run Browser

initial error


F:\wamp\www\trackstar\protected\tests>phpunit functional/SiteTest.php

PHPUnit 3.6.10 by Sebastian Bergmann.


Configuration read from F:\wamp\www\trackstar\protected\tests\phpunit.xml


EEE


Time: 1 second, Memory: 6.25Mb


There were 3 errors:


1) SiteTest::testIndex

Current URL: OR Server Exception: sessionId led to start new browser session: Br

owser not supported:

(Did you forget to add a *?)


Supported browsers include:

  *firefox

  *mock

  *firefoxproxy

  *pifirefox

  *chrome

  *iexploreproxy

  *iexplore

  *firefox3

  *safariproxy

  *googlechrome

  *konqueror

  *firefox2

  *safari

  *piiexplore

  *firefoxchrome

  *opera

  *webdriver

  *iehta

  *custom

 doesn't exist; perhaps this session was already stopped?


Result is neither "true" nor "false": 'OR Server Exception: sessionId led to sta

rt new browser session: Browser not supported:

(Did you forget to add a *?)


Supported browsers include:

  *firefox

  *mock

  *firefoxproxy

  *pifirefox

  *chrome

  *iexploreproxy

  *iexplore

  *firefox3

  *safariproxy

  *googlechrome

  *konqueror

  *firefox2

  *safari

  *piiexplore

  *firefoxchrome

  *opera

  *webdriver

  *iehta

  *custom

 doesn't exist; perhaps this session was already stopped?'


F:\wamp\bin\php\php5.3.9\phpunit:46


2) SiteTest::testContact

Current URL: OR Server Exception: sessionId led to start new browser session: Br

owser not supported:

(Did you forget to add a *?)


Supported browsers include:

  *firefox

  *mock

  *firefoxproxy

  *pifirefox

  *chrome

  *iexploreproxy

  *iexplore

  *firefox3

  *safariproxy

  *googlechrome

  *konqueror

  *firefox2

  *safari

  *piiexplore

  *firefoxchrome

  *opera

  *webdriver

  *iehta

  *custom

 doesn't exist; perhaps this session was already stopped?


Result is neither "true" nor "false": 'OR Server Exception: sessionId led to sta

rt new browser session: Browser not supported:

(Did you forget to add a *?)


Supported browsers include:

  *firefox

  *mock

  *firefoxproxy

  *pifirefox

  *chrome

  *iexploreproxy

  *iexplore

  *firefox3

  *safariproxy

  *googlechrome

  *konqueror

  *firefox2

  *safari

  *piiexplore

  *firefoxchrome

  *opera

  *webdriver

  *iehta

  *custom

 doesn't exist; perhaps this session was already stopped?'


F:\wamp\bin\php\php5.3.9\phpunit:46


3) SiteTest::testLoginLogout

Current URL: OR Server Exception: sessionId led to start new browser session: Br

owser not supported:

(Did you forget to add a *?)


Supported browsers include:

  *firefox

  *mock

  *firefoxproxy

  *pifirefox

  *chrome

  *iexploreproxy

  *iexplore

  *firefox3

  *safariproxy

  *googlechrome

  *konqueror

  *firefox2

  *safari

  *piiexplore

  *firefoxchrome

  *opera

  *webdriver

  *iehta

  *custom

 doesn't exist; perhaps this session was already stopped?


Result is neither "true" nor "false": 'OR Server Exception: sessionId led to sta

rt new browser session: Browser not supported:

(Did you forget to add a *?)


Supported browsers include:

  *firefox

  *mock

  *firefoxproxy

  *pifirefox

  *chrome

  *iexploreproxy

  *iexplore

  *firefox3

  *safariproxy

  *googlechrome

  *konqueror

  *firefox2

  *safari

  *piiexplore

  *firefoxchrome

  *opera

  *webdriver

  *iehta

  *custom

 doesn't exist; perhaps this session was already stopped?'


F:\wamp\bin\php\php5.3.9\phpunit:46


FAILURES!

Tests: 3, Assertions: 0, Errors: 3.

after running selenium with not default port (not 4444), port 1234


F:\wamp\www\trackstar\protected\tests>phpunit functional/SiteTest.php

PHPUnit 3.6.10 by Sebastian Bergmann.


Configuration read from F:\wamp\www\trackstar\protected\tests\phpunit.xml


SSS


Time: 28 seconds, Memory: 6.25Mb


OK, but incomplete or skipped tests!

Tests: 3, Assertions: 0, Skipped: 3.

there is some skipped test and the browser is not run

anyone can tell me what is the error please

Have you setup correct browser names in phpunit.xml?

For example if you want to test in Firefox, you should have line like:

<selenium>

&lt;browser name=&quot;Firefox&quot; browser=&quot;*firefox&quot; /&gt;

</selenium>

I have a same problem. This is not solution, but I hope it help you.


java -jar selenium-server-standalone.jar -forcedBrowserMode "*firefox"

this is my phpunit.xml


<phpunit bootstrap="bootstrap.php"

		colors="false"

		convertErrorsToExceptions="true"

		convertNoticesToExceptions="true"

		convertWarningsToExceptions="true"

		stopOnFailure="false">


	<selenium>

<!-- 		<browser name="Internet Explorer" browser="*iexplore" /> -->

		<browser name="Firefox" browser="*firefox" />

<!-- 		<browser name="Chrome" browser="*googlechrome" /> -->

	</selenium>


</phpunit>

oh thank you Himitsu, after following your suggestion the functional test run firefox without skipped test. but i am curious what the problem was? are you have understand why?