tags:

views:

18

answers:

1

it works fine in my machine if i try it in some other machine it opens below link and stops??.any one faced the problem?

http://localhost:3124/selenium-server/core/Blank.html?stcode is like

selenium = new DefaultSelenium("localhost", 3124, "*firefox", "https://");

A: 

java.lang.RuntimeException: Could not contact Selenium Server; have you started it on 'localhost:4444' ? Read more at http://seleniumhq.org/projects/remote-control/not-started.html Connection refused: connect at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:97) at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:119) at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:100) at com.thoughtworks.selenium.SeleneseTestCase.setUp(SeleneseTestCase.java:78) at com.zoho.contacts.contact.CreateContact.setUp(CreateContact.java:21) at junit.framework.TestCase.runBare(TestCase.java:125) 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:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at com.zoho.qa.server.servlet.SeleniumServlet.doPost(SeleniumServlet.java:103) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:394) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619)

EditContact Error Show Trace

sasikumar
I'm not really sure what you're doing here. The snippet in your question suggests you've successfully connected to your Selenium Server on port 3124, but the stack trace says you tried to connect to port 4444. Are they from the same session?
nirvdrum
i have stated server from code anf trying new DefaultSlenium (port).but message is different saying the above
sasikumar