Selenium:我可以将多个命令组合成一个命令以供其他测试引用而无需编码
我目前正在评估 Selenium,看来我必须在测试中一遍又一遍地执行某些步骤。有没有什么方法可以将硒测试中的几个步骤包装成一个可以被其他测试引用的单个步骤?
看来这可以通过自定义编码来完成 如 UI-Element 文档中所述,但如果可能的话,我更愿意使用 IDE。
谢谢,
阿德里安
I'm currently evaluating Selenium and it seems I'll have to perform certain steps in my tests over and over again. Is there any way to wrap several steps from a selenium test into one single step which can be referenced by other tests?
It seems that this can be done with with custom coding as mentioned at in the UI-Element documentation, but I'd prefer to use the IDE if possible.
Thanks,
Adrian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
执行此操作的唯一方法是使用 Rollups(如 UI-Element 文档中所述)将多个命令组合成一个命令。编写汇总后,您可以在 Selenium IDE 中使用它们。
The only way to do this is to use Rollups (as mentioned in the UI-Element documentation) to combine several commands into a single command. Once rollups are written you can use them in Selenium IDE.
其实是有办法的。我将其添加到我的博客文章中比较 Selenium编码 UI
Actually there is a way. I added it to my blog article comparing Selenium to Coded UI