Hello everyone,
are not very expert in PHP Unit. I have a server Linux Ubuntu 11.10, I installed over PHPUnit and Selenium
I downloaded
selenium-server-standalone-2.17.0.jar
from the launch site and using
java-jar selenium-server-standalone-2.17.0.jar
this is the output
18-gen-2012 0.24.23 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
00:24:23.628 INFO - Java: Sun Microsystems Inc. 20.5-b03
00:24:23.634 INFO - OS: Linux 3.0.0-12-server amd64
00:24:23.674 INFO - v2.17.0, with Core v2.17.0. Built from revision 15540
00:24:24.138 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
00:24:24.143 INFO - Version Jetty/5.1.x
00:24:24.146 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
00:24:24.149 INFO - Started HttpContext[/selenium-server,/selenium-server]
00:24:24.150 INFO - Started HttpContext[/,/]
00:24:24.208 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@5a9e29fb
00:24:24.209 INFO - Started HttpContext[/wd,/wd]
00:24:24.235 INFO - Started SocketListener on 0.0.0.0:4444
00:24:24.236 INFO - Started org.openqa.jetty.jetty.Server@1999f91c
Then i write this for test
phpunit functional/SiteTest.php
and retrieve this
PHPUnit 3.6.7 by Sebastian Bergmann.
Configuration read from /var/www/agile/demo/protected/tests/phpunit.xml
EEE
Time: 0 seconds, Memory: 9,75Mb
There were 3 errors:
1) SiteTest::testIndex
PHPUnit_Framework_Exception: Current URL: OR Server Exception: sessionId led to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path! doesn't exist; perhaps this session was already stopped?
Result is neither "true" nor "false": 'OR Server Exception: sessionId led to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path! doesn't exist; perhaps this session was already stopped?'
2) SiteTest::testContact
PHPUnit_Framework_Exception: Current URL: OR Server Exception: sessionId led to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path! doesn't exist; perhaps this session was already stopped?
Result is neither "true" nor "false": 'OR Server Exception: sessionId led to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path! doesn't exist; perhaps this session was already stopped?'
3) SiteTest::testLoginLogout
PHPUnit_Framework_Exception: Current URL: OR Server Exception: sessionId led to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path! doesn't exist; perhaps this session was already stopped?
Result is neither "true" nor "false": 'OR Server Exception: sessionId led to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path! doesn't exist; perhaps this session was already stopped?'
FAILURES!
Tests: 3, Assertions: 0, Errors: 3.
The Final log Seleniu, after launch php unit is:
at org.openqa.selenium.server.FrameGroupCommandQueueSet.getQueueSet(FrameGroupCommandQueueSet.java:225)
at org.openqa.selenium.server.commands.SeleniumCoreCommand.execute(SeleniumCoreCommand.java:37)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:611)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:405)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:149)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482)
at org.openqa.jetty.http.HttpServer.service(HttpServer.java:909)
at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
00:27:12.825 INFO - Got result: ERROR Server Exception: sessionId led to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path! doesn't exist; perhaps this session was already stopped? on session led to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path!
00:27:12.832 INFO - Command request: testComplete[, ] on session led to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path!
00:27:12.833 INFO - Got result: OK on session led to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path!
I have to install firefox on the server? I tried to install it but it still gave me an error
I installed everything on the server, and there I access via ssh, sftp and browsers.
Any help is welcome