ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

ZK Unit Testing

hideokidd
25 Nov 2008 03:30:33 GMT
25 Nov 2008 03:30:33 GMT

In this article, Luca Vix Visconti introduce an easy way to unit testing ZK application using Selenium and JUnit.

Please visit
http://www.zkoss.org/smalltalks/zkunittesting

madruga0315Top Contributor
22 May 2009 04:44:44 GMT
22 May 2009 04:44:44 GMT

Testing with selenium is pretty simple.

But one key feature of selenium RC is the method waitForPageToLoad(int msToTimeout)

Im new to selenium, so I have no clue if hits is ossible, but it would be great if were an componetn which extends the class DefaultSelenium and implements a method, something like, waitForZkEvent or clickAndWaitForZkEventEnd, and implement a system where zk server notify the selenium rc when has ended processing the event (exista interface for such a thing, don't exists?)

So the test code won't be fullfilled with Thread.sleep and the test can execute in the shortest time possible