Twilio - Automated testing on VMWare

Nick

We are developing a Twilio based web application (AngularJS and Microsoft WebAPI) and have assembled a number of automated tests using SpecFlow, Selenium Webdriver and Chromedriver. We use the Programmable Voice component to make calls and the automated tests make calls to test numbers. The tests all run fine on developer machines, but when deployed on Windows 2012R2 Datacenter virtual machines running on VMWare VSphere/ESXi 6 hosts they fail as Chromedriver cannot find a recording device so therefore won't establish the WebRTC connection to Twilio. The hosts that we use do not have a sound card and therefore show no audio devices available to the VMs. I believe we can add a USB sound card to the host and share it with one VM, but this is a clunky solution that renders VMWare DRS a bit useless and we have several VMs that we'd like to run these tests on. I'm hoping I'm not the first person to try to use automated testing with Twilio so was looking for how others had implemented it in a virtual/cloud environment? I have raised a support case with Twilio but they had no ideas.

Nick

Devin Rader provided the answer. blog.andyet.com/2014/09/29/testing-webrtc-applications explains how to add a switch to Chrome (--use-fake-device-for-media-stream) that fakes a microphone and means that you can make a WebRTC connection in Chrome without a microphone device. There is also a switch for Firefox that I assume works but I haven't tried it. The switch also works with Chromedriver and I have successfully run Selenium tests using Chromedriver on a Windows 2012R2 server VM with no sound card. Thanks Devin.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

`go test` file modification monitoring for automated testing

From Dev

A unique Twilio testing predicament

From Dev

Testing twilio api

From Dev

jQuery terminal, Ember, QUnit - Automated testing issue

From Dev

Flex mobile automated testing

From Dev

Best practice for organizing automated testing?

From Dev

Specflow / automated testing - making directories inaccessible

From Dev

Automated testing of webrtc application?

From Dev

Automated testing with Cucumber on BrowserStack of site behind VPN

From Dev

Using TFS for automated testing

From Dev

Using Mac Hotspot for automated testing of mobile devices

From Dev

protractor 3.0.0 and cucumber automated testing

From Dev

Automated Testing Courses Online

From Dev

Appium vs Espresso for automated testing framework

From Dev

Android Espresso predicates in automated testing?

From Dev

Magento 2 automated testing

From Dev

Implementation of automated workflow testing

From Dev

Automated web testing using selenium help needed

From Dev

Automated testing of domain classes (Not unit testing)

From Dev

Vbscript SQL select table generator for automated testing

From Dev

jQuery terminal, Ember, QUnit - Automated testing issue

From Dev

Is automated testing possible for Drupal sites ( TestNG and Selenium)?

From Dev

Automated testing of file generation and validation of file contents

From Dev

Automated testing an Orchestration

From Dev

Automated Testing using MS Coded UI

From Dev

Automated testing with Cucumber on BrowserStack of site behind VPN

From Dev

Android Espresso predicates in automated testing?

From Dev

Magento 2 automated testing

From Dev

Automated Testing in MVC5

Related Related

HotTag

Archive