Welcome!

Mobile IoT Authors: Pat Romanski, Derek Weeks, Mark Herring, Elizabeth White, Liz McMillan

Related Topics: @DevOpsSummit, Mobile IoT

@DevOpsSummit: Article

Testing Tips For Today | @DevOpsSummit #DevOps #IoT #Microservices

HTML5 and CSS3 together were one of of the biggest transformations to happen to web development

Testing Tips For Today's Tech: HTML5, WebSockets, RTMP, Adaptive Bitrate Streaming

One of the most dangerous things that can happen to a development team is complacency. The modern world moves so fast, and new technologies are coming out all the time. If you stop innovating and stop adapting, you'll be sunk. It's critical for web developers to be continuously responding to the changes around them.

The web community is constantly churning out new technologies that make it easier to develop the applications that savvy users are demanding. It may be obvious, but new technologies often require new ways of thinking about testing - sometimes new tools, other times entirely new testing methods. You just can't rely on the same old same old when things change as much as the web does.

This means that you, as a performance tester, must constantly be preparing for the latest the web has to offer. We thought we'd provide some tips on how to conduct performance testing on newer technologies, so you can stay one step ahead of the curve.

HTML5 + CSS3
HTML5 and CSS3 together were one of of the biggest transformations to happen to web development in the past decade. With the introduction of these W3C specifications, finally a common standard for rich media and web interactivity was put in place that applied across all browsers on desktops, laptops, set-tops, and mobile devices.

Since most of what happens in an HTML5 application takes place on the client, much of the performance testing job comes in the form of end-user experience testing. You want to know that your client devices can handle all the processing involved in a high fidelity HTML5 app. For example, here's a processor-heavy client-side HTML5 app that you can use for benchmarking the client-side experience across different devices.

There are, however, some implications of HTML5 that do matter when viewed through the lens of server-side scalability and load testing. These are:

  • The complexity of the app. HTML5 apps are often very dynamic, so they don't necessarily all load at once. Make sure your test scenarios fetch all the necessary sub-components, are running correlated scripts, and are exercising AJAX calls appropriately. These will matter under load.
  • HTML5 also supports server-sent events, so you'll want an infrastructure that can support these events with a normalized method for receiving various types of push notifications and server-sent messages.
  • Finally, you'll want a good way to record traffic back and forth from the server and then replay those communications as a scalable series of simulated users, with the ability to insert randomized dummy data into each app instance. The richness of an HTML5 app can make these traffic patterns more complicated than a legacy app would typically be. You'll want the flexibility in your testing infrastructure and scenario design to fully exercise HTML5 as a realistic simulation of load.

Ultimately, HTML5 has new communication features that you need to accommodate and a higher degree of potential complexity in the apps that are built on the platform. But you'll still want to see all the performance metrics and insights that you do with classic HTML application performance tests.

WebSockets
WebSockets is actually part of the HTML5 specification, but nonetheless it deserves its own callout. WebSocket technology creates a persistent connection between the client and the server. That way a server can push info to a client without waiting to piggy-back on an incoming HTTP request.

As the web grew more and more interactive, companies started using browsers as a platform for low-latency and real-time apps, like running a game, or real-time communications, or notifications. However, since HTTP required every communication to start with a client request, this forced developers and toolkits to create workarounds that simulated server-pushed events, while still fitting in the request-response framework. These solutions worked well, but were inefficient.

With HTML5 and WebSockets, that process became highly efficient. So WebSockets became a great way to push information from the server to the client. However, because they are so speedy and don't require a new connection to be established any time information needs to be communicated in either direction, web developers often use WebSockets as a way of maintaining a fast channel between client and server, even for traditional request-response purposes.

