有 wxpython 的 Windowlicker 吗?

发布于 2024-10-01 08:29:04 字数 624 浏览 1 评论 0原文

最近阅读了“由测试引导的增长 OO 系统”,我对 印象深刻windowlicker 用于 java/junit 的测试实用程序。基本上,它用驱动程序和手势包装了 GUI 和 GUI 交互,因此您的集成/端到端测试可以整齐地编写,如下所示:

//setup
ui.enterUserDetailsFor(newUser)
ui.sendForm()
//assert
ui.showsWelcomeMessage()

所有 swing-gui-线程同步和查找小部件等都在框架中很好地隔离。正是这种更高级别的测试是我在当前的 wxPython 项目中真正怀念的。 wxgtk/wxpython 有什么类似的东西吗? 我可以从 windowlicker 源代码中看出它建立在 java.awt.robot,如果没有windowlicker,还有robot之类的东西吗?

Having recently read "Growing OO systems guided by tests", I am very impressed with the windowlicker testing utility for java/junit. Basically it wraps the GUI and GUI-interaction with drivers and gestures, so your integration/end-to-end tests can be written neatly like:

//setup
ui.enterUserDetailsFor(newUser)
ui.sendForm()
//assert
ui.showsWelcomeMessage()

All swing-gui-thread synchronization and finding widgets etc is nicely isolated in the framework. Exactly this sort of higher level testing is something I really miss in my current wxPython project. Is there anything at all similar for wxgtk/wxpython?
What I can tell from the windowlicker source it builds on java.awt.robot, if there isn't a windowlicker, is there anything like robot?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小镇女孩 2024-10-08 08:29:05

我还没有听说过任何专门针对 wxPython 的东西。不过,您可以使用小部件检查工具来处理您正在谈论的一些内容。请参阅此处:

http://wiki.wxpython.org/Widget%20Inspection%20Tool

有还有与 GUI 无关的 Sikuli 项目:

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

希望其中之一能帮助您。

I haven't heard of anything specifically for wxPython. You can use the Widget Inspection Tool for some of the stuff you are talking about though. See here:

http://wiki.wxpython.org/Widget%20Inspection%20Tool

There's also the Sikuli project which is GUI-agnostic:

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

Hopefully one of those will help you out.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文