Share
View previous topicGo downView next topic
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Mon Feb 11, 2013 2:19 pm
java.lang.RuntimeException: Could not start Selenium session: null
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:109)
at gcd.setUp(gcd.java:11)
at junit.framework.TestCase.runBare(TestCase.java:132)
at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:248)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: com.thoughtworks.selenium.SeleniumException
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:100)
... 16 more


Used jdk -1.6
selenium-server-standalone-2.25.0.jar
eclipse java indigosr2win32. wen i run progrm getting error in eclipse..

any solution?

adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Mon Feb 11, 2013 2:55 pm
Hav u strtd server n selenium in ur code?
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Mon Feb 11, 2013 3:15 pm
ya.. and also that server getting stop by itself and getting next prompt..
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Wed Feb 13, 2013 2:15 pm
any solution for this.. server getting stop by itself.
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Wed Feb 13, 2013 4:20 pm
hav u used any try catch block in ur code?
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Wed Feb 13, 2013 5:42 pm
My pgm is dis,,,

import com.thoughtworks.selenium.*;
@SuppressWarnings("deprecation")
public class login extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://php.thedemosite.co.uk/","*firefox");
}
public void testloginlogout(){
selenium.setSpeed("2000");
selenium.open("/login.php");
selenium.windowMaximize();
selenium.type("//input[@name='username']", "mytest");
selenium.type("//input[@name='password']", "mytest");
selenium.click("//input[@type='button']");
selenium.waitForPageToLoad("50000");
}
}
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Wed Feb 13, 2013 7:06 pm
what u r extending from "SeleneseTestCase" class??
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Wed Feb 13, 2013 7:07 pm
are u using junit???
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Thu Feb 14, 2013 4:45 pm
i dono y extending that selensetestcase... did u cme to knw? let me knw y written extends that class..
that pgm is executing with and without junit
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Thu Feb 14, 2013 4:50 pm

code wat u wrote is nt just java... even junit is there in that... so confirm me first tht ru using only java??? or anythng integrated wth tht?
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Thu Feb 14, 2013 4:54 pm
junit also...
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Thu Feb 14, 2013 4:56 pm
then no annotations in ur code??
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Thu Feb 14, 2013 5:04 pm
there is annotation in some other pgm..

Tel me one thing, if v use junit, need to hv annotation?
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Thu Feb 14, 2013 5:19 pm
i dnt hav much idea on junit am dng on testng...bt as far as my knowledge we need annotations...am nt sure
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Sat Feb 16, 2013 1:51 pm
how to proceed with testng?

is it a plugin to eclipse.. how to add it ?

for testng not needed annotations.
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Mon Feb 18, 2013 12:14 pm
need annotations for testng...
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Tue Feb 26, 2013 12:55 pm
Procedure for testng:

1.open testng.org
2.Goto download
3.copy url:beust.com/eclipse
4.open eclipse
5.select help & click on install on new software
6.Click on add
7.Enter name and location as copied URL
8.Click on ok
9.Select testng from work with drop down
10.Select testng checkbox
11.Click on next and accept the license and next
12.Restart Eclipse
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

on Wed Feb 27, 2013 3:55 pm
thk u.. i ll try.. Testng is just a plugin to eclipse
Sponsored content

Re: error in eclipse java.lang.RuntimeException: Could not start Selenium session: null

View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum