Testing: Selenium: Building ZimbraDesktop: Difference between revisions

(Created page with "==General Information== See Building Zimbra.<br/> See Selenium Overview.<br/> ==Downloading the Code== ===Downlo...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
==General Information==
{{Archive}}==General Information==


See [[Building_Zimbra_using_Perforce|Building Zimbra]].<br/>
See [[Building_Zimbra_using_Perforce|Building Zimbra]].<br/>
Line 7: Line 7:


===Downloading the Prerequisites===
===Downloading the Prerequisites===
 
Similar to Building Selenium: http://wiki.zimbra.com/wiki/Testing:_Selenium:_Building_ZimbraSelenium#Downloading_the_Prerequisites
The ZimbraSelenium project depends on the following Zimbra projects:
 
#ZimbraCommon
#ZimbraIM
#ZimbraNative
#ZimbraServer
#ZimbraSoap
#ZimbraTagLib
#ZimbraWebClient
 
Download the prerequisites:
 
<pre>
export P4PORT=codes.zimbra.com:2666
mkdir -p /home/public/p4
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraCommon/...
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraIM/...
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraNative/...
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraServer/...
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraSoap/...
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraTagLib/...
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraWebClient/...
</pre>
 
where BRANCH is the release branch to download (e.g. main).  All files will be downloaded to /home/public/p4.


===Downloading ZimbraSelenium===
===Downloading ZimbraSelenium===
Similar to Building Selenium: http://wiki.zimbra.com/wiki/Testing:_Selenium:_Building_ZimbraSelenium#Downloading_ZimbraSelenium


Download ZimbraSelenium:
==Building ZimbraSelenium for testing Zimbra Desktop using Eclipse==
 
<pre>
export P4PORT=codes.zimbra.com:2666
mkdir -p /home/public/p4
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraSelenium/...
</pre>
 
where BRANCH is the release branch to download (e.g. main).  All files will be downloaded to /home/public/p4.
 
==Building ZimbraSelenium using Eclipse==
 
===Java===
 
ZimbraSelenium requires [http://www.java.com/download/ java 1.6].  Download and install java.
 
===Eclipse===
 
Download and install [http://www.eclipse.org/downloads/ eclipse IDE].
 
===Build the Code===
 
Use the following steps to build the code:
 
# Create new eclipse workspace
## Open eclipse
## Create new workspace in /home/public/p4/BRANCH , where BRANCH is the release branch.
# Add all projects to eclipse
## Select File->New->Project->Java Project
## For "Project Name", enter ZimbraSelenium
## Complete these same steps for all the dependency projects (i.e. ZimbraCommon, ZimbraServer, etc.)
# Build ZimbraSelenium
## Expand the ZimbraSelenium project
## Select build.xml, right click, select "Run As"->"Ant Build"
 
The output in the console should display:


<pre>
Similar as building ZimbraSelenium project: http://wiki.zimbra.com/wiki/Testing:_Selenium:_Building_ZimbraSelenium#Building_ZimbraSelenium_using_Eclipse
...
    [copy] Copying 3 files to C:\home\public\p4\main\ZimbraServer\build\attrs-src
set-buildinfo-vars:
    [echo] Version: 6.0.2_BETA1_1111 Date: 20100721-1203
do-generate-ldap-config:
    [javac] Compiling 1 source file to C:\home\public\p4\main\ZimbraSelenium\build\classes
jar:
      [jar] Building jar: C:\home\public\p4\main\ZimbraSelenium\build\dist\zimbra-6.0.0\lib\zimbraselenium.jar
BUILD SUCCESSFUL
Total time: 19 seconds
</pre>


==Troubleshooting==
==Troubleshooting==

Latest revision as of 20:16, 25 March 2015

General Information

See Building Zimbra.
See Selenium Overview.

Downloading the Code

Downloading the Prerequisites

Similar to Building Selenium: http://wiki.zimbra.com/wiki/Testing:_Selenium:_Building_ZimbraSelenium#Downloading_the_Prerequisites

Downloading ZimbraSelenium

Similar to Building Selenium: http://wiki.zimbra.com/wiki/Testing:_Selenium:_Building_ZimbraSelenium#Downloading_ZimbraSelenium

Building ZimbraSelenium for testing Zimbra Desktop using Eclipse

Similar as building ZimbraSelenium project: http://wiki.zimbra.com/wiki/Testing:_Selenium:_Building_ZimbraSelenium#Building_ZimbraSelenium_using_Eclipse

Troubleshooting

Verified Against: unknown Date Created: 11/7/2007
Article ID: https://wiki.zimbra.com/index.php?title=Testing:_Selenium:_Building_ZimbraDesktop Date Modified: 2015-03-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