将测试用例导出为-使用最新的Selenium IDE的Java/JUnit/Webdriver [英] Export test case as - Java / JUnit /Webdriver using latest Selenium IDE
问题描述
是否可以使用最新 Selenium IDE
将测试导出为"Java / JUnit /Webdriver"
或'Enable Webdriver Playback'
选项?我将此扩展名添加到了Firefox
浏览器中,但没有找到这些选项.它实际上将文件另存为testName.side
格式.当我以EclipseIDE
格式打开此文件时,它实际上是JSON
格式.
Is there an option to export the tests as "Java / JUnit /Webdriver"
or 'Enable Webdriver Playback'
option using latest Selenium IDE
? I added this extension to my Firefox
browser and I don't find these options. It actually saves the file as testName.side
format. When I open this file in EclipseIDE
, it is actually in a JSON
format.
我有一个要求,我需要快速浏览多个页面上的所有链接,我认为SeleniumIDE
将是最好的选择,我可以在其中使用'Enable Webdriver Playback'
选项并在所有浏览器中运行它.
I have a requirement where I need to quickly navigate through all the links across multiple pages and I thought SeleniumIDE
will be the best option where I can use the 'Enable Webdriver Playback'
option and run it in all the browsers.
对此有何想法?
这是Selenium IDE文档的链接 SeleniumIDE_Documentation
Here is the link to the Selenium IDE documentation SeleniumIDE_Documentation
推荐答案
在您提出问题时,Selenium IDE 3可能无法实现.
At the time you asked the question it was probably not possible with Selenium IDE 3.
但是现在您可以右键单击测试列表中的测试名称,然后选择将其导出"到Java JUnit测试的选项. 在执行右键单击时,请确保将IDE的模式"(位于项目名称下方)设置为测试",而不是执行".
But now you can right click on a test-name in the test list, and select the option to 'Export' it to a Java JUnit test. Please ensure that the 'mode' of the IDE (below the project name) is set to 'Tests' and not 'Executing' when you perform the right click.
在文档中查看更多信息.
这篇关于将测试用例导出为-使用最新的Selenium IDE的Java/JUnit/Webdriver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!