Selenium IDE:无法运行测试用例或切换到命令表
我使用 Selenium IDE 编写了一个测试用例。我想运行测试(使用播放按钮),并且我想切换到“表”选项卡,以便可以看到命令。
如屏幕截图所示,我既无法单击播放按钮,也无法切换到“表格”选项卡。为什么?
I've written a test case using the Selenium IDE. I would like to run the test (using the play button) and I would like to switch to the Table tab so I can see the commands.
As seen in the screenshot, I can neither click the play button nor switch to the Table tab. Why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
仅当您的 IDE 设置为 Selenese(HTMl 格式)而不是任何其他代码格式时,您才能执行测试。将其更改为 Selenese (HTML),如下所示,它应该可以工作 -
You can execute test only when your IDE is set for Selenese (HTMl format) and not any other code format. Change it to Selenese (HTML) as following and it should work -
您只能以表格式在 Selenium IDE 中运行测试。您可能无法切换到表格式,因为它是自定义脚本,并且 IDE 不知道如何解释它。 IDE 很脆弱,格式切换器仅设计用于将录制的脚本转换为可导出的格式。它的设计目的并非相反。
You can only run tests in Selenium IDE in the table format. You probably can't switch to the table format because it is a custom script and the IDE doesn't know how to interpret it. The IDE is fragile and the format switcher is only designed for you to get a recorded script into an exportable format. It isn't designed to go the other way.
Shalom,
您所拥有的映像中的脚本不是 IDE 用于执行测试的脚本。您记录的测试最初采用“HTML”表格格式,如果您想将测试与其他语言一起使用,则可以通过“将测试用例另存为...”或“将测试用例导出为...”进行转换。 ”。您似乎选择在 Python 中查看脚本。要运行它,您可能需要像执行任何其他 Python 代码一样执行它。我在 Java 和 Ruby IDE 中使用了测试。
Shalom,
The script in the image you have is not what the IDE uses to execute its tests. A test that you record will initially be in "HTML" table format and if you want to use your tests with other languages you will then convert it by either "Save Test Case As..." or "Export Test Case As...". It looks like you chose to view your script in Python. To run this you will probably need to execute it like you do any other Python code. I've used my tests in Java and Ruby IDEs.