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
- Find projects/zcs/bin/ExecuteTests.java file
- In the project-tree, right click on projects/zcs/bin/ExecuteTests.java
- In the context menu, select: Run As > Open "Run Configuration" (This will bring "Run Configuration" dialog)
- Select "JAVA Application" folder from the tree
- Click on the + icon(at the top) or right-click and select "New" (This will essentially create a subfolder under Java Application)
- Enter the name as: "ajaxExecuteTests"
- Under "Main Class" section you should have: projects.zcs.bin.ExecuteTests
- Click "{x}=Arguments" tab
- 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)
- 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
- Click Apply (you can duplicate these things for projects/html/bin/ExecuteTests.java)
Running from the command line
Running using ant commands
- cd to ZimbraSelenium dir
- run ant targets:
ant "Run tests"
(runs both ajax and html suite)
ant "Run ajax tests" || ant "Run html tests"