要求:      1、可以准确记录界面上的鼠标和键盘动作。      2、接受一定格式的指令录入,如:<mouse><action>move</action><location>x=10,y=20</Location></mouse>等。      3、有原码。      3、稳定,准确,最好是英文版。

解决方案 »

  1.   

    界面测试工具很多,rational就有1。完全可是实现
    2。实现这个要求的几乎没有
    3。更不可能
    4。of course如果你要我们自己写的工具。。呵呵
      

  2.   

    看看junit.org上的gui测试工具页http://www.junit.org/news/extension/gui/index.htm我觉得4个要求都能满足啊?
    至少jfcunit是开源的吧?Marathon Marathon is a gui-test tool that allows you to play and record scripts against a java swing ui. It's written in java, and uses python as its scripting language - the emphasis being on an extremely simple, readable syntax that customers/testers/analysts feel comfortable with. It is full fledged python, so it is also extremely powerful and customizable for developer-types. 
    Thought Works, February 08, 2003 Jacareto Jacareto is a capture&replay framework for Java applications and applets. It allows you to easily create your own capture&replay tools. Jacareto is very flexible; you can write your own capture modules, replay modules, classes which handle special components, editors, record types, record elements and tests. You can also group record elements together to build high-level structures (qualitative analysis). By extracting data sets from records, quantitative analyses can be performed
    Christian Spannagel, February 08, 2003 Abbot Abbot is a scripted Java GUI testing framework that supports recording and playback of semantic user events, as well as component state evaluation for both unit and functional testing.
    Timothy Wall, May 20, 2002 Pounder Pounder allows you to record scripts using your Java GUI components and then play them back in JUnit or alone in Pounder. It is licensed under the GNU Library General Public License.
    Matthew Pekar, May 09, 2002 Jemmy Module Jemmy is a Java library that is used to create automated tests for Java GUI applications. It contains methods to reproduce all user actions which can performed on swing components (i.e. button pushing, text typing, tree node expanding, ...). JemmyTest is a program written in Java which uses the Jemmy API to test applications. Jemmy is a NetBeans independent module, you can use it separately as well as together with the NetBeans IDE.
    NetBeans, February 20, 2002 JFCUnit An extension to the JUnit framework that enables you to execute unit tests against code that presents a Swing based interface.
    July 04, 2001 
      

  3.   

    你可能是想重复多次测试一个页面吧,因为如果每次都是自己测试的话不要太烦哦。
    这样的话你可以用rational robot,可以录制脚本自动运行。
      

  4.   

    我找到了一个autohotkey的工具,有原码,C++的,感觉还不错。
    谢谢各位