OscarXie.net

关注质量与体验——电子商务与自动化测试

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随着浏览器的不断更新,如今的website不再像过去一样只支持IE6了,用户体验促使现在的网站对美工(或好听点叫做UED)的要求越来越高,

那么通过对OS/Browers的metrics,兼容性的测试需求变得重要起来。

前面有介绍过WaitN和selenium主要是用来对功能的自动化测试,那么UI方面的测试,除了手工测试每个浏览器和操作系统的排列组合还有更好的方法么,

Sikuli的出现,多少能够解决一些问题,使用截图代替代码

Sikuli is a visual technology to search and automate graphical user interfaces (GUI) using images (screenshots). The first release of Sikuli contains Sikuli Script, a visual scripting API for Jython, and Sikuli IDE, an integrated development environment for writing visual scripts with screenshots easily. Sikuli Script automates anything you see on the screen without internal API's support. You can programmatically control a web page, a desktop application running on Windows/Linux/Mac OS X, or even an iphone application running in an emulator. 

1. automate anything you see

2. automate using screenshots

3. work on any Java platform

 图为Sikuli使用示例

 Hello World example:

 

PS:

Project Sikuli: http://groups.csail.mit.edu/uid/sikuli/

Sikuli's Official Blog:  http://blog.sikuli.org/

posted on 2010-05-28 15:08  oscarxie  阅读(562)  评论(0编辑  收藏  举报