This sample test script is designed for testing the simulcast loopback page against medooze SFU.
Pre-requisite: Selenium Grid
To run this test you will need a Selenium Grid with the browsers to be tested. There is a sample Selenium grid under
localgrid/ which can help you to get started.
A sample config file is provided at
- Open URL https://d10.conf.meetecho.com/ietf104/echotest-cap.html?simulcast2=true&vcodec=vp8
- Check the published video
- Check received video (looped back) video
- GetStats on all the peerConnection
- Take a screenshot
Simucast check: To enable/disable this check, set
checkSimulcastin the config file to
false. For each of the 9 layers (3 FPS x 3 reesolution): click the button to set the resolution (SL2, SL1, SL0) and click the button to set the FPS (TL2, TL1, TL0), then check the received video resolution: if the sent video is 1280x720, the received resolution is expected to be respectively: SL2: 1280x720 SL1: 640x360 SL0: 320x180
Bitrate bug check:
There is a bug in Chrome when the bandwidth is limited where the lower bitrate exceeds the medium and/or high bitrate.
To enable/disable this test, set
bandwidthCheckDuration in the config file to a value > 0 (in seconds) or set it to 0 to disbale this check.
This step will compare the bitrate values every second for
bandwidthCheckDuration seconds of low, medium and high and increment two counters
nbMediumHigherThanHighwhenever low > medium or medium > high respectively.
Under the root directory:
mvn -DskipTests clean install
Under the KITE-Simulcast-Test/ folder, execute:
java -Dkite.firefox.profile=../third_party/ -cp ../KITE-Engine/target/kite-jar-with-dependencies.jar;../KITE-Common/target/kite-common-1.0-SNAPSHOT.jar;../KITE-Engine-IF/target/kite-if-1.0-SNAPSHOT.jar;../KITE-Engine/target/kite-engine-1.0-SNAPSHOT.jar;target/simulcast-test-1.0-SNAPSHOT.jar org.webrtc.kite.Engine configs/local.simulcast.config.json
Each will generate allure report found in
To run Allure:
allure serve kite-allure-reports