When it comes to performance testing, the key to testing WebSockets is simulating the bi-directional nature of your app. Test scenarios aren't always one-way. They aren't always request-response. They aren't always server-pushed. Applications that employ WebSockets often contain a mix of communication patterns. To build your load test scenarios you'll want to record and playback WebSocket communications with your app to create realistic testing scenarios. You'll also need to handle messages pushed over WebSockets just like you would handle messages pushed using a traditional request-response, piggy-back architecture. Load test variables should include the time it takes to establish a WebSocket connection, as well as the time it takes to send a request over that connection. Finally don't forget to include tests for both text and binary data.

One more thing to keep in mind - a lot of tools designed to test WebSockets are only built to handle push notifications, but the way modern apps are developed, a lot of request-response apps leverage WebSockets anyway. Make sure your load testing tool can deal with both communication protocols.

If your application doesn't take advantage of WebSockets, and if you care about performance, consider checking the technology out. WebSockets are a great way to boost your interactive applications.

Real-Time Messaging Protocol (RTMP)
RTMP was originally developed for streaming audio, video, and data over the Internet, between a server and a Flash player. It was created by Macromedia (now part of Adobe) and was later released as an open specification that's commonly used for Flash and Flex/Air applications. The protocol supports AMF, SWF, FLV, and F4V file formats.

Today, most people agree that the video support included within HTML5 will reduce the need for these file formats. However, because there is so much video out there, and much of it is not HTML5-compliant yet, these traditional formats still carry a lot of weight.

Like WebSockets, RTMP creates persistent connections between a server and a client application written in Flash or Flex/Air. The technology is used to reduce the overhead involved in establishing and tearing down connections for low-latency or highly-interactive apps. Also like WebSockets, performance testing for RTMP is typically focused around the optimizing data that's pushed from the server to the client.

What's unique when testing RTMP apps is that you need testing tools that have the RTMP standard built-in. If your app employs this protocol, you'll want to develop test scenarios that really exercise it. However, RTMP isn't part of the native HTML5 package the way WebSockets is. Your load testing solution should incorporate RTMP directly, and provide a lightweight way of creating virtual users, recording RTMP traffic, processing it appropriately, and playing it back in a realistic way. Your test scenarios will also need to be able to understand and process events that come from the server in order to simulate a diverse and active user population.

Adaptive Bitrate Streaming
All the technologies listed above focus primarily on interactive apps and bi-directional communications between servers and clients. Adaptive bitrate streaming is altogether different. Built directly on HTTP, adaptive streaming detects a user's bandwidth and CPU capacity in real-time, and adjusts the quality of the video stream accordingly. That means you get a different data stream if you are watching a movie on your 4" phone than you would get on a 27" monitor at your desk.

Bitrate streaming has become important because it's a way to reduce buffering and load times for videos. It's all about being able to serve video content immediately, the moment the user asks for it. That's the reason you no longer get those annoying "waiting for video to buffer" messages any more.

The thing about adaptive bitrate streaming is that the interaction between the client and server is very complex, so that makes it a difficult thing to simulate in load tests. Plus there are a lot of different kinds of streaming - that adds a whole other layer of complexity. So you need a load testing tool that first can handle a wide variety of streaming technologies like MPEG/DASH, Adobe Dynamic Streaming for Flash, Apple HTTP Live Streaming, and Microsoft Smooth Streaming.

Second, your testing software should be able to handle a large library of videos. Usually streaming apps involve users accessing a broad set of content. To accurately simulate their behavior, you want to avoid having the same videos get served over and over again. You need to be able to fully exercise the behavior of the population as a whole.

Finally, video streaming is very demanding for a server, but it's not the only thing going on. Apps continue to function in other ways, concurrently while video is streaming. For example, ads get served, related content is browsed, or transactions get executed - all while that video is playing. You'll need to build this into your test scenarios as part of a realistic media load test.

Conclusion
We all know how important it is to stay on top of the latest trends in technology. At Neotys this is something we take very seriously. That's why our team is always looking to see what technologies web developers are using and building those capabilities directly into our products. Have questions about testing a particular technology? We'd love to hear from you.

