Recovery Testing in Software Testing: Process, Types, and Best Practices
Backups can be incomplete, corrupted or too slow for your recovery targets, the AWS Well-Architected Framework warns. You may find out about it only when you try to restore one. If this happens during a database outage at peak traffic, downtime grows while your team members search for a backup that works. Recovery testing in software testing is how you run a controlled check and get measured proof that recovery fits your RTO and RPO before a real incident happens. In this guide, you will find the full process, plus test scenarios and tools for your next release.
In recovery testing, your team confirms that an application restores service and data after failures like database crashes or network interruptions. A successful restart alone does not prove recovery.
The process starts with RTO (Recovery Time Objective) and RPO (Recovery Point Objective) limits, followed by controlled failure injection and functional checks of business workflows after recovery.
The main types of recovery testing differ by failure point, such as a crashed server or a corrupted database, and a distributed architecture needs coverage of several types.
According to the AWS Well-Architected Framework, backups can be incomplete or corrupted, and you may find out only during a restore. AWS recommends periodic test restores to verify data integrity and recovery time.
Failover testing and chaos engineering overlap with recovery testing. Recovery testing covers the full cycle, including data consistency and functional checks after the infrastructure switch.
What Is Recovery Testing in Software Testing?
Recovery testing is a non-functional test type in which your team forces a failure on purpose. After that, you confirm that the application restores its service and data to the expected state. Under ISO/IEC 25010:2023, recoverability is the degree to which a system can recover directly affected data and re-establish its desired state after a failure.
In the same standard, recoverability is a sub-characteristic of reliability, which puts recovery tests in the same quality group as availability and fault tolerance checks. Recovery testing is a type of system testing, so the main tests run on the fully integrated application with its databases and external dependencies. At the component or integration level, your team can also check recovery behavior earlier, e.g., a restart of one service in isolation.
Depending on your architecture, recovery after a failure happens in one of two ways:
Automatic recovery: A container is restarted by Kubernetes after its liveness probe fails, or traffic is moved to a database replica.
Manual recovery: Your ops team restores a database from backup by following the steps in a documented runbook.
In both cases, the goal of the test is to confirm that downtime and data loss stay within the limits your business has agreed on. Failures in production cannot be ruled out, so your team measures how well the system handles them in a controlled test.
Why Is Recovery Testing Important?
Recovery testing is important because one failed dependency, such as a payment gateway, can stop business workflows in an otherwise healthy application. Modern applications depend on cloud services and external APIs, so the number of possible failure points grows with new integrations. In its Annual Outage Analysis 2026, the Uptime Institute reports that 57% of surveyed operators said their most recent major outage cost more than $100,000.
With regular recovery tests, your team works toward goals that directly affect how the next incident plays out for users and for the business:
Shorter downtime: You confirm that the application returns to service within the RTO agreed with business owners.
Intact data: You check that orders and payments are neither lost nor duplicated after a restore.
Proven recovery mechanisms: Backups and failover procedures are exercised under realistic load before you depend on them in an incident.
Known dependencies: You find services, such as DNS or an identity provider, whose outage blocks recovery of the rest of the system.
Prepared people: Your team members practice the runbook, so the on-call engineer follows tested steps during a 2 AM incident.
DNS failures can block recovery far beyond one service. As heise reported in October 2025, the AWS outage in US-EAST-1 began with an empty DNS record for the DynamoDB endpoint.
How we usually approach it with clients: we don't really "test" DR (Disaster Recovery) scenarios in isolation. For us, testing tends to start with an incident, which means it starts with the incident response plan. You work a scenario out of that, and then depending on how bad it is, the DR plan kicks in.
The stakes are highest in domains like banking and healthcare, where lost or inconsistent records have legal consequences. In the EU, DORA Article 11 requires financial entities to test ICT business continuity and response and recovery plans at least yearly. The same article also requires tests after substantive changes to systems that support critical functions.
Recovery tests produce detailed records, from the injected failure to the measured RTO and RPO values. In aqua cloud, an AI-driven test and requirement management platform, your team gets to keep test cases and their execution results in one place, with full traceability from the requirement to post-recovery validation. With aqua Intelligence, recovery test cases are generated in seconds from your own project documentation through RAG grounding. As a result, the scenarios reflect your actual infrastructure and runbooks. The execution history of all runs is stored next to the test cases, and failed runs stay linked to their defects for later analysis. On top of that, aqua offers 12+ integrations, such as Jira with bidirectional sync and Jenkins, so your team keeps its current toolchain. For custom pipelines and AI agents, an MCP server and REST API are available as well.
Save 12.8 hours per tester per week with aqua Intelligence
Google offers a well-documented example of recovery testing in practice. Its site reliability engineers founded DiRT, the Disaster Recovery Testing program, in 2006, and over time it grew into an annual, company-wide, multi-day event. During DiRT, engineers plan real and fictitious outages to test both technical systems and the people who respond to them.
The program shows that backups and failover mechanisms prove their value only after your team exercises them under realistic conditions. For that reason, it makes sense to plan recovery scenarios in the same app testing software your team uses for functional and performance tests.
How Does Recovery Testing Work?
Recovery testing works as a controlled cycle: Your team injects a failure into a production-like environment and then measures how service and data come back. A common sequence for a single recovery test runs from planning to validation, and you can adapt it to the architecture you work with:
Pick the failures that matter: Rank scenarios by business impact. A cache outage slows page loads, but an unavailable primary database can stop checkout completely.
Set RTO and RPO: RTO is the longest downtime your business accepts. RPO is the maximum data loss, measured as time since the last recoverable state. Both values become pass/fail criteria for the test.
Prepare a production-like environment: Mirror application replicas and databases from production, and add a safe method to inject faults. A fault injected into production by mistake causes a real outage.
Record a baseline: Measure API response times and error rates before the failure. For databases, add replication lag, so you can compare behavior before and after the incident.
Inject the failure: Terminate an application process or cut network access to a dependency, then log the exact start time.
Observe detection and recovery: Note when the failure appears in your monitoring and which recovery actions start, e.g., a container restart.
Validate business functions: Run functional checks on key business workflows and record the time until full functionality returns.
Pass/Fail Decision Based on RTO and RPO
AI-generated image.
After step 7, your team compares the measured values with the targets set in step 2. RTO and RPO are evaluated separately, and the test passes only when both targets are met:
Metric
How you measure it
Pass condition
RTO
Time from the logged failure start until key business workflows pass validation
Measured recovery time stays within the RTO target
RPO
Time between the failure start and the last committed transaction that is available after recovery
Measured data loss stays within the RPO target
For that reason, a fast recovery from a backup older than the RPO allows still counts as a failed test.
Post-Recovery Validation Checklist
A service that reports a healthy status can still have broken parts, such as idle message workers or a failed payment reconciliation job. Before you mark a test as passed, confirm these points:
Users can log in, and existing sessions behave as your session design defines.
Data committed before the failure is available and unchanged.
No transaction was processed twice or left in an unknown state.
Background workers process the messages queued during the outage.
Response times and error rates return to the thresholds agreed for normal operation.
When a check fails, log it as a defect together with the measured recovery time and the step where recovery stopped.
Types of Recovery Testing
The main types of recovery testing differ by the failure point you target, from one crashed process to a lost cloud region. A distributed application needs several types, and the right mix depends on your architecture and the failures you have already seen in production:
Hardware and server failure recovery: Your team terminates virtual machines or makes compute nodes unavailable. You then verify that service returns within the RTO through redundant servers or automated restarts.
Database recovery: You restore backups or recover a database to a specific point in time. A restored database with inconsistent order records still fails the test, so data checks are part of the pass criteria.
Network failure recovery: Engineers disconnect a service from its database or add packet loss between microservices. Your team then checks that retry loops stay bounded and that processing resumes once connectivity returns.
Application crash recovery: You terminate an application process and verify that it restarts with its persisted state. In Kubernetes, a failed liveness probe leads to a container restart, and traffic reaches the container only after its readiness probe passes.
Disaster recovery: Your team simulates a large-scale event, such as a regional outage, and recovers the system in a secondary environment. These tests are expensive and need coordinated procedures, yet they are the main proof of business continuity.
In practice, start with the type tied to your highest business risk. For a payment platform, database recovery comes first because order and payment records must stay consistent after any restore.
Recovery Testing Examples
The following recovery testing examples show how test design looks for three common failure scenarios, with concrete steps and pass criteria.
Example 1: Primary Database Failure During Checkout
The system under test is an online store whose checkout API writes orders to a primary database and sends charges to an external payment provider. Your team runs the test in this order and compares the results with the expected outcomes:
Step
Action
Expected result
1
Create test orders and start a checkout
Orders are stored with the status “pending”
2
Stop the primary database while checkout requests are in progress
The API returns a retryable error, and no committed order is lost
3
Wait for failover to the replica
The application reconnects within the RTO
4
Retry interrupted checkouts with their original idempotency keys
No payment is charged twice
5
Compare order and payment statuses
Order and payment records match for all test orders
Before the run, your team fixes measurable acceptance criteria for this scenario. For a checkout flow, the criteria can look like this:
RTO: Checkout accepts new orders again within the RTO set for the payment flow.
RPO: Zero loss of committed orders, so the RPO for order records is 0.
Payment integrity: Zero duplicate charges across all retried checkouts.
Transaction consistency: All interrupted transactions are resolved or explicitly flagged for reconciliation.
An RPO of zero is realistic only with synchronous replication to the standby. With asynchronous replication, the last committed writes can be missing after failover.
The trickiest case is a payment that the provider processed while the database write was interrupted. Your team should check that this order is resolved through idempotency or a reconciliation job and that the payment is never repeated. Test results should also separate committed and failed transactions from those whose outcome was unknown at the moment of failure.
Example 2: Authentication Service Crash in Microservices
Here, the authentication service of a microservices application crashes with users logged in. Your team checks that sessions behave as your session design defines, e.g., existing tokens stay valid. You also confirm that no request gets through without authorization during the recovery window.
The test also covers dependent services. Calls to the crashed service should be stopped by an open circuit breaker, and users should see a controlled error message. This way, the failure does not cascade across the system.
Circuit breakers and retries are well studied, yet the evidence on them is scattered. A 2025 systematic review on arXiv analyzed empirical studies on microservice recovery patterns published from 2014 to 2025.
Example 3: Network Partition in a Distributed Database
In this scenario, your team splits a distributed database cluster into two groups of nodes that cannot reach each other. The expected result depends on the consistency model of the database, so you define it in the test case before the run:
Quorum-based systems, e.g., etcd or a MongoDB replica set: Only the side with a majority of nodes accepts writes. After the partition heals, you verify that minority nodes sync with the majority and that no write acknowledged by the majority is missing.
Last-write-wins systems, e.g., Apache Cassandra: Both sides can accept writes, and the update with the newer timestamp replaces the older one. You verify that conflicts follow this rule and that the discarded updates are the ones the rule predicts.
If your application cannot accept discarded updates, the test shows that the consistency model does not fit the requirement. In all three examples, a restart is the first checkpoint, and the pass decision depends on data consistency after recovery.
Recovery Testing vs. Other Types of Software Testing
Recovery testing overlaps with several related test types, and the key difference is what each test proves about your system. The comparison table lists the focus and success criteria of the related types, so your team can match a specific risk with the right test:
Testing Type
Primary Focus
Timing of Execution
Success Criteria
Typical Scope
Recovery Testing
System restoration after failure
After controlled failure injection
RTO and RPO met, data intact, functions restored
Complete recovery cycle
Failover Testing
Switch to backup systems
During an active service switch
Switch completes within the agreed availability limits
Infrastructure switching
Disaster Recovery Testing
Business continuity after a major disruption
Simulated large-scale outages
Operations restored at an alternate site or region
Organization-wide recovery
Reliability Testing
Consistent performance over time
Extended operational periods
Stable performance and an acceptable failure rate
Long-term system behavior
Chaos Engineering
System behavior under injected faults
Continuous experiments in production or staging
Steady state holds or returns within agreed limits
Steady-state behavior, detection, and recovery
Failover testing can be one step inside a recovery test. A successful switch to a standby database proves that traffic moved, but data consistency and recovery time still need separate checks.
In chaos engineering, your team tests a steady-state hypothesis, e.g., stable error rates, while faults are active. Many experiments also check detection and recovery, so the two practices overlap. Disaster recovery testing, in turn, deals with the loss of a data center or cloud region. Recovery testing also covers smaller local failures, such as a single database outage.
Since these test types complement each other, your team can combine them based on the risks and architecture of your application.
It may sound obvious, but test the business‑critical systems first. That should already be clear from an impact analysis (although in reality they’re often positioned in a way that makes them pretty useless to IT)
For recovery testing, your team needs a tool to inject faults and a way to restore and validate data. On top of that, monitoring is required to measure recovery time. For CI/CD pipelines, choose automated recovery testing software with an API or CLI, so faults can be injected on a schedule.
Fault Injection and Chaos Engineering Tools
Fault injection tools differ mainly by the platform they support, so the right choice depends on where your application runs:
Tool
Platform
What your team can test with it
AWS Fault Injection Service
AWS
Controlled experiments that are stopped automatically through stop conditions based on CloudWatch alarms
Azure Chaos Studio
Azure
Workspaces with outage scenarios like Zone Down and Database Failover, with a report per run (public preview since July 2026)
Chaos Mesh
Kubernetes
Pod crashes and network delays, plus I/O and DNS faults
LitmusChaos
Kubernetes
Pod deletion and network latency experiments defined as Kubernetes resources
Gremlin
Cloud, on-premises, and Kubernetes
Commercial platform with prebuilt failure scenarios and blast radius controls
If your application runs on AWS or Azure, the native service of that cloud needs the least setup. For containerized microservices on any Kubernetes cluster, Chaos Mesh and LitmusChaos are open-source CNCF projects with native Kubernetes support.
Database Backup and Recovery Tools
For data recovery scenarios, your team relies on the native tools of your database platform, because restore behavior depends on the engine:
PostgreSQL: Point-in-time recovery is done from a base backup plus archived write-ahead log (WAL) files, so you can test a restore to an exact timestamp.
MySQL: Binary logs are replayed on top of a full backup for point-in-time recovery, and the same logs are also used for replication.
MongoDB: In replica sets, a new primary is elected when the current one fails, so you can measure election time and check for rolled-back writes.
Monitoring and Test Management
From monitoring platforms like Prometheus with Grafana or Datadog, you get exact timestamps for the failure and the recovery. Without these timestamps, your team cannot prove that the RTO was met.
Your recovery scenarios and their measured results also need to be stored in one place. In a test management solution, test cases are linked to their execution history, so your team can show auditors when a scenario last passed.
Best Practices for Effective Recovery Testing
Effective software recovery testing is a regular part of your development and operations cycle, with tests planned around business risk and repeated after changes. The practices are grouped by the phase of a test where your team applies them.
Before the Test
Start with failures that can stop checkout or billing, or cause permanent data loss. A database failure in your payment system needs a test long before a crash of an internal wiki server.
After that, define measurable acceptance criteria for the scenario. Write down the RTO and RPO, plus the business functions that must work after recovery. A note like “the service came back up” is not a complete pass criterion.
During the Test
Test backups through real restores: A completed backup job does not prove that the data can be restored. AWS recommends periodic restores to a separate environment, with checks of data integrity against your RTO and RPO.
Automate repeatable scenarios: Process restarts and connection drops can be run as automated tests in your pipeline, together with post-recovery checks. Complex disaster recovery drills still need manual coordination.
Limit the blast radius: Define which services and resources the fault may affect, and set automatic abort conditions, e.g., an error-rate alarm. Keep a rollback procedure ready before you inject the fault.
Test failed recovery paths: Plan scenarios where the primary recovery mechanism fails too, such as an unusable backup or an unavailable standby. Your fallback procedures need the same test coverage as the main path.
After the Test
Once a test is complete, the work moves to validation and documentation:
Run full business workflows after recovery, e.g., login and checkout, before you close the test.
Update your recovery runbooks with the findings, including responsible people and known dependencies.
Repeat the tests after infrastructure migrations or changes to backup policies, since these changes can break procedures that passed earlier.
If you keep recovery test cases next to your other QA assets in aqua cloud, runbook updates and retests stay traceable to the requirement.
Recovery procedures count as proven only after your team runs documented scenarios and tracks the results over time. In aqua cloud, an AI-powered test and requirement management solution, all recovery test cases are managed centrally, and the full execution history is ready for compliance audits and post-incident reviews. With aqua Intelligence, project-specific test cases for database failover or crash recovery are generated from your own documentation. Your team then spends less time on manual test design and can cover new services faster. During manual recovery runs, Capture records test execution with video and screenshots, and defects reach developers with clear evidence attached. To connect automated recovery checks with your pipeline, use the 12+ aqua integrations, e.g., Azure DevOps and Ranorex. Your own scripts and AI agents can reach recovery test data and results through the aqua MCP server and REST API.
Keep all recovery test cases and results in one traceable workspace
In software testing, recovery testing gives your team evidence that the system restores service and data after a failure. Strong tests rely on realistic failure scenarios and measurable RTO and RPO targets. Post-recovery checks of business workflows matter as much as the restart itself, since a healthy status can hide idle workers or duplicate payments. Start with the scenario tied to your highest business risk, and repeat it after major changes.
Recovery testing is a non-functional test in which your team forces a failure and verifies that the system restores service and data. For example, you stop the primary database during checkout and confirm that no committed order is lost and no payment is charged twice.
What Are the Main Objectives of Recovery Testing?
The main objectives of recovery testing are to confirm that downtime stays within the RTO and data loss stays within the RPO. Recovery testing also proves that backups and failover procedures work and that your team can follow the runbook under pressure.
When Should Recovery Testing Be Performed?
Run recovery testing before major releases and after infrastructure migrations or backup policy changes. Regulated companies follow fixed schedules, e.g., DORA requires EU financial entities to test response and recovery plans at least yearly. Automated scenarios can also run in CI/CD on a regular basis.
Is Recovery Testing a Type of Non-Functional Testing?
Yes. Recovery testing belongs to non-functional testing, since recoverability is a sub-characteristic of reliability in ISO/IEC 25010. In terms of test levels, recovery testing is a type of system testing, so the main tests run on the fully integrated application.
What Is the Difference Between Recovery Testing and Failover Testing?
In failover testing, your team checks whether traffic switches to a backup component, such as a standby database. Recovery testing covers the full cycle after a failure, including recovery time, data consistency, and functional checks of business workflows after the switch.
Pavel, a Quality Assurance Consultant and Author, brings deep expertise to solving complex testing challenges. His background in software development has helped organizations transform their QA practices from reactive to proactive. Beyond consulting, Pavel develops best practice guides and case studies for aqua cloud that…
Nurlan, a QA Coordinator & Quality Standards Officer, takes pride in orchestrating seamless QA operations. His expertise in coordinating QA-focused projects and integrating QA solutions has consistently yielded top-tier client satisfaction. Aside from a full-time QA coordinator, Nurlan's role involves creating compelling content that educates…
Robert has several years of experience in process optimisation and test management. He is an expert in defining and implementing workflows by adapting aqua to the clients’ processes.
Home » Best practices » Recovery Testing in Software Testing: Process, Types, and Best Practices
Do you love testing as we do?
Join our community of enthusiastic experts! Get new posts from the aqua blog directly in your inbox. QA trends, community discussion overviews, insightful tips — you’ll love it!
We're committed to your privacy. Aqua uses the information you provide to us to contact you about our relevant content, products, and services. You may unsubscribe from these communications at any time. For more information, check out our Privacy policy.
X
🤖 Exciting new updates to aqua Intelligence are now available! 🎉