Industrial IoT Authors: Yeshim Deniz, Elizabeth White, Stackify Blog, SmartBear Blog, Liz McMillan

Related Topics: Industrial IoT

Industrial IoT: Blog Feed Post

Four Best Practices for Agile API Load Testing | @CloudExpo #API #Cloud #Agile

One important organizational point of Agile API delivery is the concept of a team producing a usable version

Four Best Practices for Agile API Load Testing
By PJ Stevens

One important organizational point of Agile API delivery is the concept of a team producing a usable version - which should result in the improved alignment of development, QA, and technical operations teams. Perhaps an even larger benefit of Agile is that it allows teams to effectively manage change in both external and software functionality, while simultaneously accelerating the development of quality software. Part of the challenge with managing this change, however, is providing quick feedback on when the change in software happens, and its resulting impact.

You may be familiar with the mantra, "test early and often." It's an approach that is closely aligned with the waterfall methodology. In waterfall terminology, "early" means "before the software is transitioned to QA."

This mantra is largely inaccurate when it comes to API performance testing in Agile. Instead, with Agile, you test all the time. This means designating a resource who will be responsible for the testing, and tightly involving all stakeholders - including those on the business side. Typically, functional testers define functional tests to match the sprint functionality. If you're doing functional testing, there's a great opportunity to introduce performance testing scenarios too.

Here are four handy suggestions for Agile load testing to help you get started.

#1 - Test Your API Incrementally
Incremental API testing starts at the lowest functional levels. First test a small function, and then build from there. If all the individual components function and perform correctly, chances are they will work well together and this knowledge will help you analyze and debug performance bottlenecks when you test at the system level later on.

Look at performance testing in Agile as testing of different performance layers that can be approached in an onion-like fashion in the rhythm of your sprints. To achieve flexibility, you also need to plan your performance testing efforts and break a bigger challenge into smaller tasks. As a comparison, it is difficult and expensive to solve a 12 man-year problem at once, but one can solve 12 one man-year problems in sequence. The same approach can be applied to signing off the performance of an application.

#2 - Establish Performance Goals
Create API performance tests to work alongside your functional tests, while also incorporating the performance test into your build process. Start by establishing performance goals when writing user stories.

For example, let's say you're creating an API for an online store. You want a user to be able to add an item in their cart, and you also want to verify that this request takes no more than half a second to process.

Creating your performance test alongside your functional test allows you to continually measure the performance of your API.

#3 - Reuse Functional Tests
Always check to see if you can reuse existing or future API functional tests as performance tests. It may be possible to incorporate timers into an automated test to give you a feel for how the application is responding. You can review your functional tests with a designated performance expert and make the decision, or you can utilize tools like SoapUI NG Pro (API functional testing) and LoadUI NG Pro (API load testing), which allow you to efficiently reuse tests in the same software platform.

Reusing functional tests whenever possible is one of the key anchor points for Agile performance testing, driving the development of work scenarios for later use as the workload of more in-depth load tests.

#4 - Include API Performance Tests in the Build Process
Finally, you should include your load tests in the build process so that each build goes through some level of performance testing. By doing this, it's going to be easier to determine what caused the slowdown in your application's performance. Also, if you need to roll back to an earlier build, you know how well that particular build performs because you've already tested it.

Read the original blog entry...

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.

IoT & Smart Cities Stories
The Internet of Things will challenge the status quo of how IT and development organizations operate. Or will it? Certainly the fog layer of IoT requires special insights about data ontology, security and transactional integrity. But the developmental challenges are the same: People, Process and Platform and how we integrate our thinking to solve complicated problems. In his session at 19th Cloud Expo, Craig Sproule, CEO of Metavine, demonstrated how to move beyond today's coding paradigm and sh...
@DevOpsSummit at Cloud Expo, taking place November 12-13 in New York City, NY, is co-located with 22nd international CloudEXPO | first international DXWorldEXPO 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 t...
What are the new priorities for the connected business? First: businesses need to think differently about the types of connections they will need to make – these span well beyond the traditional app to app into more modern forms of integration including SaaS integrations, mobile integrations, APIs, device integration and Big Data integration. It’s important these are unified together vs. doing them all piecemeal. Second, these types of connections need to be simple to design, adapt and configure...
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 Bi...
Contextual Analytics of various threat data provides a deeper understanding of a given threat and enables identification of unknown threat vectors. In his session at @ThingsExpo, David Dufour, Head of Security Architecture, IoT, Webroot, Inc., discussed how through the use of Big Data analytics and deep data correlation across different threat types, it is possible to gain a better understanding of where, how and to what level of danger a malicious actor poses to an organization, and to determin...
To Really Work for Enterprises, MultiCloud Adoption Requires Far Better and Inclusive Cloud Monitoring and Cost Management … But How? Overwhelmingly, even as enterprises have adopted cloud computing and are expanding to multi-cloud computing, IT leaders remain concerned about how to monitor, manage and control costs across hybrid and multi-cloud deployments. It’s clear that traditional IT monitoring and management approaches, designed after all for on-premises data centers, are falling short in ...
We are seeing a major migration of enterprises applications to the cloud. As cloud and business use of real time applications accelerate, legacy networks are no longer able to architecturally support cloud adoption and deliver the performance and security required by highly distributed enterprises. These outdated solutions have become more costly and complicated to implement, install, manage, and maintain.SD-WAN offers unlimited capabilities for accessing the benefits of the cloud and Internet. ...
The deluge of IoT sensor data collected from connected devices and the powerful AI required to make that data actionable are giving rise to a hybrid ecosystem in which cloud, on-prem and edge processes become interweaved. Attendees will learn how emerging composable infrastructure solutions deliver the adaptive architecture needed to manage this new data reality. Machine learning algorithms can better anticipate data storms and automate resources to support surges, including fully scalable GPU-c...
The Founder of NostaLab and a member of the Google Health Advisory Board, John is a unique combination of strategic thinker, marketer and entrepreneur. His career was built on the "science of advertising" combining strategy, creativity and marketing for industry-leading results. Combined with his ability to communicate complicated scientific concepts in a way that consumers and scientists alike can appreciate, John is a sought-after speaker for conferences on the forefront of healthcare science,...
Machine learning has taken residence at our cities' cores and now we can finally have "smart cities." Cities are a collection of buildings made to provide the structure and safety necessary for people to function, create and survive. Buildings are a pool of ever-changing performance data from large automated systems such as heating and cooling to the people that live and work within them. Through machine learning, buildings can optimize performance, reduce costs, and improve occupant comfort by ...