Search
Display results as :
Advanced Search
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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?

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

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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?
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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..
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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.
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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?
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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");
}
}
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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??
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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???
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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?
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

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

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

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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??
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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?
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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.
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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...
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

error in eclipse java.lang.RuntimeException: Could not start Selenium session: null  Empty 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

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

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