简体   繁体   English

如何编写Eclipse RCP插件GUI测试代码/工具

[英]How to I can code/tool eclipse RCP plugin GUI testing

I am developing an eclipse RCP plugin, I have completed code and some unit testing, now I want to provide the GUI testing, Do you have any ideas about what open tools/libraries I used? 我正在开发一个eclipse RCP插件,已经完成了代码和一些单元测试,现在我想提供GUI测试。您对我使用了哪些开放工具/库有任何想法吗? is it possible I can install this plugin to eclipse and perform GUI testing with codes to simulate just like end users? 是否可以将这个插件安装到eclipse并使用代码执行GUI测试以模拟最终用户?

I would use SWTBot for this task. 我将使用SWTBot来完成此任务。 It will help you to select widgets in a straightforward manner. 这将帮助您以直接的方式选择小部件。 You can simulate the user interaction on each widget. 您可以模拟每个小部件上的用户交互。 SWTBot is provided as Eclipse Plugin. SWTBot作为Eclipse插件提供。

SWTBot helps to do GUI testing. SWTBot帮助进行GUI测试。 We actually built a framework on top of SWTBot to code GUI tests. 实际上,我们在SWTBot之上构建了一个框架来对GUI测试进行编码。 you can also look at eclipse TPTP for recording GUI tests but it has its limitations. 您还可以查看用于记录GUI测试的Eclipse TPTP,但是它有其局限性。

http://www.eclipse.org/tptp/home/project_info/general/whatisTPTP.php http://www.eclipse.org/tptp/home/project_info/general/whatisTPTP.php

Windowtester is a powerful tool from google thateliminates the need to manually create test cases to test GUIs by automating the process of GUI testing. Windowtester是Google提供的功能强大的工具,它无需通过自动执行GUI测试过程来手动创建测试用例以测试GUI。 Generated tests tend to be SWTBot or similar to SWTBot and easy to edit and automate tests. 生成的测试往往是SWTBot或类似于SWTBot的,并且易于编辑和自动化测试。 https://developers.google.com/java-dev-tools/wintester/html/ https://developers.google.com/java-dev-tools/wintester/html/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM