Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.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 在运行示例量角器perf conf.js后,无法确定度量的显示或存储位置_Selenium_Protractor_Performance Testing - Fatal编程技术网

Selenium 在运行示例量角器perf conf.js后,无法确定度量的显示或存储位置

Selenium 在运行示例量角器perf conf.js后,无法确定度量的显示或存储位置,selenium,protractor,performance-testing,Selenium,Protractor,Performance Testing,我不熟悉量角器性能。我已经安装了它,并尝试执行以下示例conf.js和example.js conf.js:- example.js:- 当我运行量角器perf conf.js时。它运行良好,我在命令提示符中看到它通过了。但是如何以及在何处查看指标???为了查看指标,我们需要运行以下代码行,将指标记录在控制台上: if (perfRunner.isEnabled) { expect(perfRunner.getStats('meanFrameTime')).toBeLessThan(

我不熟悉量角器性能。我已经安装了它,并尝试执行以下示例conf.js和example.js

conf.js:-

example.js:-


当我运行量角器perf conf.js时。它运行良好,我在命令提示符中看到它通过了。但是如何以及在何处查看指标???

为了查看指标,我们需要运行以下代码行,将指标记录在控制台上:

if (perfRunner.isEnabled) {  
    expect(perfRunner.getStats('meanFrameTime')).toBeLessThan(60);
    perfRunner.getStats().then(console.log.bind(console)); // logs the Metrics
}