欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

电脑端自动测试工具

最编程 2024-02-23 21:36:10
...
Lighthouse是一个开源的自动化的分析移动端和PC端网页性能指标的工具,npm上的简介: Lighthouse analyzes web apps and web pages, collecting modern performance metrics and insights on developer best practices. Lighthouse有四种使用方法,chrome自带的,chrome插件,npm包,另外一种是用node,要敲代码。插件和node的就不去查了,另外两种已经很方便了。   chrome devtools: [图片] 可以选择Mobile移动端还是Desktop PC端,生成的报告: [图片] 用nmp也很简单,全局安装: npm install -g lighthouse   使用的时候: lighthouse --view --preset desk...... 查看更多