Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347105 - Always facing run time errors when executing the selenium IDE generated code in Eclipse IDE
Summary: Always facing run time errors when executing the selenium IDE generated code ...
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 347104 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-25 01:32 EDT by cybageswn CLA
Modified: 2011-05-25 12:09 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cybageswn CLA 2011-05-25 01:32:17 EDT
Build Identifier: 20110218-0911

com.thoughtworks.selenium.SeleniumException: Timed out after 10000ms
	at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:90)
	at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:84)
	at com.thoughtworks.selenium.DefaultSelenium.waitForPageToLoad(DefaultSelenium.java:619)
	at com.example.tests.Login.testLogin(Login.java:25)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	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 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)



Reproducible: Always

Steps to Reproduce:
1.Create a simple project by recording through selenium IDE.
2. Export it to Groovy(JUNIT)script and copy it to Eclipse ide.
3. Include all the jar files and packages.
4. Execute the test.

Code used for test is:

package com.example.tests;

import com.thoughtworks.selenium.*;

public class Login extends SeleneseTestCase {

	Selenium selenium;
    public void setUp() throws Exception {
    	selenium = new DefaultSelenium("localhost",4444,"*iexplore","http://www.google.co.in/");
    	selenium.start();
    	selenium.windowMaximize();
    }

    /*private void setwaitForPageToLoad(int i) {
		// TODO Auto-generated method stub
		i = 90000;
		}*/


	
	public void testLogin() throws Exception {
        selenium.open("/");
        selenium.type("q", "selenium testing");
        selenium.click("btnG");
        selenium.waitForPageToLoad("10000");
        selenium.click("link=Selenium web application testing system");
        selenium.waitForPageToLoad("50000");
        assertEquals(selenium.getTitle(), "Selenium web application testing system");
    }
}
Comment 1 Remy Suen CLA 2011-05-25 06:30:43 EDT
*** Bug 347104 has been marked as a duplicate of this bug. ***
Comment 2 Markus Keller CLA 2011-05-25 07:00:57 EDT
> com.thoughtworks.selenium.SeleniumException: Timed out after 10000ms

This is a problem of Selenium, not Eclipse.