Welcome!

@ThingsExpo Authors: Liz McMillan, Elizabeth White, Pat Romanski, William Schmarzo, Dean Madison

Related Topics: @ThingsExpo, WebRTC Summit

@ThingsExpo: Article

WebRTC's Impact on Testing By @SmartBear | @ThingsExpo [#IoT #WebRTC]

Web Real Time Communications (WebRTC) is changing the way we have traditionally communicated and collaborated

By Nikhil Kaul

Web Real Time Communications (WebRTC) is changing the way we have traditionally communicated and collaborated. To be specific, the technology allows developers to embed voice, data, instant messaging, and video into web browsers, thereby providing easier and far efficient ways to communicate than Voice Over Internet Protocol (VOIP) services such as Skype, WhatsApp, and WebEx.

WebRTC has come a long way since its inception in May 2011. Right from achieving interoperability between Chrome and Firefox browsers in 2013 to rolling out support for Android mobile, WebRTC has continued to garner more attention every year. And the market momentum is expected to continue growing. Infact, a recent Analysts Mason report predicts that with Apple and Microsoft incorporating WebRTC in their browsers, there might be 7 billion devices supporting WebRTC by 2020. With that strong growth rate, it is imperative for testers to have a strategy in place in order to test WebRTC applications efficiently. But before we venture down that path, it is critical to understand what's driving this growth and how testing a WebRTC is different from any other web applications.

WebRTC-enabled endpoints by device type, worldwide, 2013-2020 [Source: Analysys Mason, 2014]

WebRTC-enabled endpoints by device type, worldwide, 2013-2020 [Source: Analysys Mason, 2014]

Why WebRTC is gaining attraction? And why should you care??

  • WebRTC gives web developers an access to Voice over Internet market: WebRTC opens up the VOIP market to web developers. Web developers no longer need proprietary technology to build solutions for the VOIP market. With WebRTC being open source and free to use, the barriers of entry for the VOIP market have been drastically reduced. This means we would see more developers using WebRTC to build real-time communication apps, therefore testers need to be ready.
  • WebRTC makes it extremely easy for end-users to communicate: From the demand side perspective, there seems to be no issue as well. WebRTC makes the process of communicating much more seamless. Unlike VOIP services where consumers need to download and regularly update applications such as Skype or WhatsApp, WebRTC allows users to make calls just through a web page. The process is thereby friction-less, eliminating hurdles for user adoption.
  • Increased number of use cases for WebRTC are emerging: WebRTC is more than real-time audio and video. In fact, existing use cases include peer-to-peer speedier file transfer through RTCDataChannel JavaScript APIS of WebRTC.

Even for audio and video applications, a key advantage of WebRTC is that it allows developers to create more engaging and immersive real-time communications than existing VOIP services such as skype and what's app. Take the example of ustyme, which allows end users to play games and read books while interacting with each other on video.  Moreover, real-time video capabilities of WebRTC are now being integrated into a wide range of verticals, including business, medical, and education.

  • Browser support for WebRTC continues to grow: Increased numbers of browsers are incorporating WebRTC. WebRTC infact now comes preinstalled with Chrome and Mozilla. Additionally, as WebRTC makes strides with standardization and as market continues to mature, Microsoft and Apple are expected to roll out support for WebRTC.

How WebRTC is different than testing current web applications?

  • Growing Role of APIs in Web Apps: Web RTC applications are predominantly being driven by APIs. Hence, while testing a WebRTC application,youc an no longer just base your test cases on the Graphical User Interface (GUI). As a tester, one needs to factor in how request and responses of the API impact the GUI.

Three specific JavaScript APIs dictate the information present on a WebRTC GUI. These include getUserMedia, RTCPeerConnection, and RTCDataChannel. The getUserMedia  API allows web browser an access to phones camera, microphone, or screen.   RTCPeerConnection on the other hand helps determine signaling state of the connection.  And finally, RTCDataChannel API supports sending data whether audio and video across browsers.  As you can see, test cases on the GUI would be governed by these three APIs.

How to test WebRTC applications?

In order to test a WebRTC application effectively, an integrated GUI and API testing solution is required. Biasing your tests just on the GUI is bound to fail as the video, file, or even audio returned by the API call is bound to change based on the request and response. For instance, if you want to check whether video stream works properly on two browsers, the testing steps would require testing both the GUI and API layer. Some of these steps could be:

  1. Allow automated testing solution to gain an access to the camera for video stream
  • Testers would typically use the getUserMedia API for this action
  1. Start the two browsers and record actions using record and replay action
  1. Wait for the two browsers to get connected using the RTCPeerConnection API
  1. Check if connection state has established using the event iceconnectionstatechanged
  1. Once connection is established, check if the UI of browsers display the video stream properly

As seen in the above example, writing tests just on the GUI could be really brittle, especially when the GUI information changes based on getUserMedia API response.  As a tester, you thus need to factor in response of the APIs while designing GUI tests for WebRTC apps.

As it stands, WebRTC is bound to grow. Testers therefore need to be better prepared to test these applications. Proactively incorporating practices that help test both the GUI and API layer could be critical to rolling out these applications bug-free to the marketplace.

