我们正在使用 WebdriverIO 来计算我们的门户的性能指标,但是在调用 browser.getMetrics() 时会抛出以下错误:
LHError: NO_TTI_CPU_IDLE_PERIOD
at Function.findOverlappingQuietPeriods (C:\Users\sdas\OneDrive - ALLEGIS GROUP\Desktop\connected-tlp\allegis-automation-tlp-sfjs\node_modules\lighthouse\lighthouse-core\computed\metrics\interactive.js:136:11)
at Function.computeObservedMetric (C:\Users\sdas\OneDrive - ALLEGIS GROUP\Desktop\connected-tlp\allegis-automation-tlp-sfjs\node_modules\lighthouse\lighthouse-core\computed\metrics\interactive.js:165:41)
at Function.compute_ (C:\Users\sdas\OneDrive - ALLEGIS GROUP\Desktop\connected-tlp\allegis-automation-tlp-sfjs\node_modules\lighthouse\lighthouse-core\computed\metrics\metric.js:65:21)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Browser.runCommandWithHooks (C:\Users\sdas\OneDrive - ALLEGIS GROUP\Desktop\connected-tlp\allegis-automation-tlp-sfjs\node_modules@wdio\sync\build\wrapCommand.js:65:24)
at Browser.getMetrics (C:\Users\sdas\OneDrive - ALLEGIS GROUP\Desktop\connected-tlp\allegis-automation-tlp-sfjs\node_modules@wdio\sync\build\wrapCommand.js:44:44)
at Browser.next [as getMetrics] (C:\Users\sdas\OneDrive - ALLEGIS GROUP\Desktop\connected-tlp\allegis-automation-tlp-sfjs\node_modules@wdio\utils\build\monad.js:95:33)
at module.exports (C:\Users\sdas\OneDrive - ALLEGIS GROUP\Desktop\connected-tlp\allegis-automation-tlp-sfjs\utils\index.js:15:56)
at Context.<anonymous> (C:\Users\sdas\OneDrive - ALLEGIS GROUP\Desktop\connected-tlp\allegis-automation-tlp-sfjs\tests\specs\qualified-req-contact.test.js:31:9)
at Context.executeSync (C:\Users\sdas\OneDrive - ALLEGIS GROUP\Desktop\connected-tlp\allegis-automation-tlp-sfjs\node_modules@wdio\sync\build\index.js:25:22)
at C:\Users\sdas\OneDrive - ALLEGIS GROUP\Desktop\connected-tlp\allegis-automation-tlp-sfjs\node_modules@wdio\sync\build\index.js:46:68
我们尝试了很多选择,但这个错误一直在出现。请提出解决此问题的指针。