Testing: SOAP: Building ZimbraQA
General Information
See Building_Zimbra_using_Perforce.
Downloading the Code
Downloading the Prerequisites
The ZimbraQA project depends on the following Zimbra projects:
- ZimbraServer
- ZimbraCommon
- ZimbraIM
Download the prerequisites:
export P4PORT=codes.zimbra.com:2666 mkdir -p /home/public/p4 ./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/ZimbraCommon/... ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraIM/...
where BRANCH is the release branch to download (e.g. main). All files will be downloaded to /home/public/p4.
Downloading ZimbraQA
ZimbraQA is a closed-source project that is not available publicly.
Building ZimbraSelenium using Eclipse
Java
ZimbraQA 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 /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 ZimbraQA
- Complete these steps for ZimbraCommon, ZimbraIM, ZimbraServer
- Build ZimbraQA
- Expand the ZimbraQA project
- Select build.xml, right click, select "Run As"->"Ant Build"
The output in the console should display:
... do-generate-ldap-config: [javac] Compiling 47 source files to C:\home\public\P4\main\ZimbraQA\build\classes [javac] Note: C:\home\public\P4\main\ZimbraQA\src\java\com\zimbra\qa\soap\ProxySoapHttpTransport.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\home\public\P4\main\ZimbraQA\src\java\com\zimbra\qa\soap\UploadServletTest.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. jar: [jar] Building jar: C:\home\public\P4\main\ZimbraQA\build\dist\zimbra-0.5.0\lib\zimbraqa.jar BUILD SUCCESSFUL Total time: 10 seconds
Troubleshooting