Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium IDE和无头浏览器测试_Selenium_Automated Tests_Phantomjs_Selenium Ide_Browser Testing - Fatal编程技术网

Selenium IDE和无头浏览器测试

Selenium IDE和无头浏览器测试,selenium,automated-tests,phantomjs,selenium-ide,browser-testing,Selenium,Automated Tests,Phantomjs,Selenium Ide,Browser Testing,如何在无头浏览器中运行Selenium IDE(Firefox插件)生成的测试用例 当我使用firefox插件创建测试用例时,它会将它们保存为.html文件 我正在尝试设置一种在无头浏览器中运行它们的方法(使用phantomJS或其他工具/lib)。我见过很多人提到在隐藏的框架中运行firefox,但这与headless(即PhantomJS)不同 我已经了解了如何从命令行运行selenium测试用例,但仅在firefox或ie中,我无法让它在phantomjs上运行.html测试用例: jav

如何在无头浏览器中运行Selenium IDE(Firefox插件)生成的测试用例

当我使用firefox插件创建测试用例时,它会将它们保存为.html文件

我正在尝试设置一种在无头浏览器中运行它们的方法(使用phantomJS或其他工具/lib)。我见过很多人提到在隐藏的框架中运行firefox,但这与headless(即PhantomJS)不同

我已经了解了如何从命令行运行selenium测试用例,但仅在firefox或ie中,我无法让它在phantomjs上运行.html测试用例:

java -jar selenium-server-standalone-2.39.0.jar -htmlSuite "*firefox" "http://127.0.0.1" "ts-ProjectList/TestSuite.html" "ProjectList-results.html"
我知道IDE可以导出不同语言的测试用例,但我希望非技术团队成员能够使用firefox插件创建测试。

你看过吗

将“*firefox”更改为phantomjs应该可以让您开始

您将需要phantomJS驱动程序:

我不确定你的要求是否可行。然而,硒测试通常非常脆弱。您的建议将导致许多错误的否定,以及对自动化工作的信心不足。我非常建议您考虑将一个资源转换为一个真正的语言和一个真正的框架,这将使您具有灵活性。