Products

Problems
we solve

We can help your business

Request a Free Demo / trial

Insights

Insights
8 November, 2023

Chaos Testing: How to Integrate Steadybit with LoadRunner Professional

chaos testing with steadybit

There is often an underlying and unspoken fear with software systems: How resilient is your solution to unexpected outages and system failures? Sure, you’ve tested your solution’s functionality and performance, but have you tested against system outages? This is where chaos testing comes in.

Chaos testing is a technique that helps to identify how systems behave under unexpected or turbulent conditions. By incorporating these unpredictable disruptions into LoadRunner Professional (LRP) scenarios, you can gauge the resilience of your applications and systems.

Chaos Testing Address Issues That Other Testing Techniques Don’t

Most systems nowadays are heavily interconnected, with multiple customer access points. If even a small component were to fall over, it could lead to much larger issues.

A lot of companies choose to bury their head in the sand. Ignoring these potential issues in the hope that they won’t happen. Unfortunately, though, they do happen.

With chaos testing, you can directly address these issues, introducing system failures into your LoadRunner Professional scenarios to mimic random, real-world outages.

For more information on Chaos testing, check out What is Chaos Engineering? (and Why You Need It)

A Few Chaos Testing Examples

Terminating Server Instances

You could randomly shut down server instances to assess whether your solution can withstand the loss of any single instance without affecting the overall user experience.

Network Disruption

In network chaos testing you intentionally introduce delays, packet loss, or outages to simulate network issues and test how well your solution handles network instability.

Application Dependency Failure

You can deliberately disable access to an application’s external dependencies to understand how it responds when third-party services, APIs, or data stores go down.

Understanding Chaos Testing

When you initiate chaos tests, you simulate attacks on various system components, such as databases, web servers, CPU, or memory. Within an LRP test, disruption events are added to your scenario.

The EventsHandlerMicroservice in the Controller then communicates with the chaos platform, in this case, Steadybit, to execute these predefined disruptions. The goal is to see how these disruptions affect the system in conjunction with the LRP scenario.

A chaos test hinders typical workflows, which may slow down services and reduce successful transactions. Comparing system responses between scenarios with and without these disruptions will offer insights into the system’s resilience.

Steadybit and LoadRunner Professional

Steadybit is one of the platforms compatible with LRP, and it operates in both public clouds or on-premises through a private cloud.

Within Steadybit, you define experiments that may consist of multiple disruptions. These experiments are then added to the LRP scenarios.

steadybit process flow

To coordinate the chaos tests, LRP employs integrated Steadybit APIs. However, ensure the Steadybit agent is running on your Application Under Test (AUT) machines. It’s often beneficial to bundle several disruptions into a single experiment instead of running a series of shorter, separate experiments.

Chaos Testing From the Cloud

You can also use a cloud-based chaos testing tool, Gremlin, to introduce chaos events into LoadRunner scenarios – check out this article for more information.

Incorporating Disruption Events into LoadRunner Professional Scenarios

To utilise disruption events within your LRP scenarios:

  1. Setup: Initialize your chaos engineering platform (Steadybit) and outline the disruptions for the application in question.
  2. Connection: Before diving into the Controller, validate the connection between the Steadybit agent and the platform.
  3. Scenario Design: Launch your LRP scenario and navigate to the ‘Controller Design’ tab. You’ll find the ‘Disruption Events’ button under the’ Scenario Schedule’ pane.
  4. Event Addition: Select’ Add Event’ within the ‘Disruption Events’ dialogue. Choose ‘Steadybit’ as the chaos engineering provider type and input the necessary API Key. Check the ‘On-prem’ box for private cloud operations and provide the necessary URL.
  5. Event Selection: A table populated with disruption events (or experiments) from Steadybit will appear once connected. You can select the desired events and hit ‘Add’. You can even search for specific events or see a brief about the experiment.
  6. Scheduling: After adding the events, define the start time relative to the overall LRP scenario start time. A scheduling graph visually represents the event timelines against the overall Vusers schedule.
  7. Event Error Handling: From version 2023 R1, the ‘continue on error’ feature allows you to decide if the scenario should proceed even if a scheduled disruption fails.
  8. Save: After completing the setup, save your changes.

As the LoadRunner Professional scenario progresses, you can observe how the chaos events from Steadybit influence the monitored machines with real-time updates on the scenario graphs.

Configure and Review Disruption Event Logs

You can configure different logging levels like Trace, Debug, Information, Warning, Error, or Critical.

To review the logs for these disruption events:

  • For microservice-related logs, refer to <LoadRunner root folder>\Logs\EventsHandlerSrv\events_handler.log.
  • Controller-related logs can be found at %TEMP%\lr_disruption_events_err.log.

Summary

In short, chaos testing lets you see whether you solution can take an unexpected hit.

Adding chaos events into your LoadRunner Professional scenarios introduces outages into your test environment, letting you assess how your solution responds.

Chaos testing with LoadRunner and Steadybit is a straightforward process that gets your software ready for the unexpected.

Related Products

LoadRunner Professional
Stephen Davis
by Stephen Davis

Stephen Davis is the founder of Calleo Software, a OpenText (formerly Micro Focus) Gold Partner. His passion is to help test professionals improve the efficiency and effectiveness of software testing.

To view Stephen's LinkedIn profile and connect 

Stephen Davis LinkedIn profile

8th November 2023
SaaS Performance Testing LoadRunner Cloud

SaaS Performance Testing: Easy, Quick, and Stress Free

SaaS performance tools remove most setup headaches, giving you access to pre-configured cloud-based performance infrastructure. No more setting up load injectors or installing controllers. Instead, you just log on and choose where in the world you want to run your tests.

Tricentis lying about OpenText

Tricentis Are Lying. Again

OpenText invests more in R&D than any other test tool provider. New features are added multiple times a year, application and technology support keeps growing, and they regularly release completely new tools.

test management tools are the foundation

Build a Foundation for Testing Success: Choosing a Test Management Tool

Test management tools give unparalleled views of software development progress, provide quality assurance and peace of mind, and can generate positive returns on investment – more than just paying for themselves. This insight discusses some of the contenders and gives recommendations.

risk v reward

Risk v Reward: Are Test Management Tools Worth It?

Are test management tools worth the money? It’s easy and common to assume there are more impactful ways to spend project funds than test tools. But does this downplay the important role a professional test management tool can play in success?

The evolution of test management tools

Test Management Tools: Past, Present, and Future

Understanding where things have come from can often help inform where they are going. The story of test management tools goes back at least three decades and this insight offers a precis of their past, present, and future…

5 automation trends

Software Test Automation: 5 Important Trends for 2024

Software test automation has evolved massively over the last few years; gone are the days of flaky tools, gargantuan setup effort, and scripts that require constant human intervention. The integration of cutting-edge technologies and methodologies has redefined the role of test automation within the software development lifecycle.

Automate Everything With One Tool

Software Testing Simplified: Automate Everything With One Tool

With so many software test automation tools to choose from, companies often cherry-pick a suite of low-cost options to test their full landscape. Unfortunately this is highly problematic, adding unnecessary complexity, increasing costs and undoing any of the purported benefits.

UFT One Automation Heavy Lifting

Test Automation: 6 Reasons UFT One is The Only Tool You Need

In the fast-paced world of software development, functional testing is critical to ensure your solutions perform as expected. Unlike manual testing, which is time-consuming and prone to human error, test automation streamlines the testing process, offering a faster, more accurate, cost-effective solution. There is an array of automation tools available, but OpenText UFT One is the standout choice, offering a complete solution for all your needs.

Insights

Search

Related Products

LoadRunner Professional

Related Articles

To get other software testing insights, like this, direct to you inbox join the Calleo mailing list.

You can, of course, unsubscribe 

at any time!

By signing up you consent to receiving regular emails from Calleo with updates, tips and ideas on software testing along with the occasional promotion for software testing products. You can, of course, unsubscribe at any time. Click here for the privacy policy.

Sign up to receive the latest, Software Testing Insights, news and to join the Calleo mailing list.

You can, of course, unsubscribe at any time!

By signing up you consent to receiving regular emails from Calleo with updates, tips and ideas on software testing along with the occasional promotion for software testing products. You can, of course, unsubscribe at any time. Click here for the privacy policy.