Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. This testing setup was first introduced on July the 14th 2009, post 2.3.1 release. So you will need to check out the latest code from head (including the changes to move to jboss-5) to test this. In lams_build/lib/selenium, there are several new libraries, and there is also a change to the 3rdParty.userlibraries file.
  2. Once you have libraries ready, you need to have the selenium java service running. In eclipse go to Run -> External Tools -> External Tool Configurations. This is using Eclipse 3.4, please refer to the Eclipse documentation on how to get to this page on a different version.
  3. Under Program select new.
  4. Name the run configuration "Selenium".
  5. In the location field enter the path the the java excutable, in ubuntu this is normally /usr/bin/java.
  6. In the arguments area, enter the following text
    No Format
    -jar ${workspace_loc}/lams_build/lib/selenium/selenium-server.jar -port 5555 -userExtensions ${workspace_loc}/lams_build/lib/selenium/user-extensions.js
    
  7. Select Run and you should get some output in your console.
  8. Also start your lams server as this must be running to run the tests. You should start it using the settings found in lams_common/test/org/lamsfoundation/lams/selenium/TestFrameworkConstants.java
  9. Now select a test that you want to run, for example lams_tool_wiki/test/java/org/lamsfoundation/lams/tool/wiki/selenium/TestWiki.java.
  10. Right click on the class and select Run As -> JUnit test.

...