Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.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
Node.js Selenium和节点重放_Node.js_Angularjs_Selenium_Protractor_Angularjs E2e - Fatal编程技术网

Node.js Selenium和节点重放

Node.js Selenium和节点重放,node.js,angularjs,selenium,protractor,angularjs-e2e,Node.js,Angularjs,Selenium,Protractor,Angularjs E2e,您好,我在将node replay连接到selenium(我正在为angularjs应用程序运行量角器测试)时遇到问题 我的测试使用grunt运行: 呼噜量角器 它们工作得很好 但现在我已经安装了node replay,并在测试文件中添加了以下行: var Replay = require('replay'); Replay.localhost('127.0.0.1:9000/'); 当我尝试在记录模式下运行节点重播时,我的所有测试都失败了 REPLAY=record grunt protr

您好,我在将node replay连接到selenium(我正在为angularjs应用程序运行量角器测试)时遇到问题

我的测试使用grunt运行: 呼噜量角器

它们工作得很好

但现在我已经安装了node replay,并在测试文件中添加了以下行:

var Replay = require('replay');
Replay.localhost('127.0.0.1:9000/');
当我尝试在记录模式下运行节点重播时,我的所有测试都失败了

 REPLAY=record grunt protractor

即使我在“127.0.0.1:9000/”上本地运行测试,我是否必须在量角器配置文件中添加有关节点重播的内容?

看起来127.0.0.1与localhost一样,这意味着节点重播将代理所有请求,而不记录它们。(类似于运行replay=CHEAT)