Hi everybody. We use framework qooxdoo for our project and we decided use the selenium for testing.
PROBLEM DESCRIPTION: TEST: easy test of login. There are two text fields (login name and password) and login button. Each item has id (set by qooxdoo function setHtmlProberty("id", "idValue")). There is no proble in Mozilla Firefox. Class is: public class Login extends TestCase { private static final String LOGIN_NAME = "//[EMAIL PROTECTED]'login']/input"; private static final String PASSWORD = "//[EMAIL PROTECTED]'password']/input"; private static final String LOGIN_BUTTON = "loginButton"; private Selenium mozillaFirefox; public void setUp() { mozillaFirefox = new DefaultSelenium("localhost", 4444, "*firefox",http://localhost/NASWebUI/qooxdoo/index.html); mozillaFirefox.start(); } public void testLogin() { mozillaFirefox.open(http://localhost/NASWebUI/qooxdoo/index.html); mozillaFirefox.qxClick(LOGIN_NAME); mozillaFirefox.type(LOGIN_NAME, "default user"); mozillaFirefox.qxClick(PASSWORD); mozillaFirefox.type(PASSWORD, "password"); mozillaFirefox.qxClick(LOGIN_BUTTON); } public void tearDown() { mozillaFirefox.stop(); } } But if I change browser to Internet Explorer 6 there is a problem with ids. So I must chage private declarations of ids. After this change I have this class: public class Login extends TestCase { private static final String LOGIN_NAME = "login" private static final String PASSWORD = "password"; private static final String LOGIN_BUTTON = "loginButton"; private Selenium ie; public void setUp() { ie= new DefaultSelenium("localhost", 4444, "*iexplore", http://localhost/NASWebUI/qooxdoo/index.html); ie.start(); } public void testLogin() { ie.open(http://localhost/NASWebUI/qooxdoo/index.html); ie.qxClick(LOGIN_NAME); ie.type(LOGIN_NAME, "default user"); ie.qxClick(PASSWORD); ie.type(PASSWORD, "password"); ie.qxClick(LOGIN_BUTTON); } public void tearDown() { ie.stop(); } } I run a test. New ie window appears, index.html is loaded but there is a problem in function type("locator", "value"). LOG IS: Command request: type[login, default user] on session 545124 Got result: ERROR: Selenium failure. Please report to the Selenium Users forum at http://forums.openqa.org, with error details from the log window. The error message is: Invalid argument. on session 545124 FAILURE TRACE FROM ECLIPSE: com.thoughtworks.selenium.SeleniumException: ERROR: Selenium failure. Please report to the Selenium Users forum at http://forums.openqa.org, with error details from the log window. The error message is: Invalid argument. at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:73) at com.thoughtworks.selenium.DefaultSelenium.type(DefaultSelenium.java:186) at Test.testLogin(Test.java:27) 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:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) 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.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) What I need: I need a test which is avaiable for both browsers (mozilla and IE6). Different declarations of ids for each browser is not a problem. Please, could somebody help me? Thank you a lot of. BR, Vojtech Barta -- View this message in context: http://www.nabble.com/Testing-qooxdoo-by-Selenium-RC-in-IE6-tp16953868p16953868.html Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel