Hi, You need to start the Selenium proxy before starting your tests. There is a Maven plugin that may help but as you are not using Maven I suggest to try by running it manually. AFAIR, simply open a console and start selenium server with: java -jar selenium-server-XX.jar
http://seleniumhq.org/projects/remote-control/ http://seleniumhq.org/docs/05_selenium_rc.html#installation Regards, Julien ________________________________ De : anisotrope <[email protected]> À : [email protected] Envoyé le : Dim 27 Décembre 2009, 23 h 33 min 24 s Objet : [JWebUnit-development] SeleniumTestingEngineImpl Hello everybody, in the JWebUnit website it is written that the selenium plugins is a BETA quality (not all the JWebUnit API could be executed with Selenium). I am trying to launch the simple following test : import net.sourceforge.jwebunit.junit.WebTester; import net.sourceforge.jwebunit.selenium.SeleniumTestingEngineImpl; import junit.framework.TestCase; public class TestJWebUnit2 extends TestCase { private WebTester tester; public TestJWebUnit2 (String name) { super(name); tester = new WebTester(); SeleniumTestingEngineImpl engine = new SeleniumTestingEngineImpl(); tester.setDialog(engine); //tester.getTestContext().setBaseUrl("http://jwebunit.sourceforge.net/"); tester.getTestContext().setBaseUrl("http://jwebunit.sourceforge.net/"); } public void testSearch() throws Exception { tester.beginAt("/"); tester.setTextField("q", "htmlunit"); tester.submit("btnG"); tester.clickLinkWithText("HtmlUnit"); tester.assertTitleEquals("HtmlUnit - Welcome to HtmlUnit"); tester.assertLinkPresentWithText("Get started"); } } I got the message : com.thoughtworks.selenium.SeleniumException: Internal Server Error at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponse(HttpCommandProcessor.java:124) at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:82) at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:68) at com.thoughtworks.selenium.DefaultSelenium.open(DefaultSelenium.java:234) at net.sourceforge.jwebunit.selenium.SeleniumTestingEngineImpl.gotoPage(SeleniumTestingEngineImpl.java:210) at net.sourceforge.jwebunit.selenium.SeleniumTestingEngineImpl.beginAt(SeleniumTestingEngineImpl.java:70) at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:212) at TestJunitWebUnitExample2.testSearch(TestJWebUnit2 .java:21) 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:164) at junit.framework.TestCase.runBare(TestCase.java:130) 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:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) 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) I am not using maven i have references to the jars in my IDE : - jwebunit-selenium-plugin-2.2.jar - jwebunit-core-2.2.jar and the jars contained in the lib directory of the release 2.2 Has anyone any idea of what is the problem ? Thanks a lot ! ____________________________________________________ Tables en fête, recettes parfaites, sorties en goguette tout est sur http://evenementiel.voila.fr/Noel ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ JWebUnit-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-development
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ JWebUnit-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-development
