Support & information center

BigBlueButton sample test script

BigBlueButton is an open source teaching platform.

If you are using it, then the script below is a great starting point.


Create an account

To use this test script, you first need to have an account on the BigBlueButton demo:

  1. Head to
  2. Click the Sign up button on the top menu bar
  3. Once you create an account, you will be directed to your dashboard
  4. Find the room URL – you will need it for the next step

Update the test script

In testRTC, create a new test script:

  1. Copy the code from the bottom of this article to your test script
  2. Decide the number of probes you want to use
    1. 2 Concurrent probes will be good starting point
    2. Set the Session size to the number of concurrent probes for this sample
  3. Copy the Room URL from your BigBlueButton demo page to the Service URL of the script

Test execution

Follow these steps:

  1. Click on the big blue Start button on your BigBlueButton demo page (pun intended)
  2. Once you enter the room (a few more clicks to setup the session), click on the Run button on your testRTC test script

Test script code

var probeType = Number(process.env.RTC_IN_SESSION_ID);
var sec = 1000;

var userName = "test" + probeType;

// Join the room
    .rtcProgress('open ' + process.env.RTC_SERVICE_URL)
    .waitForElementVisible('input[placeholder="Enter your name!"]', 60 * sec)
    .pause(300) //wait for page render 
    .setValue('input[placeholder="Enter your name!"]', userName)

    .waitForElementVisible('button[aria-label="Microphone"]', 60 * sec)
    .pause(300) //wait for page render 

    .waitForElementVisible('button[aria-label="Echo is audible"]', 60 * sec)
    .pause(300) //wait for page render 
    .click('button[aria-label="Echo is audible"]')

    .waitForElementVisible('button[aria-label="Share webcam"]', 60 * sec)
    .pause(300) //wait for page render 
    .click('button[aria-label="Share webcam"]')

    .waitForElementVisible('button[aria-label="Start sharing"]', 60 * sec)
    .pause(300) //wait for page render 
    .click('button[aria-label="Start sharing"]')

    .waitForElementVisible('button[aria-label="Hide presentation"]', 60 * sec)
    .pause(300) //wait for page render 
    .click('button[aria-label="Hide presentation"]')

    .pause(60 * sec)
    .rtcScreenshot("in call")
    .pause(60 * sec);Code language: JavaScript (javascript)

Was this article helpful?

Related Articles