A quick tool to create fake Element Call participants
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-03-03 13:23:48 +01:00
call.go call: properly handle missing context 2023-03-03 13:23:48 +01:00
go.mod general: initial commit 2023-03-02 14:13:04 +01:00
go.sum general: initial commit 2023-03-02 14:13:04 +01:00
main.go main: make headless a non-default value 2023-03-02 19:31:45 +01:00
README.md general: update README 2023-03-03 13:04:17 +01:00

Element Call Bots

Quick and dirty tool that emulates users joining the given Element Call URL by using the playwright-go framework for the end-to-end testing.

Usage

Install

Assuming that Go is installed on your system, download the repository and install playwright-go:

git clone git@github.com:vector-im/sfu-load-tester-go.git && go run github.com/playwright-community/playwright-go/cmd/playwright install --with-deps

Run

You can run it without any parameters to see the available options:

go run *.go

Example of usage:

go run *.go -call-url https://pr805--element-call.netlify.app/room/\#testcall:call.ems.host -num-bots 3 -headless

How Does It Work?

Currently, the tool works by assuming that there is a list of pre-registered bot users (hardcoded at the moment). Alternatively, we could register the users on the fly (initial version of this tool did so), but both things are subject to rate limitting and it seems like registering users on the fly requires much more time to really spawn bots.

There is a limit of max. 20 bots at the moment. It's unlikely that a regular user machine would be able to spawn more though.

This is in no way a tool that is ready for production usage.

Press CTRL+C to stop the tool after running.