Photo Credit: Susanne Nilsson

More Stories By Tim Hinds

Tim Hinds is the Product Marketing Manager for NeoLoad at Neotys. He has a background in Agile software development, Scrum, Kanban, Continuous Integration, Continuous Delivery, and Continuous Testing practices.

Previously, Tim was Product Marketing Manager at AccuRev, a company acquired by Micro Focus, where he worked with software configuration management, issue tracking, Agile project management, continuous integration, workflow automation, and distributed version control systems.

@ThingsExpo Stories
Nordstrom is transforming the way that they do business and the cloud is the key to enabling speed and hyper personalized customer experiences. In his session at 21st Cloud Expo, Ken Schow, VP of Engineering at Nordstrom, discussed some of the key learnings and common pitfalls of large enterprises moving to the cloud. This includes strategies around choosing a cloud provider(s), architecture, and lessons learned. In addition, he covered some of the best practices for structured team migration an...
Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, discussed how they built...
In his session at 21st Cloud Expo, Raju Shreewastava, founder of Big Data Trunk, provided a fun and simple way to introduce Machine Leaning to anyone and everyone. He solved a machine learning problem and demonstrated an easy way to be able to do machine learning without even coding. Raju Shreewastava is the founder of Big Data Trunk (www.BigDataTrunk.com), a Big Data Training and consulting firm with offices in the United States. He previously led the data warehouse/business intelligence and B...
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, examined the regulations and provided insight on how it affects technology, challenges the established rules and will usher in new levels of diligence arou...
The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding busin...
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 ...
No hype cycles or predictions of a gazillion things here. IoT is here. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, an Associate Partner of Analytics, IoT & Cybersecurity at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He also discussed the evaluation of communication standards and IoT messaging protocols, data...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
DevOps at Cloud Expo – being held June 5-7, 2018, at the Javits Center in New York, NY – announces that its Call for Papers is open. Born out of proven success in agile development, cloud computing, and process automation, DevOps is a macro trend you cannot afford to miss. From showcase success stories from early adopters and web-scale businesses, DevOps is expanding to organizations of all sizes, including the world's largest enterprises – and delivering real results. Among the proven benefits,...
@DevOpsSummit at Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, is co-located with 22nd Cloud Expo | 1st DXWorld Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait...
Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive ov...
SYS-CON Events announced today that T-Mobile exhibited at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on qua...
SYS-CON Events announced today that Cedexis 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. Cedexis is the leader in data-driven enterprise global traffic management. Whether optimizing traffic through datacenters, clouds, CDNs, or any combination, Cedexis solutions drive quality and cost-effectiveness. For more information, please visit https://www.cedexis.com.
SYS-CON Events announced today that Google Cloud has been named “Keynote 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. Companies come to Google Cloud to transform their businesses. Google Cloud’s comprehensive portfolio – from infrastructure to apps to devices – helps enterprises innovate faster, scale smarter, stay secure, and do more with data than ever before.
SYS-CON Events announced today that Vivint to exhibit at SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California. As a leading smart home technology provider, Vivint offers home security, energy management, home automation, local cloud storage, and high-speed Internet solutions to more than one million customers throughout the United States and Canada. The end result is a smart home solution that sav...
SYS-CON Events announced today that Opsani 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. Opsani is the leading provider of deployment automation systems for running and scaling traditional enterprise applications on container infrastructure.
SYS-CON Events announced today that Nirmata 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. Nirmata provides a comprehensive platform, for deploying, operating, and optimizing containerized applications across clouds, powered by Kubernetes. Nirmata empowers enterprise DevOps teams by fully automating the complex operations and management of application containers and its underlying ...
SYS-CON Events announced today that Opsani to exhibit at SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California. Opsani is creating the next generation of automated continuous deployment tools designed specifically for containers. How is continuous deployment different from continuous integration and continuous delivery? CI/CD tools provide build and test. Continuous Deployment is the means by which...