Selenium 在运行示例量角器perf conf.js后,无法确定度量的显示或存储位置
我不熟悉量角器性能。我已经安装了它,并尝试执行以下示例conf.js和example.js conf.js:- example.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(
当我运行量角器perf conf.js时。它运行良好,我在命令提示符中看到它通过了。但是如何以及在何处查看指标???为了查看指标,我们需要运行以下代码行,将指标记录在控制台上:
if (perfRunner.isEnabled) {
expect(perfRunner.getStats('meanFrameTime')).toBeLessThan(60);
perfRunner.getStats().then(console.log.bind(console)); // logs the Metrics
}