Selenium tests#
starting selenium#
This is normally done when you run ant webtests from a shell after cd'ing into your JSPWiki workspace, but when it fails ("Java result: 1"), you start debugging, expanding the command, shows you the following command:
java -jar tests/lib/selenium-server-1.0-beta1.jar -htmlSuite '*firefox' 'http://localhost:19041/' /home/metskem/workspace/JSPWiki/tests/build/webtests/test-container/selenium/TestSuite.html /tmp/ff.sel.log
- you need FF2 , FF3 does not work
- set the browser type to webtests.browser=*firefox /usr/lib/firefox/firefox-2-bin in build.properties (at the bottom)
- export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.15
- find logs in:
- ~/workspace/JSPWiki/tests/build/webtests/test-custom/selenium
- ~/workspace/JSPWiki/tests/build/webtests/test-container-jdbc/jspwiki.log
- ~/workspace/JSPWiki/tests/build/webtests/testcontainer.log
%%small chrome://selenium-ide/content/selenium/TestRunner.html?test=file:///home/metskem/workspace/JSPWiki/tests/etc/selenium/tests/all/TestSuite.html&baseURL=http://scharnhorst.computerhok.nl:8080/JSPWiki/Wiki.jsp?page=Main %%
Work in progress#
jspwiki.log: com.sun.tools.javac.Main is not on the classpath

