go-webpagetest is a simple library to interface with the WebPageTest RestAPI
-
- create tests and submit them to a webpagetest instance
- poll tests as they run and have the results automatically unmarshalled to the Test struct
- retrieve historic test results from the API by Request ID
-
- list available test locations
- get the default location tests are run
You can install this library with go get
go get github.com/ajcrowe/go-webpagetest
Then import
import (
"github.com/ajcrowe/go-webpagetest"
)
You can find some examples in the examples
folder for usage
A number of variables were renamed to correct casing such as Id -> ID
and Url -> URL
if you want to continuing using these please see the old-variable-name
branch