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.6.31"
export STREAM_SDK_TEST_APP="https://getstream.io/video/demos"
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 join
orstream-video-buddy ring
command 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}"