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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.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
Unit testing 是否可以在浏览器之外使用Selenium/PHPUnit?_Unit Testing_Selenium_Phpunit - Fatal编程技术网

Unit testing 是否可以在浏览器之外使用Selenium/PHPUnit?

Unit testing 是否可以在浏览器之外使用Selenium/PHPUnit?,unit-testing,selenium,phpunit,Unit Testing,Selenium,Phpunit,现在,这是我为网站编写测试的工作流程: 在Firefox中使用Selenium IDE插件录制 将测试用例导出为>>PHP(PHP单元) 在安装了PHPUnit的Windows计算机上运行测试,并使用以下命令为其运行Selenium扩展: phpunit--verbose--log junit some\path\result.xml some\path\test.php 此命令的作用是运行测试并将输出(断言和失败)保存在名为result.xml的日志文件中。一切都很好 但现在我需要测试站点中涉

现在,这是我为网站编写测试的工作流程:

  • 在Firefox中使用Selenium IDE插件录制
  • 将测试用例导出为>>PHP(PHP单元)
  • 在安装了PHPUnit的Windows计算机上运行测试,并使用以下命令为其运行Selenium扩展:
  • phpunit--verbose--log junit some\path\result.xml some\path\test.php

    此命令的作用是运行测试并将输出(断言和失败)保存在名为result.xml的日志文件中。一切都很好

    但现在我需要测试站点中涉及flash的部分,我正在使用一个名为Arthropod的应用程序来捕获来自站点上flash组件的请求和响应


    我有没有办法让selenium捕捉该程序界面上出现的文本?

    我相信节肢动物是一种空气应用程序。如果它与浏览器关联,您可以尝试使用seleniumForAir进行测试


    你可能想看看。

    你想让Selenium在节肢动物上运行吗???@Maitreya我想,我的意思是,你可以使用Selenium从网页上抓取div的内容,我想抓取节肢动物用户界面的内容。就像上面显示的文字一样。@Maitreya甚至在节肢动物上有一个保存按钮,如果我能让Selenium或其他工具单击该按钮并在显示的对话框中按enter键,那就足够了。这个按钮将节肢动物屏幕的内容保存到一个html日志文件中。我最终通过AutoIt完成了这项工作。它让我想起了一个selenium IDE,但它不适用于桌面、浏览器或任何东西。