Node.js Selenium和节点重放
您好,我在将node replay连接到selenium(我正在为angularjs应用程序运行量角器测试)时遇到问题 我的测试使用grunt运行: 呼噜量角器 它们工作得很好 但现在我已经安装了node replay,并在测试文件中添加了以下行: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
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)