Testing: Selenium: Building ZimbraSelenium: Difference between revisions
No edit summary |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==General Information== | |||
See [[Building_Zimbra_using_Perforce|Building Zimbra]].<br/> | See [[Building_Zimbra_using_Perforce|Building Zimbra]].<br/> | ||
== | ==Prerequisites== | ||
===Downloading the | #Create .zcs-deps directory at your %UserProfile% | ||
#Install ant, ivy, Java1.8+ and set respective environment variables. | |||
#Copy following jar at %UserProfile%/.zcs-deps: | |||
ant-contrib-1.0b1.jar | |||
===Downloading the Dependencies=== | |||
The zm-selenium project depends on the following Zimbra projects: | The zm-selenium project depends on the following Zimbra projects: | ||
Line 16: | Line 22: | ||
#zm-zimlets | #zm-zimlets | ||
Clone these | Clone these projects from github in C:/zimbra/ directory as an example: | ||
<pre> | <pre> | ||
cd / | cd C:/zimbra/ | ||
git clone https://github.com/Zimbra/zimbra-package-stub.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-zcs.git | ||
Line 25: | Line 31: | ||
git clone https://github.com/Zimbra/zm-web-client.git | git clone https://github.com/Zimbra/zm-web-client.git | ||
git clone https://github.com/Zimbra/zm-zimlets.git | git clone https://github.com/Zimbra/zm-zimlets.git | ||
</pre> | |||
Build zm-native and zm-common jar using zm-mailbox repo. | |||
<pre> | |||
Go to zm-mailbox and build using following command. | |||
ant publish-local-all -Dzimbra.buildinfo.version=8.7.6_GA | |||
It will create zm-common.jar and zm-native.jar file | |||
</pre> | </pre> | ||
Line 37: | Line 51: | ||
==Building zm-selenium using Eclipse== | ==Building zm-selenium using Eclipse== | ||
Download and install latest [http://www.eclipse.org/downloads/ eclipse IDE]. | |||
Download and install [http://www.eclipse.org/downloads/ eclipse IDE]. | |||
===Build the Code=== | ===Build the Code=== | ||
Line 51: | Line 59: | ||
# Create new eclipse workspace | # Create new eclipse workspace | ||
## Open eclipse | ## Open eclipse | ||
## Create new workspace in / | ## Create new workspace in C:/zimbra/ | ||
# Add zm-selenium project to eclipse | # Add zm-selenium project to eclipse | ||
## Select File->New->Project->Java Project | ## Select File->New->Project->Java Project | ||
Line 58: | Line 66: | ||
## Expand the zm-selenium project | ## Expand the zm-selenium project | ||
## Select build.xml, right click, select "Run As"->"Ant Build" | ## Select build.xml, right click, select "Run As"->"Ant Build" | ||
- it will create 3 jars at ..\zm-selenium\build\dist\lib: | |||
coverage.jar, resources.jar and zimbraselenium.jar | |||
The output in the console | The output in the console will look like: | ||
<pre> | <pre> | ||
Line 65: | Line 75: | ||
compile: | compile: | ||
[echo] Compiling framework... | [echo] Compiling framework... | ||
[javac] Compiling 1728 source files to C:\ | [javac] Compiling 1728 source files to C:\zimbra\zm-selenium\build\classes | ||
jar: | jar: | ||
[jar] Building jar: C:\ | [jar] Building jar: C:\zimbra\zm-selenium\build\dist\lib\zimbraselenium.jar | ||
BUILD SUCCESSFUL | BUILD SUCCESSFUL | ||
Total time: 27 seconds | Total time: 27 seconds |
Latest revision as of 09:57, 26 May 2017
General Information
See Building Zimbra.
Prerequisites
- Create .zcs-deps directory at your %UserProfile%
- Install ant, ivy, Java1.8+ and set respective environment variables.
- Copy following jar at %UserProfile%/.zcs-deps:
ant-contrib-1.0b1.jar
Downloading the Dependencies
The zm-selenium project depends on the following Zimbra projects:
- zimbra-package-stub
- zm-zcs
- zm-mailbox
- zm-web-client
- zm-zimlets
Clone these projects from github in C:/zimbra/ directory as an example:
cd C:/zimbra/ 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
Build zm-native and zm-common jar using zm-mailbox repo.
Go to zm-mailbox and build using following command. ant publish-local-all -Dzimbra.buildinfo.version=8.7.6_GA It will create zm-common.jar and zm-native.jar file
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
Download and install latest eclipse IDE.
Build the Code
Use the following steps to build the code:
- Create new eclipse workspace
- Open eclipse
- Create new workspace in C:/zimbra/
- 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"
- it will create 3 jars at ..\zm-selenium\build\dist\lib: coverage.jar, resources.jar and zimbraselenium.jar
The output in the console will look like:
... compile: [echo] Compiling framework... [javac] Compiling 1728 source files to C:\zimbra\zm-selenium\build\classes jar: [jar] Building jar: C:\zimbra\zm-selenium\build\dist\lib\zimbraselenium.jar BUILD SUCCESSFUL Total time: 27 seconds
Troubleshooting