Fwd: [selenium-users] Please Help me out this is first time i am using

8 views
Skip to first unread message

Hemanth Palusa

unread,
Dec 10, 2010, 8:12:57 AM12/10/10
to seleniu...@googlegroups.com


---------- Forwarded message ----------
From: Hemanth Palusa <hpa...@gmail.com>
Date: Fri, Dec 10, 2010 at 5:11 AM
Subject: Re: [selenium-users] Re: Send mail(gmail) to friend using selenium RC and identify the new window id..
To: seleniu...@googlegroups.com


HI Friends ,
 
This is Hemanth . I am using first time selenium tool so Please help me out
 
I am using IDE Eclipse  to run test cases.
 
Here is the Error I am getting:
 
 
  1. java.net.SocketException
: Unexpected end of file from server
  • at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
  • at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
  • at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
  • at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
  • at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
  • at java.net.HttpURLConnection.getResponseCode(Unknown Source)
  • at com.thoughtworks.selenium.HttpCommandProcessor.getResponseCode(HttpCommandProcessor.java:144)
  • at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:164)
  • at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:104)
  • at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:86)
  • at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
  • at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
  • at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
  • at com.example.tests.Google.setUp(Google.java:15)
  • at junit.framework.TestCase.runBare(TestCase.java:132)
  • at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
  • 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:49)
  • 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)
I am using Small program
 
 

package

com.example.tests;

import

org.junit.After;

import

org.junit.Before;

import

org.junit.Test;

import

com.thoughtworks.selenium.DefaultSelenium;

import

com.thoughtworks.selenium.SeleneseTestCase;

public

class Google extends SeleneseTestCase {

@Before

public void setUp() throws Exception {

selenium = new DefaultSelenium("localhost",8084,"*firefox","http://www.google.co.in/");

selenium.start();

}

@Test

public void testUntitled() throws Exception {

selenium.open("/");

verifyTrue(

selenium.isTextPresent("Java"));

}

@After

public void tearDown() throws Exception {

selenium.stop();

}

public static void main(String args[])throws Exception {

org.junit.runner.JUnitCore.main(

"com.example.tests.Google");

}

}

 

 

So Please Help Me out....

Thanks and regards,

Hemanth




--
Hemanth Palusa
Call Me : 9581260206


NagaRaju dasam

unread,
Dec 11, 2010, 8:03:27 AM12/11/10
to seleniu...@googlegroups.com
Hai Hemanth,

Please go through my blog 




Hope these posts will help you...

Thanks,
Naga

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.



--
Thanks,
Naga


Reply all
Reply to author
Forward
0 new messages