Skip to content

hjain-git/browserstack-WebRTC-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

                                      WebRTC Testing


This repository showcases automated testing of WebRTC-based web application on both Desktop and Mobile Browsers by executing the tests on Browserstack.

Repository setup

  • Clone the repository

  • Ensure you have the following dependencies installed on the machine

  • Java >= 8

  • Maven >= 3.1+

Maven:

mvn install -DskipTests

Browser combinations in this repository

This repository showcases running of WebRTC based application on Browserstack on different browser combinations based on user selection as follows:

User Selection Description
1 Run WebRTC test on Google Chrome and Firefox Browser
2 Run WebRTC test on Edge and Safari Browser
3 Run WebRTC test on Android and iOS

BrowserStack

BrowserStack provides instant access to 2,000+ real mobile devices and browsers on a highly reliable cloud infrastructure that effortlessly scales as testing needs grow.

Prerequisites

  • Create a new BrowserStack account or use an existing one.

  • Identify your BrowserStack username and access key from the BrowserStack Automate Dashboard and export them as environment variables using the below commands.

  • For *nix based and Mac machines:

    export BROWSERSTACK_USERNAME=<browserstack-username> &&
    export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
  • For Windows:

    • For CMD:

      set BROWSERSTACK_USERNAME=<browserstack-username>
      set BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
    • For Powershell(Setting Environment Variable Persistently):

      [System.Environment]::SetEnvironmentVariable('BROWSERSTACK_USERNAME','<browserstack-username>')
      [System.Environment]::SetEnvironmentVariable('BROWSERSTACK_ACCESS_KEY','<browserstack-access-key>')

    Alternatively, you can also hardcode USERNAME and ACCESS_KEY in the WebRTCTestRunner.java file.

Running Your Tests

  • To run WebRTC test on Browserstack, open terminal/CMD/Powershell and type:
    mvn exec:java
  • You would be prompted to enter input(1,2,3) which would execute the WebRTC test on Browser combinations as mentioned here
  • Login to Browserstack and you can see your tests successfully executed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages