`
sole
  • 浏览: 141876 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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.

分享到:
评论
2 楼 sole 2008-09-18  
用jexplorer,watij核心用的它。
jexplorer是商业的,长期使用要序列号。不过你把watijcom.jar这个包带上就不用序列号了。
http://www.teamdev.com/jexplorer/index.jsf下载,看看demo和sample就知道了,Swing做的界面
1 楼 kqy929 2008-09-11  
最近也在使用watij,很方面操作浏览器。
但是发现一个问题,就是这样,程序及IE分别在不同的进程中。
有没有办法让其不打开IE,就在程序同一相进程间交互。
类似使用javaxpcomm。

相关推荐

Global site tag (gtag.js) - Google Analytics