Selenium:我可以将多个命令组合成一个命令以供其他测试引用而无需编码

发布于 2024-08-30 04:15:49 字数 323 浏览 4 评论 0原文

我目前正在评估 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 技术交流群。

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

发布评论

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

评论(2

ゃ懵逼小萝莉 2024-09-06 04:15:49

执行此操作的唯一方法是使用 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.

东北女汉子 2024-09-06 04:15:49

其实是有办法的。我将其添加到我的博客文章中比较 Selenium编码 UI

Actually there is a way. I added it to my blog article comparing Selenium to Coded UI

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