Author: Diana Chajkovska
Release: 9th Jan, 2020
This is tool for testing websites using https://www.webpagetest.org/. After test you will have a directory with artifacts that can be analyse later. The directory contains artifacts like:
- report.html - this web page gives you some analytics about your website such as performance and accessibility; and you can get some advices in "best practicies" (generated by Lighthouse 5.6.0)
- screenshot.jpg - screenshot of the website when loading is finished
- video.mp4 - video of the loading
- waterfall.png - resource loading waterfall charts
You can run it in Docker on any machine, all you need is just to install Docker. If you don`t have it just follow the tutorial: https://docs.docker.com/install
docker build -t ${IMAGE_NAME} .
- run in directory with dockerfile
chmod +x script.sh
./script.sh ${IMAGE_NAME} $API_KEY $URL $USERNAME $PASS
You also can use Travis to make the docker image and push it to your DockerHub account. Just give the most important variables to the Travis when you will make a build. The list of the variables:
- API_KEY - to make this key just go to the -> https://www.webpagetest.org/getkey.php
- DOCKER_PASSWORD
- DOCKER_USERNAME
- URL - url of the site you want to test
If your site closed and you need to use username and password to enter it add this variables:
- USERNAME
- PASS