I can see that the Selenium server is starting fine but all selenium
tests are failing with the same exception. Below is the exception
that I get in my logs. Any ideas?
java.lang.RuntimeException: Could not start Selenium session:
at com.thoughtworks.selenium.DefaultSelenium.start
(DefaultSelenium.java:89)
at com.mrm.test.web.SeleneseTestSupport.setUp
(SeleneseTestSupport.java:36)
at junit.framework.TestCase.runBare(TestCase.java:128)
at com.thoughtworks.selenium.SeleneseTestCase.runBare
(SeleneseTestCase.java:212)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.maven.surefire.junit.JUnitTestSet.execute
(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet
(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess
(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main
(SurefireBooter.java:1009)
Caused by: com.thoughtworks.selenium.SeleniumException:
at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError
(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand
(HttpCommandProcessor.java:91)
at com.thoughtworks.selenium.HttpCommandProcessor.getString
(HttpCommandProcessor.java:262)
at com.thoughtworks.selenium.HttpCommandProcessor.start
(HttpCommandProcessor.java:223)
at com.thoughtworks.selenium.DefaultSelenium.start
(DefaultSelenium.java:81)
... 25 more
I debugged my unit tests and the request to create the session returns
with a code of 200 but the response is empty.
> > com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError
> > (HttpCommandProcessor.java:97)
> > at com.thoughtworks.selenium.HttpCommandProcessor.doCommand
> > (HttpCommandProcessor.java:91)
> > at com.thoughtworks.selenium.HttpCommandProcessor.getString
> > (HttpCommandProcessor.java:262)
> > at com.thoughtworks.selenium.HttpCommandProcessor.start
> > (HttpCommandProcessor.java:223)
> > at com.thoughtworks.selenium.DefaultSelenium.start
> > (DefaultSelenium.java:81)
> > ... 25 more- Hide quoted text -
>
> - Show quoted text -
Sascha
> > com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError
> > (HttpCommandProcessor.java:97)
> > at com.thoughtworks.selenium.HttpCommandProcessor.doCommand
> > (HttpCommandProcessor.java:91)
> > at com.thoughtworks.selenium.HttpCommandProcessor.getString
> > (HttpCommandProcessor.java:262)
> > at com.thoughtworks.selenium.HttpCommandProcessor.start
> > (HttpCommandProcessor.java:223)
> > at com.thoughtworks.selenium.DefaultSelenium.start
> > (DefaultSelenium.java:81)
> > - Show quoted text -- Hide quoted text -
C:\xampp\php\PEAR\Testing\Selenium.php:2621
C:\xampp\php\PEAR\Testing\Selenium.php:1712
I also tryed to run the server as an administrator and I also changed
the port. I just can't understand why it isn't running :( Thanks in
advice!
On 25 Jan., 16:29, bmolof <bmo...@gmail.com> wrote:
> Thanks. I already tried that and it didn't work. Maybe I missed
> something. I'll try again later today.
>
> On Jan 25, 9:39 am, darrell <darrell.grain...@gmail.com> wrote:
>
> > This is good to know. Thank you. I don't haveWindows7installed yet
> > but I would guess, if you go to the Control Panel you'll find a
> >WindowsFirewall application. Run that and there should be an
> > Exceptions tab. On that area you can add the port 4444. Additionally,
> > there should be an option in the firewall settings to display a
> > notification when the firewall blocks a program. I'd turn this on.
> > That way if it blocks something you'll know about it and can add an
> > exception from the warning dialog.
>
> > On Jan 24, 11:35 pm, bmolof <bmo...@gmail.com> wrote:
>
> > > Just out of curiosity, I changed the port to 1234 and it worked. It
> > > looks like windows7 has some security that is blocking non well known
> > > ports. I tried to open port 4444 inwindowsbut that didn't seem to
> > > work. I will just use port 1234 for now. Thanks.
>
> > > On Jan 24, 11:00 pm, bmolof <bmo...@gmail.com> wrote:
>
> > > > I ran it with logging and I don't see any errors. THe only logging I
> > > > saw was when the server started. When I ran my tests, no logging was
> > > > done. The server and client are using default port 4444 so I don't
> > > > think it's a connection problem.
>
> > > > On Jan 24, 4:48 pm, Sascha <saschaschwa...@yahoo.de> wrote:
>
> > > > > You may start selenium server with -log selenium.log parameter and
> > > > > have a look at the generated log file. Maybe that helps for problem
> > > > > determination.
>
> > > > > Sascha
>
> > > > > On 23 Jan., 15:16, bmolof <bmo...@gmail.com> wrote:
>
> > > > > > I had my selenium tests running perfectly inwindowsxp, but they
> > > > > > stopped working when I moved everything over to my new box running
> > > > > >Windows7. My environment is Maven2, JBoss, Selenium 1.0.1. I am
On 4 Feb., 10:29, Vilius <rugai...@web.de> wrote:
> Hello guys!
> I have a problem with selenium andwindows7(32 bit). When I try to
On Feb 10, 4:28 am, Vilius <rugai...@web.de> wrote:
> Isn't anybody able to help me?? :(
>