Building zm-selenium
-
Create .zcs-deps directory at your %UserProfile%.
-
Install ant, ivy, Java1.8+ and set respective environment variables.
-
Copy following jars at %UserProfile%/.zcs-deps:
ant-contrib-1.0b1.jar
-
Clone following git repos:
git clone https://github.com/Zimbra/zimbra-package-stub.git git clone https://github.com/Zimbra/zm-mailbox.git git clone https://github.com/Zimbra/zm-zcs.git git clone https://github.com/Zimbra/zm-ajax.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-selenium.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
-
Build zm-selenium using the following command:
ant jar
It will create 3 jars at ..\zm-selenium\build\dist\lib: coverage.jar resources.jar zimbraselenium.jar
-
You can run testcases using build.xml or by adding debug confirmation run.
Build.xml: ant Run-ExecuteHarnessMain -Dpattern ajax.tests.conversation.quickreply -Dgroups always,smoke zimbraselenium.jar: - Create new configuration - Select 'zm-selenium' project and 'com.zimbra.qa.selenium.framework.core.ExecuteHarnessMain' as main class - Give '-j C:\pathToZm-selenium\build\dist\lib\zimbraselenium.jar -p com.zimbra.qa.selenium.projects.admin.tests.login.BasicLogin -g always,L0,L1,L2,L3 -l conf/log4j.properties' in argument