VMware Cloud Community
amarbl
Contributor
Contributor

Twilio based web application - Automated testing

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.

Tags (2)
1 Reply
Nick_Andreev
Expert
Expert

Another option is to buy PCIe sound cards and use VMDirectPath I/O to pass-through them to VMs. But it will be one VM per host only. I don't believe sound cards that support SR-IOV exist.

---
If you found my answers helpful please consider marking them as helpful or correct.
VCIX-DCV, VCIX-NV, VCAP-CMA | vExpert '16, '17, '18
Blog: http://niktips.wordpress.com | Twitter: @nick_andreev_au