A fist setup for Loadtesting Chatmosphere / Jitsi / WebRTC Setups based on Playwright and it's loadtest setup made by svenkatreddy.
tbd.
docker run --name nameOfYourContainer -e TARGET_URL=https://yourTargetUrl -e NUMBER_OF_USERS=3 nameOfImage
You can run the container with a volume mounted at /app/plays to inject playwright-scripts to your docker container.
docker run -v /local/playscripts:/app/plays chatmosphere/playwright:latest
By default, the container starts a script at /app/plays/playwave.js. If your start-script name is different, you need to set the start-script via the ENV Variable TEST_NAME:
docker run -e TEST_NAME=mystartscript.js -v /local/playscripts:/app/plays chatmosphere/playwright:latest
You can run the container with a volume mounted at /app/output to receive outputs created by scripts within your docker host.
docker run -v /local/output:/app/output chatmosphere/playwright:latest
You can run tests using real video files. Video files need to be mounted into the container and referenced within the playwright launchoptions.
As an example, the following setting runs the tests with Media files mounted within from a local asset folder into /app/assets.
-
Download FourPeople_1280x720_60.y4m from https://www.xiph.org/video/ and store it locally (e.g. /local/assets).
-
Adjust sample.js
Uncomment'--use-file-for-fake-video-capture=assets/FourPeople_1280x720_60.y4m',
-
Run with scripts-folder and assets-folder mounted
docker run -v /local/playscripts:/app/plays -v /local/assets:/app/assets chatmosphere/playwright:latest
thx a lot to xiph.org for making these files availabe <3
Folder | Description |
---|---|
/app | Working Directory |
/app/assets | Media Files |
/app/plays | Playwright Files |
/app/output | Output created by scripts should be placed here. |