- roman.hybasek
- Posts : 5
Join date : 2012-01-10
Selenium RC problem - forwarding error(?)
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?
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?
- faramkaProfessional
- Posts : 143
Join date : 2011-09-15
Location : Poland
Re: Selenium RC problem - forwarding error(?)
Wed Jan 11, 2012 4:03 pm
Change this line
- Code:
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.google.cz/");
- Code:
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.cz/");
- roman.hybasek
- Posts : 5
Join date : 2012-01-10
Re: Selenium RC problem - forwarding error(?)
Wed Jan 11, 2012 4:47 pm
That only change error for this:
I have installed both browser - chrome & firefox..
Probably it won't be in that.. Any other suggestions, please?
- 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?
- faramkaProfessional
- Posts : 143
Join date : 2011-09-15
Location : Poland
Re: Selenium RC problem - forwarding error(?)
Wed Jan 11, 2012 4:59 pm
What operating system are you using?
See what happens when you remove this line:
See what happens when you remove this line:
- Code:
selenium.start();
- roman.hybasek
- Posts : 5
Join date : 2012-01-10
Re: Selenium RC problem - forwarding error(?)
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:
Comes this error:
And without selenium.start();
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)
- faramkaProfessional
- Posts : 143
Join date : 2011-09-15
Location : Poland
Re: Selenium RC problem - forwarding error(?)
Wed Jan 11, 2012 7:56 pm
Roman, please let us know more details.
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?
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?When i do the same things on another compuer (runs server and try to run this test), it works.
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
- roman.hybasek
- Posts : 5
Join date : 2012-01-10
Re: Selenium RC problem - forwarding error(?)
Wed Jan 11, 2012 8:49 pm
faramka wrote:Roman, please let us know more details.
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?When i do the same things on another compuer (runs server and try to run this test), it works.
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.
- faramkaProfessional
- Posts : 143
Join date : 2011-09-15
Location : Poland
Re: Selenium RC problem - forwarding error(?)
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...
Have you any possibility for changing system? It would the simplest way to solve this problem...
- roman.hybasek
- Posts : 5
Join date : 2012-01-10
Re: Selenium RC problem - forwarding error(?)
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.
(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.
- Getting the error msg 'Error: Could not find or load main class java-jar' while executing the selenium code in eclipse
- Selenium RC with NUnit throwing error - File does not exist. File 'c:\Projects\WebDriver\trunk\src\Selenium.Core\HttpCommandProcessor.cs'
- [Help] Problem of running selenium Testcase[Java Junit] with Selenium RC
- Problem of running SmartGWT Selenium Testcase with selenium RC
- he error message is: 没有权限 on session
Permissions in this forum:
You cannot reply to topics in this forum