stream-video-buddy is a CLI tool for automated testing of Stream Video Front-End SDKs. It acts as a participant in a video call and performs a series of actions to emulate a real user.
Even though the tool's primary purpose is automated testing, it can be pretty helpful for debugging and manual testing as well.
npm install -g "https://github.com/GetStream/stream-video-buddy#1.8.0"By default, the tool uses https://getstream.io/video/demos as the test app URL. You can override it in two ways:
-
Setting the
STREAM_SDK_TEST_APPenvironment variable:export STREAM_SDK_TEST_APP="https://your-custom-app.com"
-
Using the
--appcommand-line argument (overrides the environment variable)
stream-video-buddy can be executed in two ways
-
From the command line:
stream-video-buddy join --call-id test123 --user-count 2 --duration 10 stream-video-buddy ring --user-id martin --duration 10
-
Through the local web server:
-
Run the server instance:
stream-video-buddy server --port 4567
-
Execute
stream-video-buddy joinorstream-video-buddy ringcommand via the POST request, e.g.:curl "http://localhost:4567/join?async=true" \ -X POST \ -H "Content-Type: application/json" \ -d '{"call-id": "test123", "user-count": 2, "duration": 10}' curl "http://localhost:4567/ring?async=true" \ -X POST \ -H "Content-Type: application/json" \ -d '{"user-id": "martin", "duration": 10}'
-
See index.js for the full list of commands and their options.
Run the following commands to release a new version of stream-video-buddy:
bundle install
bundle exec fastlane release version:"${VERSION_NUMBER}"