是否可以将Selenium IDE测试用例导出为Java/TestNG/WebDriver?

是否可以将Selenium IDE测试用例导出为Java/TestNG/WebDriver?

问题描述:

在Selenium IDE 1.9.0中,有一些选项可以将测试用例导出为Java/JUnit4/Webdriver和Java/TestNG/Remote Control(还有许多其他选项).

In Selenium IDE 1.9.0 there are options to export testcases as Java / JUnit4 / Webdriver and Java / TestNG / Remote Control (along with many more options).

我想知道有什么方法可以将测试用例导出为Java/TestNG/Webdriver吗?如果没有,那么是否有任何解决方法?或者我们可以通过一些简单的步骤将其导出为JUnit并将其更改为TestNG?

I want to know is there any way to export the test case as Java / TestNG /Webdriver? If not is there any workaround for the same? Or can we export it as JUnit and change it to TestNG in some simple steps??

当前无法做到!

解决方法:

将其导出为Java JUnit4 Webdriver,只需更改导入和批注即可.

Export it as Java JUnit4 Webdriver and just change the imports and annotations.

这就是您要做的一切