Running the Test Case

From Documentation
Running the Test Case

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.

Running Selenium server

Go to the SELENIUM_HOME/selenium-server-1.0/ directory and launch

java -jar selenium-server.jar

Running ZK application

Simply run your ZK application using Eclipse, or any other Servlet Container.

Running test application

To run the test, right-click on and select Run As > JUnit Test

The result

After test, you shall see the result in your eclipse as follows,
The test code alerts a message to tell us that the text of window's title is "abc" not "123".

Last Update : 2010/07/16

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.