Shining ZATS Mimic"
(Created page with "{{Template:Smalltalk_Author| |author=Hawk Chen, Engineer, Potix Corporation |date=April, 2012 |version=1.0.0-RC }} = Opening = = Summary = = Download = [? Example Project]. ...") |
|||
Line 6: | Line 6: | ||
= Opening = | = Opening = | ||
+ | <!-- agile => test driven => unit-test --> | ||
+ | In agile software development, developers modify their codes frequently for requirement change or refactoring, they therefore also perform unit tests frequently to ensure the software quality. In ZK-based applications, it is hard to execute an unit test on the composer which is tightly-coupled to ZUL because it is instantiated when a ZUL is requested by a browser. The same problem arises if you want to verify a ZUL's zkbind expression with ViewModel. Hence '''TDD''' (Test-Driven Development) cannot proceed under this situation. | ||
+ | |||
+ | |||
+ | = Operation Agent Usage = | ||
+ | In order to mimic user operation to ZK components, our library provide various operation agents. You can find all supported under package <tt> org.zkoss.zats.mimic.operation </tt> including ''' check, click, close, focus, key stroke, select, multiple select, type, select by index,''' and '''render '''. We support those commonly-used operation first and will keep adding more operations. | ||
+ | |||
+ | == Select == | ||
+ | |||
+ | <!-- Renderer agent --> | ||
+ | |||
+ | == Multiple Select == | ||
= Summary = | = Summary = |
Revision as of 07:52, 17 April 2012
Hawk Chen, Engineer, Potix Corporation
April, 2012
1.0.0-RC
Opening
In agile software development, developers modify their codes frequently for requirement change or refactoring, they therefore also perform unit tests frequently to ensure the software quality. In ZK-based applications, it is hard to execute an unit test on the composer which is tightly-coupled to ZUL because it is instantiated when a ZUL is requested by a browser. The same problem arises if you want to verify a ZUL's zkbind expression with ViewModel. Hence TDD (Test-Driven Development) cannot proceed under this situation.
Operation Agent Usage
In order to mimic user operation to ZK components, our library provide various operation agents. You can find all supported under package org.zkoss.zats.mimic.operation including check, click, close, focus, key stroke, select, multiple select, type, select by index, and render . We support those commonly-used operation first and will keep adding more operations.
Select
Multiple Select
Summary
Download
[? Example Project].
Comments
Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License. |