Hi,
I am thinking of automating web page test for my site. Just like selenium API are there APIs in web page test, which can be used to automate test locations, browsers or advanced settings.
There are a few approaches you can take:
-
speedcurve.com is a commercial service that’s currently in beta to monitor site performance
-
webpagetest has an REST(ish) API (https://sites.google.com/a/webpagetest.org/docs/advanced-features/webpagetest-restful-apis) that you can use to drive the testing and there are tools that use it such as
- WPT Monitor
- Marcel Duran’s node driver - GitHub - WebPageTest/webpagetest-api: WebPageTest API wrapper for NodeJS
- HTTP Archive
-
There are also python tool to drive the API the repo
I’d probably start playing with Marcel’s stuff first
You can use WPT monitor.
I forked a version here GitHub - jpvincent/WPT-server: Fork of the WebPageTest private instance server, with more options
With that you can trigger at regular time tests, see results on graphic, have alerts…
for scripting capabilities (for each test), see https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/scripting
Thanks Andy and Vincent for suggestions.
I have started exploring Marcel’s API.
Hey braincracking, nice to keep work up on WPTMonitor, it is a bit of a pity that it is otherwise abandoned.
However as I am desiring to run the official WPT releases and add WPT Monitor, it is a little cumbersome to have to download the entire repo just for one subdirectory. I will have a go with it anyhow