This lab runs a load generation script for TicketMonster. The script simulates real user actions by utilizing the PhantomJS and CasperJS framework. While PhantomJS is a headless web browser scriptable with JavaScript, CasperJS allows you to build full navigation scenarios.
Install the following tool(s):
-
Switch to the
load-generation
directory. -
Build image using Docker.
docker build -t <your dockerhub account>/loadgeneration:latest . docker images
-
Usage of load generation script:
usage: loadgeneration.sh <target URL> <duration in minutes> <[clients/minute] | [empty = random number of clients (1..10) / minute] >
-
Start script using the container.
docker run -d --rm <imageID> /bin/bash loadgeneration.sh <your-front-end-url> 10 15
Previous Step: Extract UI From Monolith