ZK testing casesA project for collecting
How to install ztltest environment
- Please checkout this repository to a folder named ztltest
- In Eclipse IDE,
Existing Projects into Workspace
How to run ztltest
You have to run a ZK Test web application. In this case, you can check out the zktest project and import it as
Existing Projects into Workspace.
config.propertiessetting under ztltest folder. For example, server=http://localhost:8080 context-path=/zktest
Configure your browser setting in this case it is firefox only. For example, firefox=FirefoxDriver all=firefox
If you want to use remove driver, you can change with the following setting. firefox=http://10.1.3.245:4444/wd/hub;FirefoxDriver
This means you have a selenium remote server at
After all above things done, you can run the testing case where is under
ztltest/zstl/testfolder as Junit test case in Eclipse.
Note: In the folder named
zstl(ZK Scala Testing Language) is to run ZTL testing case upon Scala language, which can support XML syntax in its language idiom.
How to contribute testing case
Since ZK is a popular Ajax framework, we need to continue to maintain our high testing standards and find areas to improve upon. Automation is one of the best ways in which you can improve testing of your product which is the main reason for introducing ZTL, to make it easier to automate testing of ZK applications. We have begun the process of translating each of our zktest/test2 manual test cases to ZTL. Should you with to contribute a new test case or translate a manual test case to a ZTL you are more than welcome to. We will be using this tool to run through all test cases before ZK release or freshly builds.
ZTL (Scala) Naming Convention
For translating zktest/test2/, each ZTL file name should be the same as the test zul file.
zktest/test2/B30-123456.zul It should be
zstl/test/org/zkoss/zktest/test2/B30/B30_123456Test.scala And the tags of the test case should be the same as the zktest/test2/config.properties