More Stories By SmartBear Blog

As the leader in software quality tools for the connected world, SmartBear supports more than two million software professionals and over 25,000 organizations in 90 countries that use its products to build and deliver the world’s greatest applications. With today’s applications deploying on mobile, Web, desktop, Internet of Things (IoT) or even embedded computing platforms, the connected nature of these applications through public and private APIs presents a unique set of challenges for developers, testers and operations teams. SmartBear's software quality tools assist with code review, functional and load testing, API readiness as well as performance monitoring of these modern applications.

@ThingsExpo Stories
In his session at @ThingsExpo, Greg Gorman is the Director, IoT Developer Ecosystem, Watson IoT, will provide a short tutorial on Node-RED, a Node.js-based programming tool for wiring together hardware devices, APIs and online services in new and interesting ways. It provides a browser-based editor that makes it easy to wire together flows using a wide range of nodes in the palette that can be deployed to its runtime in a single-click. There is a large library of contributed nodes that help so...
SYS-CON Events announced today that Daiya Industry will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Daiya Industry specializes in orthotic support systems and assistive devices with pneumatic artificial muscles in order to contribute to an extended healthy life expectancy. For more information, please visit https://www.daiyak...
What is the best strategy for selecting the right offshore company for your business? In his session at 21st Cloud Expo, Alan Winters, U.S. Head of Business Development at MobiDev, will discuss the things to look for - positive and negative - in evaluating your options. He will also discuss how to maximize productivity with your offshore developers. Before you start your search, clearly understand your business needs and how that impacts software choices.
Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant th...
SYS-CON Events announced today that SIGMA Corporation will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. uLaser flow inspection device from the Japanese top share to Global Standard! Then, make the best use of data to flip to next page. For more information, visit http://www.sigma-k.co.jp/en/.
SYS-CON Events announced today that Yuasa System will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Yuasa System is introducing a multi-purpose endurance testing system for flexible displays, OLED devices, flexible substrates, flat cables, and films in smartphones, wearables, automobiles, and healthcare.
SYS-CON Events announced today that Taica will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Taica manufacturers Alpha-GEL brand silicone components and materials, which maintain outstanding performance over a wide temperature range -40C to +200C. For more information, visit http://www.taica.co.jp/english/.
SYS-CON Events announced today that B2Cloud will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. B2Cloud specializes in IoT devices for preventive and predictive maintenance in any kind of equipment retrieving data like Energy consumption, working time, temperature, humidity, pressure, etc.
SYS-CON Events announced today that NetApp has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. NetApp is the data authority for hybrid cloud. NetApp provides a full range of hybrid cloud data services that simplify management of applications and data across cloud and on-premises environments to accelerate digital transformation. Together with their partners, NetApp em...
SYS-CON Events announced today that Ryobi Systems will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ryobi Systems Co., Ltd., as an information service company, specialized in business support for local governments and medical industry. We are challenging to achive the precision farming with AI. For more information, visit http:...
SYS-CON Events announced today that mruby Forum will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. mruby is the lightweight implementation of the Ruby language. We introduce mruby and the mruby IoT framework that enhances development productivity. For more information, visit http://forum.mruby.org/.
Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
SYS-CON Events announced today that Mobile Create USA will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Mobile Create USA Inc. is an MVNO-based business model that uses portable communication devices and cellular-based infrastructure in the development, sales, operation and mobile communications systems incorporating GPS capabi...
SYS-CON Events announced today that Enroute Lab will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Enroute Lab is an industrial design, research and development company of unmanned robotic vehicle system. For more information, please visit http://elab.co.jp/.
Real IoT production deployments running at scale are collecting sensor data from hundreds / thousands / millions of devices. The goal is to take business-critical actions on the real-time data and find insights from stored datasets. In his session at @ThingsExpo, John Walicki, Watson IoT Developer Advocate at IBM Cloud, will provide a fast-paced developer journey that follows the IoT sensor data from generation, to edge gateway, to edge analytics, to encryption, to the IBM Bluemix cloud, to Wa...
SYS-CON Events announced today that Nihon Micron will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Nihon Micron Co., Ltd. strives for technological innovation to establish high-density, high-precision processing technology for providing printed circuit board and metal mount RFID tags used for communication devices. For more inf...
SYS-CON Events announced today that Suzuki Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Suzuki Inc. is a semiconductor-related business, including sales of consuming parts, parts repair, and maintenance for semiconductor manufacturing machines, etc. It is also a health care business providing experimental research for...
SYS-CON Events announced today that N3N will exhibit at SYS-CON's @ThingsExpo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. N3N’s solutions increase the effectiveness of operations and control centers, increase the value of IoT investments, and facilitate real-time operational decision making. N3N enables operations teams with a four dimensional digital “big board” that consolidates real-time live video feeds alongside IoT sensor data a...
Mobile device usage has increased exponentially during the past several years, as consumers rely on handhelds for everything from news and weather to banking and purchases. What can we expect in the next few years? The way in which we interact with our devices will fundamentally change, as businesses leverage Artificial Intelligence. We already see this taking shape as businesses leverage AI for cost savings and customer responsiveness. This trend will continue, as AI is used for more sophistica...
SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of...