Difference between revisions of "Testing: Selenium: Building ZimbraSelenium"

(Downloading the Prerequisites)
(Downloading ZimbraSelenium)
Line 27: Line 27:
===Downloading ZimbraSelenium===
===Downloading zm-selenium===
Download ZimbraSelenium:
Clone zm-selenium from github in same folder:
export P4PORT=codes.zimbra.com:2666
git clone https://github.com/Zimbra/zm-selenium.git
mkdir -p /home/public/p4
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraSelenium/...
where BRANCH is the release branch to download (e.g. main).  All files will be downloaded to /home/public/p4.
==Building ZimbraSelenium using Eclipse==
==Building ZimbraSelenium using Eclipse==

Revision as of 12:25, 25 May 2017

General Information

See Building Zimbra.
See Selenium Overview.

Downloading the Code

Downloading the Prerequisites

The zm-selenium project depends on the following Zimbra projects:

  1. zimbra-package-stub
  2. zm-zcs
  3. zm-mailbox
  4. zm-web-client
  5. 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 ZimbraSelenium using Eclipse


ZimbraSelenium requires java 1.6. Download and install java.


Download and install eclipse IDE.

Build the Code

Use the following steps to build the code:

  1. Create new eclipse workspace
    1. Open eclipse
    2. Create new workspace in /home/public/p4/BRANCH , where BRANCH is the release branch.
  2. Add all projects to eclipse
    1. Select File->New->Project->Java Project
    2. For "Project Name", enter ZimbraSelenium
    3. Complete these same steps for all the dependency projects (i.e. ZimbraCommon, ZimbraServer, etc.)
  3. Build ZimbraSelenium
    1. Expand the ZimbraSelenium project
    2. Select build.xml, right click, select "Run As"->"Ant Build"

The output in the console should display:

     [copy] Copying 3 files to C:\home\public\p4\main\ZimbraServer\build\attrs-src
     [echo] Version: 6.0.2_BETA1_1111 Date: 20100721-1203
    [javac] Compiling 1 source file to C:\home\public\p4\main\ZimbraSelenium\build\classes
      [jar] Building jar: C:\home\public\p4\main\ZimbraSelenium\build\dist\zimbra-6.0.0\lib\zimbraselenium.jar
Total time: 19 seconds


Verified Against: unknown Date Created: 11/7/2007
Article ID: https://wiki.zimbra.com/index.php?title=Testing:_Selenium:_Building_ZimbraSelenium Date Modified: 2017-05-25

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