有 wxpython 的 Windowlicker 吗?
最近阅读了“由测试引导的增长 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还没有听说过任何专门针对 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.