是否有任何工具可以从给定的网页生成 Watin 页面对象?
WatiN 看起来不错,但是手动生成页面对象似乎很乏味。
是否有任何浏览器插件或其他工具允许我单击一些元素(表单字段、div 等)并导出这些元素的页面对象的源?它看起来像是对框架的明显补充。
谢谢,
阿德里安
WatiN looks nice, but generating page objects by hand seems very tedious.
Is there any browser plugin or other tool that would allow me to click a few elements (form fields, divs, etc) and export the source of a page object for these elements? It looks like an obvious addition to the framework.
Thanks,
Adrian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看看这篇博文。
http://slmoloch.blogspot.com/2009 /12/design-of-selenium-tests-for-aspnet.html
它讨论了 xpather 工具和 T4 模板的混合来自动生成页面对象。这也是一个关于如何为 .Net 设置 selenium 环境的很好的系列,其中大部分内容也适用于 Watin 测试。
Have a look at this blogpost.
http://slmoloch.blogspot.com/2009/12/design-of-selenium-tests-for-aspnet.html
It discusses a mixture of the xpather tool and T4 templates to autogenerate pageobjects. Its also a nice series on how to setup a selenium environment for .Net, most of the things are also applicable for Watin tests.
我也对页面对象生成感到好奇。然而,我不想像录音机一样加载浏览器并单击,而是考虑通过 Web 应用程序 DLL 的反射来发现页面和控件。
我还没有听说过有这样的工具,但我只是把它放在那里,以防您想花一点时间来发现和生成您想要的代码。
希望这有帮助。
I've been curious about Page Object generation as well. However, instead of having to load a browser and click around like a recorder, I was thinking of discovering the pages and controls through reflection of the web app dll.
I have not heard of a tool that does this, but I'm just putting this out there in case you wanted to spend a little bit of time to discover and generate the code exactly they way you want.
Hope this helps.
WatiN 测试记录仪怎么样?
http://watintestrecord.sourceforge.net/
How about the WatiN Test Recorder?
http://watintestrecord.sourceforge.net/