Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by divya_agsrdk 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?


divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

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

Post by adityac on Mon Feb 11, 2013 2:55 pm

Hav u strtd server n selenium in ur code?

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

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

Post by divya_agsrdk 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

Back to top Go down

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

Post by divya_agsrdk on Wed Feb 13, 2013 2:15 pm

any solution for this.. server getting stop by itself.

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

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

Post by adityac on Wed Feb 13, 2013 4:20 pm

hav u used any try catch block in ur code?

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

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

Post by divya_agsrdk 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");
}
}

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

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

Post by adityac 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

Back to top Go down

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

Post by adityac on Wed Feb 13, 2013 7:07 pm

are u using junit???

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

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

Post by divya_agsrdk 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

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

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

Post by adityac 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?

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

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

Post by divya_agsrdk on Thu Feb 14, 2013 4:54 pm

junit also...

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

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

Post by adityac on Thu Feb 14, 2013 4:56 pm

then no annotations in ur code??

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

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

Post by divya_agsrdk 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?

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

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

Post by adityac 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

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

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

Post by divya_agsrdk 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.

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

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

Post by adityac on Mon Feb 18, 2013 12:14 pm

need annotations for testng...

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

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

Post by adityac 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

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

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

Post by divya_agsrdk on Wed Feb 27, 2013 3:55 pm

thk u.. i ll try.. Testng is just a plugin to eclipse

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

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

Post by Sponsored content Today at 7:14 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