Selenium test case returns Process finished with exit code 0 Selenium test case returns Process finished with exit code 0 selenium selenium

Selenium test case returns Process finished with exit code 0


Did you use "phpunit yourTestCase.php" and not "php yourTestCase.php"?

I ran your testfile with phpunit (3.5.14) and "selenium-server-standalone-2.0rc2.jar", no Problems (except that the test itself fails):

PHPUnit 3.5.14 by Sebastian Bergmann.ETime: 10 seconds, Memory: 3.50MbThere was 1 error:1) WebTest::testTitle BadMethodCallException: Method assertTitleEquals not defined.C:\Users\x\Desktop\sel\php\______phptest.php:16 C:\Users\x\Desktop\sel\php\______phptest.php:16FAILURES! Tests: 1, Assertions: 0, Errors: 1.

.

C:\SELENIUM>java -jar C:\SELENIUM\selenium-server-standalone-2.0rc2.jar10:27:29.802 INFO - Java: Sun Microsystems Inc. 20.1-b0210:27:29.803 INFO - OS: Windows 7 6.1 x8610:27:29.805 INFO - v2.0 [rc2], with Core v2.0 [rc2]10:27:29.904 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub10:27:29.905 INFO - Version Jetty/5.1.x10:27:29.906 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]10:27:29.906 INFO - Started HttpContext[/selenium-server,/selenium-server]10:27:29.907 INFO - Started HttpContext[/,/]10:27:29.935 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@186d4c110:27:29.935 INFO - Started HttpContext[/wd,/wd]10:27:29.938 INFO - Started SocketListener on 0.0.0.0:444410:27:29.938 INFO - Started org.openqa.jetty.jetty.Server@ec16a410:28:21.756 INFO - Checking Resource aliases10:28:21.757 INFO - Command request: getNewBrowserSession[*firefox, http://www.google.com/] on session null10:28:21.759 INFO - creating new remote session10:28:21.773 INFO - Allocated session 80e73d7f9ea94244a3c0a40ebdcb9110 for http://www.google.com/, launching...10:28:21.820 INFO - Preparing Firefox profile...10:28:25.358 INFO - Launching Firefox...10:28:29.413 INFO - Got result: OK,80e73d7f9ea94244a3c0a40ebdcb9110 on session 80e73d7f9ea94244a3c0a40ebdcb911010:28:29.420 INFO - Command request: setTimeout[30000, ] on session 80e73d7f9ea94244a3c0a40ebdcb911010:28:29.451 INFO - Got result: OK on session 80e73d7f9ea94244a3c0a40ebdcb911010:28:29.456 INFO - Command request: open[http://www.google.com/, ] on session 80e73d7f9ea94244a3c0a40ebdcb911010:28:31.015 INFO - Got result: OK on session 80e73d7f9ea94244a3c0a40ebdcb911010:28:31.020 INFO - Command request: testComplete[, ] on session 80e73d7f9ea94244a3c0a40ebdcb911010:28:31.020 INFO - Killing Firefox...10:28:31.344 INFO - Got result: OK on session 80e73d7f9ea94244a3c0a40ebdcb9110


I am using jUnit and basically in my case the exit code 0 means when all tests are finished successfully.

In your case I would expect the behavior described by Loxik