Chatmosphere / Playwave

Load Testing Script for Chatmosphere / Jitsi / WebRTC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chatmosphere Playwright Container

A fist setup for Loadtesting Chatmosphere / Jitsi / WebRTC Setups based on Playwright and it's loadtest setup made by svenkatreddy.

Overview

tbd.

Run container

Simple run

docker run --name nameOfYourContainer -e TARGET_URL=https://yourTargetUrl -e NUMBER_OF_USERS=3 nameOfImage

Run with Playwright-Scripts mounted

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

Run with output-folder mounted

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

Run with media files

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.

  1. Download FourPeople_1280x720_60.y4m from https://www.xiph.org/video/ and store it locally (e.g. /local/assets).

  2. Adjust sample.js
    Uncomment '--use-file-for-fake-video-capture=assets/FourPeople_1280x720_60.y4m',

  3. 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

Directories within Container

Folder Description
/app Working Directory
/app/assets Media Files
/app/plays Playwright Files
/app/output Output created by scripts should be placed here.

About

Load Testing Script for Chatmosphere / Jitsi / WebRTC


Languages

Language:JavaScript 82.1%Language:Dockerfile 17.9%