• Skip to primary navigation
  • Skip to main content
  • Skip to footer
Cyara

Cyara

Cyara Customer Experience Assurance Platform

  • LOGIN
  • CONTACT US
  • WATCH A DEMO
  • PRODUCTS & SERVICES
    • AI-Powered CX Assurance Platform
      • Call Explorer
      • Call Routing & Agent Desktop Testing
      • Cloud Contact Center Monitoring
      • Conversational AI Testing
      • Integrations
      • Omnichannel Testing
      • Voice Quality Testing
    • Products
      • AI Trust
      • Botium
      • CentraCX
      • Cloud Migration Assurance
      • Cruncher
      • Number Trust
      • Pulse
      • Pulse 360
      • ResolveAX
      • testRTC
      • Velocity
      • Voice Assure
    • Services
      • Cyara Academy
      • Consulting
      • Customer Success
      • Support
  • SOLUTIONS
    • IVR Testing
      • IVR Discovery
      • IVR Testing
    • Omnichannel Testing
      • Chatbot Testing & Optimization
      • Cloud Contact Center
      • Contact Center Number Test Types
      • Contact Center Testing
      • Email & SMS Testing
      • Omnichannel Testing
      • Voice of Customer
      • Web Interaction Testing
    • Software Testing & Monitoring
      • Continuous Testing Solutions
      • Customer Experience Monitoring
      • DevOps for Customer Experience
      • Functional Testing
      • Incident Management
      • Load/Performance Testing
      • Regression Testing
    • Voice Quality Testing
      • Agent Desktop Testing
      • Outbound Call Testing
      • Voice Biometrics Testing
      • Voice Quality Testing
  • RESOURCES
    • Blog
    • Events
    • Customer Success Showcase
    • Resources
    • Webinars
  • ABOUT
    • CEO’s Desk
    • Leadership
    • Press Releases
    • Media Coverage
    • Partners
    • Awards
    • About Cyara
    • Careers
    • Employee Profiles
    • Legal

Blog / CX Assurance

February 24, 2016

How to Make Sure You Have WebRTC Incoming Audio Using testRTC

Tsahi Levent-Levi

Tsahi Levent-Levi, Senior Director, Product

This article was originally published on testRTC’s blog, prior to Cyara’s acquisition of Spearline and testRTC. Learn more about Cyara + Spearline.


One man shouting, the other having trouble hearing

I hear this one far too many times:

How can I make sure there’s incoming audio? We had this issue a few weeks/months ago, where sessions got connected in our WebRTC service, but there was no incoming audio. Can testRTC alert me of such a situation?

How to Check for WebRTC Incoming Audio

Looking for your WebRTC incoming audio? testRTC can do just that for you.

Learn More about Cyara testRTC

There are two things that our customers are looking for in such cases:

  1. Making sure that the exact channels they expected to open in the call actually opened (here the idea is no more and no less)
  2. Validating there’s media being sent on these channels at all

Some customers even have more specific expectations – in the domain of the packet loss or latency of these channels.

This is one of the reasons why we’ve added the test expectations capability to testRTC. What this means is that you can indicate inside your test script what you expect to happen – with a focus on media channels and media – and if these expectations aren’t met, the test will either fail or just have an added warning on it.

Here’s how it works. The code below is a simple test script for Google’s AppRTC that I’ve written for the occasion:

// *** My expectations ***
client
    .rtcSetTestExpectation("audio.in == 1", "No incoming audio channel", "error")
    .rtcSetTestExpectation("video.in == 1", "No incoming video channel", "error")
    .rtcSetTestExpectation("audio.in.bitrate > 0", "No media on audio channel", "error")
    .rtcSetTestExpectation("video.in.bitrate > 0", "No media on video channel", "error");

// *** My actual test script
client
    .url("https://appr.tc/r/testRTCexpectations-5")
    .waitForElementVisible('body', 5000)
    .pause(500)
    .click('#confirm-join-button')

    .pause(30000);

It is nothing fancy. It just gets the user into a predetermined URL (testRTCexpectations) and gives it 30 seconds to run.

We run this on two agents (=two browsers) and you get a call. That call should have two incoming and two channels (one video and one voice in each direction).

To make sure this really happens, I added those first four lines with rtcSetTestExpectation() – they indicate that I want to fail the test if I don’t get these incoming channels with media on them.

Here’s how a successful test will look like:

Perfect scoring. No warnings or errors. All channels are listed nicely in the test results.

And here what happened when I ran this test with only a single browser of testRTC – and join the same room with my own laptop with its camera disabled:

As you can see, the test failed and the reasons given were that there was no incoming video channel (or media on it).

You can see from the channels list at the bottom that there is no incoming channel, along with all the other channels and the information about them.

What Else Can I Do?

  • Use it on outgoing channels
  • Check other parameters such as packet loss
  • Place expectations on custom metrics and timers you use in the test
Learn More about Cyara testRTC

Read more about: Cyara testRTC, Tutorial / How-to Guide, Web Real-Time Communication (WebRTC), WebRTC Monitoring

Start the Conversation

Tell us what’s on your mind, and learn how Cyara’s AI-led CX transformation can help you delight your customers.

Contact Us

Related Posts

qualityRTC network quality score

January 23, 2025

Understanding Cyara’s qualityRTC Network Quality Score: Gain Key Insights into Voice and Network Performance

Cyara qualityRTC helps you overcome WebRTC issues with a wide range of tests. Regain control with our Network Quality Score.

Topics: Cyara testRTC, qualityRTC, Web Real-Time Communication (WebRTC), WebRTC Monitoring

watchRTC from Cyara

October 29, 2024

Empowering CCaaS Vendors with watchRTC: Enhancing Agent Performance Analytics

The rise of remote work has created several new challenges. Overcome WebRTC issues and assure agent performance with Cyara's watchRTC,

Topics: Agent Environment Monitoring, Contact Centers, watchRTC, Web Real-Time Communication (WebRTC), WebRTC Monitoring

Contact center agent

August 27, 2024

Overcoming WebRTC Quality Challenges in Contact Centers with qualityRTC

In our current age of remote work, it's more important than ever to assure your WebRTC performance. Learn how Cyara qualityRTC can help.

Topics: Customer Experience (CX), qualityRTC, Web Real-Time Communication (WebRTC), WebRTC Monitoring

Footer

Cyara logo
  • LinkedIn
  • Twitter
  • YouTube

Copyright © 2006–2025 Cyara® Inc. The Cyara logo, names and marks associated with Cyara’s products and services are trademarks of Cyara. All rights reserved. Privacy Statement  Cookie Settings