我正在浏览 YSlow 官方文档,我对 Jenkins 集成部分有点困惑
http://built-url-here
是您项目的可访问的构建页面 url
因为我想设置它可以对我网站的所有页面(或任意数量的页面)进行速度测试?
这是否http://built-url-here
意味着网址列表?或者是什么?我如何定义它?我如何设置只是为了测试我的网站的几个链接?
文档在这里-> http://yslow.org/phantomjs/
非常感谢。
http://built-url-here
是一个可访问的构建页面 url 端点,这意味着如果您正在测试多个页面,则必须多次运行 yslow for phantomjs 命令行,将结果输出到不同的文件中,例如:
phantomjs yslow.js -i grade -threshold "B" -f junit http://staging/page1 > yslow1.xml
phantomjs yslow.js -i grade -threshold "B" -f junit http://staging/page2 > yslow2.xml
phantomjs yslow.js -i grade -threshold "B" -f junit http://staging/page3 > yslow3.xml
然后设置 Jenkins 输出报告以检查 *.xml