文件名称:go-webpagetest:WebPagetest API的包装
文件大小:47KB
文件格式:ZIP
更新时间:2024-05-29 22:45:58
go cli api-wrapper webpagetest Go
网页测试 WebPagetest API和CLI的简单,可选包装器(主要是对包装器本身的测试) 用法 通过以下方式获取: go get -d -v github.com/olegfedoseev/go-webpagetest 比在你的代码中: import "github.com/olegfedoseev/go-webpagetest" wpt, err := webpagetest.NewClient("https://webpagetest.org") if err != nil { log.Fatalf("Failed to create client: %v", err) } result, err := wpt.RunTest(webpagetest.TestSettings{ URL: "https://google.com", Location:
【文件预览】:
go-webpagetest-master
----testdata()
--------TestResultPlrAsNumber.json(167KB)
--------TestResultPlrAsString.json(128KB)
----LICENSE(1KB)
----types.go(728B)
----locations.go(3KB)
----README.md(779B)
----testsettings.go(9KB)
----webpagetest.go(5KB)
----testers.go(6KB)
----result_test.go(525B)
----.gitignore(266B)
----cmd()
--------main.go(6KB)
----status.go(6KB)
----result.go(19KB)