Watij - Web Application Testing in Java

发现一个抓取动态网页的好东东:   

Watij (pronounced wattage) stands for Web Application Testing in Java. Watij is a pure Java API created to allow for the automation of web applications. Based on the simplicity of Watir and enhanced by the power of Java, Watij automates functional testing of web applications through a real browser. Currently Watij supports automating Internet Explorer on Windows only. Future plans are in place to support others like Mozilla.

Just download Watij, unzip, and double-click on the launchWatijBeanShell.bat and you are ready to start scripting in the BeanShell Desktop console.

 how easy it is to script a search on Google:

IE ie = new IE();
ie.start("http://www.google.com");
ie.textField(name,"q").set("Watij");
ie.button("Google Search").click();

Now don’t stop here! Take a look at the Quick Start Guide and begin writing your Watij test scripts in test runners like JUnit or others like TestNG.

Note: Requires java version jdk 1.5. See the Quick Start page for more details.

你可能感兴趣的:(java,Web,IE,Google,JSF)