Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Selenium RC problem - forwarding error(?)

View previous topic View next topic Go down

Selenium RC problem - forwarding error(?)

Post by roman.hybasek on Tue Jan 10, 2012 8:56 pm

Hi,

heres my code and error that gives me everytime i try it to run.

It's some basic selenium test in java.

// I can't use links, but that code, what I have is @pastebin.com slash TiuDvQvK

I'm using selenium-standalone-server-2.16.1.

And i just don't know what to do with that error. When i do the same things on another compuer (runs server and try to run this test), it works. But not on my PC..
I was trying to google that, but with no effect..


Any sugestions, please?

roman.hybasek

Posts : 5
Join date : 2012-01-10

Back to top Go down

Re: Selenium RC problem - forwarding error(?)

Post by faramka on Wed Jan 11, 2012 4:03 pm

Change this line
Code:
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.google.cz/");
for
Code:
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.cz/");

faramka
Professional
Professional

Posts : 143
Join date : 2011-09-15
Location : Poland

Back to top Go down

Re: Selenium RC problem - forwarding error(?)

Post by roman.hybasek on Wed Jan 11, 2012 4:47 pm

That only change error for this:
Code:
1) testPrvni(nanuk1.prvni)java.lang.RuntimeException: Could not start Selenium session: org%2Eopenqa%2Egrid%2Ecommon%2Eexception%2EGridException%3A+Error+forwarding+the+new+session+Empty+pool+of+VM+for+setup+%7BbrowserName%3D%2Afirefox%7D
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:107)
    at nanuk1.prvni.setUp(prvni.java:13)
    at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:230)
    at nanuk1.suite.main(suite.java:17)
Caused by: com.thoughtworks.selenium.SeleniumException: org%2Eopenqa%2Egrid%2Ecommon%2Eexception%2EGridException%3A+Error+forwarding+the+new+session+Empty+pool+of+VM+for+setup+%7BbrowserName%3D%2Afirefox%7D

I have installed both browser - chrome & firefox..

Probably it won't be in that.. Any other suggestions, please? Sad

roman.hybasek

Posts : 5
Join date : 2012-01-10

Back to top Go down

Re: Selenium RC problem - forwarding error(?)

Post by faramka on Wed Jan 11, 2012 4:59 pm

What operating system are you using?
See what happens when you remove this line:
Code:
selenium.start();

faramka
Professional
Professional

Posts : 143
Join date : 2011-09-15
Location : Poland

Back to top Go down

Re: Selenium RC problem - forwarding error(?)

Post by roman.hybasek on Wed Jan 11, 2012 6:43 pm

I'm using W7.

And now I same problem, trying to connect jenkins server running on my computer.

With this:
Code:
Selenium selenium = new DefaultSelenium("localhost", 4444, "*firefox", " h t t p : / /jenkins-ci.org/");
selenium.start();

Comes this error:

Code:
1) testPrvni(nanuk1.prvni)java.lang.RuntimeException: Could not start Selenium session: org%2Eopenqa%2Egrid%2Ecommon%2Eexception%2EGridException%3A+Error+forwarding+the+new+session+Empty+pool+of+VM+for+setup+%7BbrowserName%3D%2Afirefox%7D
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:107)
    at nanuk1.prvni.setUp(prvni.java:12)
    at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:230)
    at nanuk1.suite.main(suite.java:17)
Caused by: com.thoughtworks.selenium.SeleniumException: org%2Eopenqa%2Egrid%2Ecommon%2Eexception%2EGridException%3A+Error+forwarding+the+new+session+Empty+pool+of+VM+for+setup+%7BbrowserName%3D%2Afirefox%7D
    at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:112)
    at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:183)
    at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:118)
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:101)
    at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:275)
    at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:237)
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:98)
    ... 15 more

And without selenium.start();

Code:
1) testPrvni(nanuk1.prvni)java.lang.NullPointerException
    at nanuk1.prvni.testPrvni(prvni.java:17)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:230)
    at nanuk1.suite.main(suite.java:17)

roman.hybasek

Posts : 5
Join date : 2012-01-10

Back to top Go down

Re: Selenium RC problem - forwarding error(?)

Post by faramka on Wed Jan 11, 2012 7:56 pm

Roman, please let us know more details.
When i do the same things on another compuer (runs server and try to run this test), it works.
You have Windows7 and selenium-standalone-server-2.16.1 on your PC, and what about the other computers in which you were tested? Are there also Win7 and the same version of Selenium?

Maybe you will try with lower version of Selenium Standalone Server (I am using 2.13.0)?

And one more question: how do you run the Selenium server? Have you were trying run it by command in console?
Code:
java -jar selenium-server-standalone-2.16.1.jar

faramka
Professional
Professional

Posts : 143
Join date : 2011-09-15
Location : Poland

Back to top Go down

Re: Selenium RC problem - forwarding error(?)

Post by roman.hybasek on Wed Jan 11, 2012 8:49 pm

faramka wrote:Roman, please let us know more details.
When i do the same things on another compuer (runs server and try to run this test), it works.
You have Windows7 and selenium-standalone-server-2.16.1 on your PC, and what about the other computers in which you were tested? Are there also Win7 and the same version of Selenium?

Maybe you will try with lower version of Selenium Standalone Server (I am using 2.13.0)?

And one more question: how do you run the Selenium server? Have you were trying run it by command in console?
Code:
java -jar selenium-server-standalone-2.16.1.jar


No, on the other computer, where I tried that, there are is same version of selenium, but not of win. I have there a win xp.

I was starting the server just like you wrote, but with "-role hub" paramter.

Now I have runing Selenium Grid in Jenkins. But it's same like this. I think.

Code:


Registered Remote Controls

Selenium Grid is running at localhost:4444.
            Selenium 1 clients should connect as follows:
Selenium selenium = new DefaultSelenium("localhost", 4444, "*firefox", "htt p : / /jenkins-ci. org/");

With same effect.

roman.hybasek

Posts : 5
Join date : 2012-01-10

Back to top Go down

Re: Selenium RC problem - forwarding error(?)

Post by faramka on Wed Jan 11, 2012 8:58 pm

So this is probably the fault of the operating system... I read that Window7 causes some problems in interacting with Selenium.
Have you any possibility for changing system? It would the simplest way to solve this problem...

faramka
Professional
Professional

Posts : 143
Join date : 2011-09-15
Location : Poland

Back to top Go down

Re: Selenium RC problem - forwarding error(?)

Post by roman.hybasek on Thu Jan 12, 2012 9:10 pm

Not right now, unfortunately. But I have now runing jenkins instance on my computer and adding tests to it SeleniumHQ htmlSuite run addon. That's close enough for me.

(it's working nice, only problem that I have is that firefox on my computer isn't working fine. It can't open. Usually I have to run test more times, to get my results. But that problem is for another forum, I guess...)

So thank you for help and your time. Smile

roman.hybasek

Posts : 5
Join date : 2012-01-10

Back to top Go down

Re: Selenium RC problem - forwarding error(?)

Post by Sponsored content Today at 3:12 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum