Testing: Selenium: Building ZimbraSelenium
- This is archive documentation, which means it is not supported or valid for recent versions of Zimbra Collaboration.
General Information
See Building Zimbra.
See Selenium Overview.
Downloading the Code
Downloading the Prerequisites
The zm-selenium project depends on the following Zimbra projects:
- zimbra-package-stub
- zm-zcs
- zm-mailbox
- zm-web-client
- zm-zimlets
Clone these prerequisites from github in /root/git directory as an example:
cd /root/git git clone https://github.com/Zimbra/zimbra-package-stub.git git clone https://github.com/Zimbra/zm-zcs.git git clone https://github.com/Zimbra/zm-mailbox.git git clone https://github.com/Zimbra/zm-web-client.git git clone https://github.com/Zimbra/zm-zimlets.git
Downloading zm-selenium
Clone zm-selenium from github in same folder:
git clone https://github.com/Zimbra/zm-selenium.git
Building zm-selenium using Eclipse
Java
ZimbraSelenium requires java 1.6. Download and install java.
Eclipse
Download and install eclipse IDE.
Build the Code
Use the following steps to build the code:
- Create new eclipse workspace
- Open eclipse
- Create new workspace in /root/git/
- Add zm-selenium project to eclipse
- Select File->New->Project->Java Project
- For "Project Name", enter zm-selenium
- Build zm-selenium
- Expand the zm-selenium project
- Select build.xml, right click, select "Run As"->"Ant Build"
The output in the console should display:
... compile: [echo] Compiling framework... [javac] Compiling 1728 source files to C:\git\zm-selenium\build\classes jar: [jar] Building jar: C:\git\zm-selenium\build\dist\lib\zimbraselenium.jar BUILD SUCCESSFUL Total time: 27 seconds
Troubleshooting