Testing: Selenium: Running ZimbraSelenium

General Information

ZimbraSelenium is the automation test harness for verifying the browser based Zimbra clients.

Downloading and Building ZimbraSelenium

Please follow the steps in Testing:_Selenium:_Building_ZimbraSelenium.

Tests Configuration

The file located in ZimbraSelenium/conf/conf.properties is the master configuration file. Every parameter change required to run the tests properly should be present and configurable on it. Configure the test harness with the basic parameters required to run properly against your desired version of Zimbra by changing the following variables in the file:

  • server
  • ProvServer
  • serverMachineName
  • browser


Running ZimbraSelenium

Running from Eclipse

  1. Find projects/zcs/bin/ExecuteTests.java file
  2. In the project-tree, right click on projects/zcs/bin/ExecuteTests.java
  3. In the context menu, select: Run As > Open "Run Configuration" (This will bring "Run Configuration" dialog)
  4. Select "JAVA Application" folder from the tree
  5. Click on the + icon(at the top) or right-click and select "New" (This will essentially create a subfolder under Java Application)
  6. Enter the name as: "ajaxExecuteTests"
  7. Under "Main Class" section you should have: projects.zcs.bin.ExecuteTests
  8. Click "{x}=Arguments" tab
  9. In the "Program Arguments" section enter: "fullSuite" without double-quotes (ExecuteTests.java takes 1 argument <debugSuite> to run debug-tests or <fullSuite> to run full tests)
  10. In the VM Arguments section enter: -Dfile.encoding=UTF-8 If you are running/debugging in chinese,korean etc console/output needs this setting to show those chars properly. Otherwise you will see junk chars
  11. Click Apply (you can duplicate these things for projects/html/bin/ExecuteTests.java)

Running from the command line

Running using ant commands

  1. cd to ZimbraSelenium dir
  2. run ant targets:
 ant "Run tests" 

(runs both ajax and html suite)

 ant "Run ajax tests" || ant "Run html tests"
Verified Against: unknown Date Created: 11/7/2007
Article ID: https://wiki.zimbra.com/index.php?title=Testing:_Selenium:_Running_ZimbraSelenium Date Modified: 2010-07-22



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search