Back to Blog
Testing guide

What Is a Flaky Test? Causes, Detection & Prevention Guide

Flaky tests fail randomly and erode trust in your CI pipeline. Learn what a flaky test is, its root causes, and how to detect and prevent them.

Armish Shah
July 10, 2026
September 4, 2026
What Is a Flaky Test? Causes, Detection & Prevention Guide

Testing guide

What Is a Flaky Test? Causes, Detection & Prevention Guide

by:

Armish Shah

September 4, 2026

8

min

Share:

What Is a Flaky Test? Causes, Detection & Prevention Guide | TestFiesta
On this page

Ready to take your testing to
the next level?

Sleek and intuitive workflows
Transparent pricing
Easy migration

Introduction

A test fails. You rerun it. It passes. Nothing changed. If that sounds familiar, you have flaky tests. They are one of the most expensive problems in software delivery, not because any single failure costs much, but because they slowly train your team to ignore red builds. Once developers start hitting "rerun" instead of investigating, your test suite stops doing its job.

This guide covers what makes tests flaky, the six root causes behind most flakiness, how to detect flaky tests systematically, and how to stop them from entering your pipeline in the first place.

What Is a Flaky Test

A flaky test is a test that produces different results on different runs without any change to the code under test. Same commit, same test, different outcome.

The impact goes beyond wasted rerun time. Flaky tests create three compounding problems:

  1. Lost trust: When failures might be noise, developers stop treating them as signals. Real bugs slip through because someone assumed the failure was "just that flaky test again."
  2. Slower delivery: Reruns, investigations, and blocked merges add friction to every deployment. A pipeline that needs two or three attempts to go green doubles or triples your feedback loop.
  3. Hidden debt: Flakiness usually points to a real weakness, either in the test or in the product. Ignoring it means the underlying race condition or leaky resource stays in your codebase.

What Makes a Test "Flaky"?

The defining trait is non-determinism. A healthy test is a pure function of the code it tests; given the same inputs, it always returns the same verdict. A flaky test has hidden inputs, things like system time, network latency, execution order, or leftover state from a previous test. When those hidden inputs shift, the result flips.

This is why flaky tests are so hard to reproduce locally. Your laptop and your CI runner differ in CPU contention, network conditions, parallelism, and timing. The hidden input that flips the test on CI may never occur on your machine.

The problem exists at every scale. Google has published research showing that a meaningful share of its test suite exhibits some level of flakiness, and that flaky failures account for a large portion of test-to-fail transitions in its CI systems. Microsoft, Mozilla, and GitHub have all written publicly about dedicated tooling and teams built specifically to manage flakiness. If companies with that much engineering investment still fight this problem, no team should expect to avoid it entirely. The goal is management, not perfection.

The 6 Root Causes of Flaky Tests

Almost every flaky test traces back to one of six categories. Knowing them speeds up diagnosis considerably because you can check the likely suspects in order rather than guessing.

1. Timing and Async Issues

This is the most common category, especially in UI and integration tests.

Race conditions: The test asserts on a result before the operation producing it has finished. Under normal load, the operation wins the race. Under CI load, the assertion wins, and the test fails.

Fixed waits: sleep(3000) is a guess about how long something takes. When the environment is slow, three seconds is not enough, and the test fails. When it is fast, you burn three seconds for nothing. Fixed waits make tests both flaky and slow, which is an impressive combination.

Async/await problems: A missing await causes the test to continue before a promise resolves. Sometimes the promise resolves fast enough anyway, and the test passes. Sometimes it does not. These bugs are easy to write and hard to spot in review because the code looks almost correct.

The fix in all three cases is the same principle: wait for events, not for time. Wait for the element to be visible, the request to complete, the state to change.

2. Shared State and Test Dependencies

Test order dependency: Test B passes when it runs after test A because A leaves behind data B silently relies on. Run B alone, or run the suite in parallel, and B fails. Any test that cannot pass in isolation is a flake waiting for a scheduling change.

Shared resources: Two tests writing to the same file, port, or global variable will collide eventually, especially once you enable parallel execution.

Database state conflicts: Tests that assume specific row counts, IDs, or empty tables break as soon as another test, or a previous failed run, leaves the database in an unexpected state. Auto-incrementing IDs are a classic trap here.

3. Environment Inconsistencies

CI vs local differences: Different OS, browser version, locale, screen resolution, or installed fonts can all change behavior. "Works on my machine" is often literally true and completely unhelpful.

Resource starvation: CI runners are usually shared and often underpowered compared to developer machines. A test tuned against a fast laptop can time out on a busy runner.

Container limitations: Memory limits, missing system dependencies, and headless browser quirks inside containers all produce failures that never appear locally.

4. External Dependencies

Any test that calls a real third-party API inherits that API's reliability. Rate limits, maintenance windows, network timeouts, and DNS hiccups all become your test failures. The test is technically doing its job, reporting that something failed, but it is reporting on infrastructure you do not control and cannot fix.

The general rule: unit and integration tests should mock external services. Keep a small, separate set of contract or smoke tests that hit real dependencies, and do not let those block merges.

5. Resource Leaks

Leaks are sneaky because the leaking test usually passes. The victim is a later test that fails when memory runs out, the connection pool is exhausted, or the OS runs out of file handles. The failure appears in a test that has nothing wrong with it, which sends the investigation in the wrong direction.

Symptoms to watch for: failures that only occur in long test runs, failures that move around between runs, and suites that get slower the longer they run.

6. Non-Deterministic Elements

Random values: Unseeded random data means every run tests something slightly different. Occasionally the random input hits an edge case, or violates a validation rule, and the test fails. Seed your randomness so failures are reproducible.

Time zone issues: A test that passes in UTC and fails in the runner's local time zone, or vice versa, is comparing dates without controlling the zone.

Date-sensitive logic: Tests that break at midnight, on the 31st, at month boundaries, or on February 29 are all real and all common. Freeze the clock in tests instead of using the actual current time.

How to Detect Flaky Tests: A 4-Pillar Framework

You cannot fix what you have not identified, and gut feeling is a poor identification method. Teams consistently underestimate how many flaky tests they have because each individual developer only sees a slice of the failures. Systematic detection rests on four pillars.

1. Automated Detection Methods

Historical pass/fail rate analysis: Track every test's result across every run. A test that fails 3% of the time on unchanged code is flaky by definition. This is the cheapest signal you can collect because the data already exists in your CI logs.

Rerun-based detection: If a test fails and then passes on immediate rerun with no code change, flag it. This catches flakes at the moment they occur rather than in retrospective analysis. The caveat: reruns hide flakiness if you only record the final result. Record every attempt.

Statistical flip-rate analysis: Count how often a test transitions between pass and fail across consecutive runs of the same commit or branch. Genuine regressions fail consistently after a specific change. Flaky tests flip back and forth without correlation to code changes.

Setting practical thresholds: A useful starting point is the 2% rule: any test that fails more than 2% of runs on stable code gets flagged for investigation. Tighten the threshold as your suite improves. Whatever number you pick, the point is having an explicit, agreed threshold instead of arguing about each test individually.

2. CI/CD Integration for Detection

Detection works best when it is built into the pipeline rather than run as a periodic audit.

Track per-test metrics, not just per-build results. A build that passes 99% of the time can still contain a test that flakes constantly, hidden behind retries.

‍

Cross-run analysis compares results for the same test across branches, commits, and runners. A test failing on one runner type but not another points at environment, not code.

Environment correlation means recording metadata with every result: runner ID, parallelism level, time of day, browser version. Flakiness that clusters around a specific variable hands you the diagnosis.

Failure pattern recognition groups failures by error message and stack trace. Fifty failures with the same timeout signature are one problem, not fifty.

3. Manual Identification Techniques

Automation catches most flakes, but people catch them earlier.

Developer reports: Make it trivial to flag a test as suspicious, ideally one click or one command. The developer who just hit a weird failure has context that no dashboard has. If reporting takes more than thirty seconds, it will not happen.

Code review red flags: Reviewers should treat these as flakiness smells: hard-coded sleeps, assertions on timing, dependence on test execution order, real network calls, unseeded randomness, and use of the current date or time.

Audit-based reviews: Once or twice a year, review your slowest and oldest tests. Flakiness concentrates in tests nobody has touched in years, written against assumptions that no longer hold.

Prioritization: Not all flakes deserve equal attention. Investigate first the tests that block merges, flake most often, and cover critical paths. A flaky test in a nightly optional suite can wait.

4. Monitoring and Observability

Detection tells you a test is flaky. Monitoring tells you whether the problem is growing.

Dashboards and trend tracking: A visible flakiness rate, suite-wide and per-team, keeps the problem honest. Trends matter more than snapshots. A suite going from 1% to 3% flaky over a quarter is a fire alarm even though both numbers look small.

Alerting thresholds: Alert when the suite-wide flake rate crosses your agreed limit, or when a previously stable test starts flipping. Route the alert to the team that owns the test, not to a channel everyone mutes.

Correlating spikes with changes: A sudden flakiness spike after a dependency upgrade, CI runner change, or parallelism increase usually is not a coincidence. Keeping deployment and infrastructure events on the same timeline as test results makes these correlations obvious.

Test metadata over time: Ownership, framework, last-modified date, and average duration all help surface patterns. If 70% of your flakes live in one legacy Selenium package, you have a migration argument, not just a bug list.

Proven Strategies to Fix Flaky Tests

Detection techniques let you know how many flaky tests you have. This section is about working through them.

1. The Quarantine Approach

Quarantine means moving a known-flaky test out of the blocking pipeline while keeping it running and tracked. It is the single highest-leverage practice for teams drowning in flakes, because it immediately restores trust in the main suite.

The rules that make quarantine work instead of becoming a graveyard:

  • Quarantined tests still run on every build. You keep collecting data; they just cannot block a merge.
  • Every quarantined test gets an owner and a deadline. Two weeks is a common limit. Miss the deadline and the test is either fixed, rewritten, or deleted with a documented decision.
  • Cap the quarantine size. If the queue exceeds the cap, fixing flakes takes priority over new feature work until it is back under the limit.

2. Framework-Specific Solutions

Playwright: Rely on its auto-waiting and web-first assertions like toBeVisible() instead of manual waits. Use test.describe.configure({ mode: 'serial' }) only when order genuinely matters, and prefer isolated browser contexts per test. Turn on trace collection for retries so every flake comes with a full recording.

Cypress: Let its built-in retry-ability do the waiting. The most common Cypress flake source is cy.wait(ms) with a fixed number; replace it with intercepts and cy.wait('@alias') on actual network requests. Avoid conditional testing based on DOM state, which is almost always a race condition in disguise.

Selenium: Most Selenium flakiness comes from raw Thread.sleep calls and stale element references. Use explicit waits (WebDriverWait with expected conditions) everywhere, relocate elements after page changes, and pin browser and driver versions in CI so upgrades happen deliberately.

Jest and pytest: Enforce isolation: reset modules and mocks between tests, use fresh fixtures instead of module-level state, and seed randomness. Both ecosystems have plugins to detect order dependence by shuffling execution (pytest-randomly, Jest's --randomize). Run them regularly, not just once.

3. Root Cause Resolution Techniques

When a flake needs an actual fix, a repeatable workflow beats improvisation.

Reproduce first:  Run the test in a loop, locally or in CI, until it fails. A hundred runs is a reasonable start. If it will not fail in isolation, run it alongside its full suite, in parallel, on a constrained machine. Matching CI conditions matters more than run count.

Collect artifacts on every failure:  Screenshots, videos, browser console output, network logs, and application logs, captured automatically at failure time. Flakes are too rare to debug live; the artifacts are usually all you get.

Investigate systematically: Walk the six root causes in order of likelihood: timing first, then shared state, then environment. Compare metadata from failing runs against passing ones and look for the variable that differs.

Apply known fix patterns: Most fixes fall into a handful of shapes: replace a fixed wait with an event wait, isolate state with fresh fixtures, mock an external call, seed a random value, or freeze the clock. Document which pattern fixed which test. Your next flake probably matches a previous one.

Flaky Test Prevention Methods

Fixing flakes is necessary. Preventing them is cheaper. Here’s how to prevent flaky tests from reaching CI. 

1. Code Review Checklists

A short, enforced checklist catches most flaky patterns before merge. Here are the essentials:

  • No fixed sleeps. Waits must target a condition or event.
  • Every test passes in isolation and in random order.
  • No real network calls to services you do not control.
  • Randomness is seeded; time is frozen or injected.
  • No assertions on incidental details like element counts that depend on unrelated data.

Write the checklist down and link it in your PR template. Team agreements only work when they are visible, and "we all know not to do that" is not a policy.

One newer item deserves explicit mention: AI-generated test validation. Code assistants produce tests quickly, and they reproduce every anti-pattern in their training data, fixed waits included. AI-generated tests should get the same review scrutiny as human-written ones, plus a stability check: run them 20 to 50 times before merging, not once.

2. CI Configuration Best Practices

Resource allocation: Underpowered runners manufacture timing flakes. If your flake rate drops when you double runner resources, the tests were never the whole problem.

Test sharding: Split the suite across parallel runners, but shard by consistent grouping rather than randomly per run, so failures are comparable across builds. Sharding also exposes hidden order dependencies early, which is painful once and valuable forever.

Retry policies: Automatic retries are acceptable only if every attempt is recorded and flagged. A retry that silently converts a failure into a pass is how flakiness becomes invisible. Retry once, log it, and feed the data into your detection pipeline.

Smoke tests: Run a small, fast, ultra-stable subset first. If the smoke suite fails, skip the rest. This protects the full suite's signal and gives developers feedback in minutes instead of an hour.

3. Writing Resilient Tests

Design for diagnosability: A test that fails with "expected true, got false" wastes an investigation. Write detailed tests with messages, log context, and capture artifacts, so a failure explains itself.

Isolate properly: Each test creates what it needs and cleans up what it made. Unique identifiers per run, fresh database transactions rolled back after each test, and no reliance on anything another test created.

Wait on events: Worth repeating because it fixes the largest category of flakes: wait for the condition you actually care about, with a generous timeout, rather than guessing a duration.

Mock deliberately: Mock external services at the boundary, keep the mocks in sync with real contracts, and maintain a small separate suite that verifies the real integrations without blocking merges.

How TestFiesta Helps With Flaky Test Management

Every detection method, fix strategy, and prevention method we discussed in this guide can be built by hand with CI logs, scripts, and discipline. TestFiesta packages it into one workflow, so your team spends time fixing tests instead of building detection infrastructure.

TestFiesta tracks per-test results across every run, flags tests whose failure patterns match flakiness rather than regression, and correlates failures with environment metadata to point you toward the root cause. Quarantine workflows come with the ownership and deadline mechanics built in, so flagged tests do not disappear into a backlog. It works across Playwright, Cypress, Selenium, Jest, and pytest, and plugs into your existing CI pipeline.

Ready to see your suite's actual flake rate?

Start a free TestFiesta trial and get visibility into your test reliability from your very first pipeline run.

Sign Up for a Free Trial

Frequently Asked Questions

What's the difference between a flaky test and an intermittent bug?

A flaky test fails inconsistently because of a problem in the test or its environment; the product is fine. An intermittent bug is a real product defect that only surfaces under certain conditions, like a race condition in production code. The distinction matters because the fix lives in different places, and the diagnosis is the same in both cases: reproduce the failure and find the hidden variable. Never assume a flapping test is "just flaky" until you have confirmed the product is not the cause. 

How many flaky tests is too many for a test suite?

As a working threshold, keep your suite-wide flake rate under 1% of test runs, and flag any individual test failing more than 2% of runs on stable code. More important than the exact number is the trend. A suite at 0.5% and climbing is in worse shape than one at 1% and falling. If more than roughly 5% of your builds need a rerun to go green, flakiness is actively slowing your delivery and deserves dedicated time.

Should I delete or fix flaky tests?

You should neither delete nor try to fix your flaky test as the first step. Instead, quarantine first. Remove the test from the blocking pipeline, keep running it, and set a deadline. Once you’re at the deadline, decide what you want to do based on value. If the test covers a critical path, fix it. If it duplicates coverage that exists elsewhere, or tests behavior nobody can explain, delete it and document why. Deleting a low-value flaky test is a legitimate engineering decision. Letting it rot in quarantine forever is not.

Can AI really help identify flaky test root causes?

Yes, AI can help with identification of flaky test root causes, but within limits. Pattern recognition across large volumes of test results is exactly what machine learning is good at: clustering failures by stack trace, spotting correlations between failures and environment variables, and matching a new flake against previously diagnosed ones. What AI cannot do is understand your system's intent, so treat its output as a strong hypothesis that a developer confirms, not a verdict.

Tool

Pricing

TestFiesta

Free user accounts available; $10 per active user per month for teams

TestRail

Professional: $40 per seat per month

Enterprise: $76 per seat per month (billed annually)

Xray

Free trial; Standard: $10 per month for the first 10 users (price increases after 10 users)

Advanced: $12 per month for the first 10 users (price increases after 10 users)

Zephyr

Free trial; Standard: ~$10 per month for first 10 users (price increases after 10 users)

Advanced: ~$15 per month for the first 10 users (price increases after 10 users)

qTest

14‑day free trial; pricing requires demo & quote (no transparent pricing)

Qase

Free: $0/user/month (up to 3 users)

Startup: $24/user/month

Business: $30/user/month

Enterprise: custom pricing

TestMo

Team: $99/month for 10 users

Business: $329/month for 25 users

Enterprise: $549/month for 25 users

BrowserStack Test Management

Free plan available

Team: $149/month for 5 users

Team Pro: $249/month for 5 users

Team Ultimate: Contact sales

TestFLO

Annual subscription (specific amounts per user band), e.g., Up to 50 users: $1,186/yr; Up to 100 users: $2,767/yr; etc.

QA Touch

Free: $0 (very limited)

Startup: $5/user/month

Professional: $7/user/month

TestMonitor

Starter: $13/user/month

Professional: $20/user/month

Custom: custom pricing

Azure Test Plans

Pricing tied to Azure DevOps services (no specific rate given)

QMetry

14‑day free trial; custom quote pricing

PractiTest

Team: $54/user/month (minimum 5 users)

Corporate: custom pricing

Black Box Testing

White Box Testing

Coding Knowledge

No code knowledge needed

Requires understanding of code and internal structure

Focus

QA testers, end users, domain experts

Developers, technical testers

Performed By

High-level and strategic, outlining approach and objectives.

Detailed and specific, providing step-by-step instructions for execution.

Coverage

Functional coverage based on requirements

Code coverage

Defects type found

Functional issues, usability problems, interface defects

Logic errors, code inefficiencies, security vulnerabilities

Limitations

Cannot test internal logic or code paths

Time-consuming, requires technical expertise

Aspect

Test Plan

Test Case

Purpose

Defines the overall testing strategy, scope, and approach for a project or release.

Validates that a specific feature or functionality works as expected.

Scope

Covers the entire testing effort, including what will be tested, resources, timelines, and risks.

Focuses on a single scenario or functionality in the broader scope.

Level of Detail

High-level and strategic, outlining approach and objectives.

Detailed and specific, providing step-by-step instructions for execution.

Audience

Project managers, stakeholders, QA leads, and development teams.

QA testers and engineers.

When It's Created

Early in the project, before testing begins.

After the test plan is defined and the requirements are clear.

Content

Scope, objectives, strategy, resources, schedule, environment details, and risk management.

Test case ID, title, preconditions, test steps, expected results, and test data.

Frequency of Updates

Updated periodically as project scope or strategy changes.

Updated frequently as features change or bugs are fixed.

Outcome

Provides direction and clarifies what to test and how to approach it.

Produces pass or fail results that indicate whether specific functionality works correctly.

Tool

Key Highlights

Automation Support

Team Size

Pricing

Ideal For

TestFiesta

Flexible workflows, tags, custom fields, and AI copilot

Yes (integrations + API)

Small → Large

Free solo; $10/active user/mo

Flexible QA teams, budget‑friendly

TestRail

Structured test plans, strong analytics

Yes (wide integrations)

Mid → Large

~$40–$74/user/mo)

Medium/large QA teams

Xray

Jira‑native, manual/
automated/
BDD

Yes (CI/CD + Jira)

Small → Large

Starts ~$10/mo for 10 Jira users

Jira‑centric QA teams

Zephyr

Jira test execution & tracking

Yes

Small → Large

~$10/user/mo (Squad)

Agile Jira teams

qTest

Enterprise analytics, traceability

Yes (40+ integrations)

Mid → Large

Custom pricing

Large/distributed QA

Qase

Clean UI, automation integrations

Yes

Small → Mid

Free up to 3 users; ~$24/user/mo

Small–mid QA teams

TestMo

Unified manual + automated tests

Yes

Small → Mid

~$99/mo for 10 users

Agile cross‑functional QA

BrowserStack Test Management

AI test generation + reporting

Yes

Small → Enterprise

Free tier; starts ~$149/mo/5 users

Teams with automation + real device testing

TestFLO

Jira add‑on test planning

Yes (via Jira)

Mid → Large

Annual subscription starts at $1,100

Jira & enterprise teams

QA Touch

Built‑in bug tracking

Yes

Small → Mid

~$5–$7/user/mo

Budget-conscious teams

TestMonitor

Simple test/run management

Yes

Small → Mid

~$13–$20/user/mo

Basic QA teams

Azure Test Plans

Manual & exploratory testing

Yes (Azure DevOps)

Mid → Large

Depends on the Azure DevOps plan

Microsoft ecosystem teams

QMetry

Advanced traceability & compliance

Yes

Mid → Large

Not transparent (quote)

Large regulated QA

PractiTest

End‑to‑end traceability + dashboards

Yes

Mid → Large

~$54+/user/mo

Visibility & control focused QA

Related Articles

Introduction

Every application has weak spots. The question is who finds them first: your team or an attacker. Penetration testing is how security teams answer that question on their own terms. Instead of waiting for a real attack, you hire or assign someone to break in on purpose, under clear rules, and then show you exactly how they did it.

What Is Penetration Testing

Penetration testing, often called pentesting, is an authorized and simulated attack on a system to find security weaknesses before real attackers do. A tester uses the same techniques an attacker would use to get into an application, network, or cloud environment, then documents what they found and how they got there.

A pentest is different from a vulnerability scan. A scan gives you a list of possible weaknesses. A pentest goes further and tries to exploit them, proving whether a weakness is real and how much damage it could cause. A security scanner might tell you a door looks unlocked. A pentester actually opens it and shows you what’s inside.

Why Penetration Testing Is Important

It shows real risk, not theoretical risk. A list of 300 scanner findings doesn’t tell you which three would actually let an attacker reach your customer data. A pentest does.

It finds what automated tools miss. Flaws in business logic, like a checkout flow that lets users change the price of an item, rarely show up in scans. A human tester thinking like an attacker can spot them.

It tests your defenses, not just your code. A good test also shows whether your monitoring and alerting noticed the attack, and how fast.

It helps meet compliance requirements. Many security frameworks and industry standards expect regular penetration testing as proof that you’re actively checking your defenses.

It builds trust. Customers, especially larger ones, often ask for a recent pentest report before they sign a contract.

Penetration Testing Process: Step by Step

Most penetration tests follow the same basic flow. The details change depending on what’s being tested, but the steps often stay the same.

1. Scoping and rules of engagement

Before any testing starts, both sides agree on what’s in scope and what’s off limits. A clear scope protects the client's systems and protects the tester legally.

2. Reconnaissance and asset discovery

The tester gathers information about the product, such as domains, subdomains, IP ranges, employee names, technology used, and anything publicly exposed. The goal is to build a map of what can be attacked.

3. Scanning and enumeration

The tester probes the product to learn more, such as open ports, services running, user accounts, and product versions. This step turns a rough map into a detailed list of possible entry points.

4. Exploitation and privilege escalation

This is where the tester tries to break in. They attempt to exploit the weaknesses they found to gain access. Once inside, they try to raise their access level, like moving from a regular user account to an admin account.

5. Post-exploitation and impact analysis

The tester now works out what an attacker could actually do with that access. Could they read customer data, move to other systems, or stay hidden for weeks? 

6. Reporting with reproducible evidence

The tester writes up every finding with clear steps to reproduce it for developers, including screenshots or logs as evidence, a severity rating, and a recommended fix. 

7. Remediation and retest

Your team fixes the issues. Then the tester checks again to confirm each fix actually works. 

Types of Penetration Testing

Penetration tests can be grouped in a few different ways: by how much the tester knows going in, by where the attack starts, and by what’s being tested.

1. Grey Box, White Box, and Black Box Penetration Testing

Black box penetration testing gives the tester no prior knowledge of the target. They start with little more than a company name or a URL, just like an outside attacker would. This makes it the most realistic simulation of an outsider attack. This is also known as a blind pen test or closed-box pen test. A double-blind pen test takes it a step further because it leaves the employees or administrators unaware of the test attack.

Grey box testing gives the tester partial knowledge, such as a regular user account or basic architecture details. It’s the most common choice because it balances realism with efficiency. 

White box testing gives the tester full access to source code, architecture diagrams, and credentials. It takes the most effort to set up but offers the deepest coverage, since the tester can see exactly how the system is built.

2. External and Internal Penetration Testing

External penetration testing targets everything you expose to the internet, like websites, login portals, VPNs, email servers, and public APIs. Internal penetration testing assumes the attacker is already inside your network. That could be a malicious insider, or an outsider who got in through a phishing email. The focus is on lateral movement, meaning how far an attacker can spread from one machine to others, and on weaknesses in Active Directory, which controls user accounts and permissions in many companies.

3. Network Penetration Testing

Network penetration testing involves an attempted attack through the network. The pen tester tries to gain access through network areas, such as routers, firewalls, and servers. 

4. AI Penetration Testing

AI penetration testing uses AI models to help with parts of the testing process, such as analyzing reconnaissance data, suggesting attack paths, writing test payloads, or running multi-step attacks on its own.

It can help testers cover more ground in less time. But it still needs human oversight. AI tools can misread results, report issues that aren’t real, or act outside the agreed scope if they aren’t carefully controlled. 

Penetration Testing Tools

Penetration testers use a range of tools to identify vulnerabilities, map attack surfaces, assess security weaknesses, and simulate real-world attacks. Here are some of the most commonly used tools, organized by category.

1. Reconnaissance and OSINT

  • Amass: Maps an organization's attack surface, including subdomains.
  • Subfinder: Discovers subdomains using passive sources.
  • Shodan: Searches for internet-connected devices and exposed services.

2. Scanning and Enumeration

  • Nmap: Discovers hosts, open ports, and running services.
  • Nessus: Scans systems for known vulnerabilities.
  • Nuclei: Runs fast, template-based checks for known security issues.

3. Web and API Testing

  • Burp Suite: Intercepts and modifies web traffic for manual security testing.
  • OWASP ZAP: Provides a free, open-source web application scanner and proxy.
  • ffuf: Fuzzes web applications to discover hidden files, directories, and parameters.
  • sqlmap: Detects and exploits SQL injection vulnerabilities.

4. Exploitation

  • Metasploit: Provides a framework for developing, running, and managing exploits.

5. Active Directory and Internal Network Testing

  • BloodHound: Maps relationships in Active Directory to identify potential attack paths.
  • Impacket: Provides a collection of tools for working with network protocols commonly used in internal network attacks.

6. Password Testing and Traffic Analysis

  • Hashcat: Cracks password hashes using high-performance processing.
  • John the Ripper: Audits and cracks passwords across multiple hash formats.
  • Wireshark: Captures and analyzes network traffic.

How to Choose a Penetration Testing Vendor

A long list of tools tells you very little when evaluating a penetration testing vendor. Anyone can run a vulnerability scanner. What you’re really paying for is the tester’s ability to connect findings, identify complex attack paths, and assess their actual business impact.

Before hiring a vendor, ask who will actually perform the testing and what experience they bring. You should also request a sample report to evaluate the quality and depth of their work.

A good penetration testing report should include:

  • Executive summary: An overview of the security assessment and its key findings.
  • Clear scope: A description of the systems, applications, and infrastructure tested.
  • Detailed findings: Each vulnerability documented with steps to reproduce it.
  • Evidence: Supporting screenshots, logs, or other proof of the findings.
  • Severity ratings: Risk levels based on actual business impact.
  • Remediation guidance: Specific, actionable recommendations for fixing each vulnerability.

Ultimately, the quality of a penetration test is determined by the depth of the assessment and the usefulness of its findings, not the number of tools in the tester’s toolkit.

TestFiesta: Keep Your Pentest Findings In One Place 

Running a penetration test is only the first step. The real challenge begins after the assessment: ensuring every vulnerability is accurately documented, prioritized, remediated, and verified. Without a centralized system, security teams often struggle with scattered findings, disconnected workflows between security and development, and a lack of visibility into remediation progress.

Using a specialized test management platform bridges the gap between penetration testing results and software engineering. It converts static pentest reports into actionable, trackable items within your existing development lifecycle.

1. Centralized Defect Logging & In-Context Defect Tracking

Log security findings directly alongside test suites. By capturing vulnerabilities where testing occurs, each defect remains linked to the exact test case that identified it, preventing lost context.

2. Seamless Jira & GitHub Integration

Automatically create and synchronize issues in Jira or GitHub directly from failed tests. This places security findings directly into developer backlogs with full context, automated field mapping, and bi-directional status updates.

3. Comprehensive Evidence Management

Attach reproduction steps, screenshots, payload details, and system logs directly to test results. Tagging and organizing evidence ensures developers have all necessary context to reproduce and fix issues efficiently.

4. Retest Planning & Verification Tracking

Group verification checks into dedicated test runs and milestones. Assign retests to team members with due dates and update execution statuses (Passed, Failed, Incomplete, Skipped, or Untested) to maintain full clarity on fixed vs. open items.

5. Security Regression Test Suite

Convert resolved pentest findings into permanent test cases organized in structured suites. Reusable steps and integration with the TacoTruck CLI allow automated security test execution directly within your CI/CD pipeline.

6. Real-Time Dashboards & AI-Assisted Authoring

Monitor open, high-priority, and recently resolved defects at a glance without generating manual status reports. Additionally, TestFiesta’s AI Copilot automatically converts requirements, user stories, and visual inputs into complete security test cases.

Keep your pentest findings organized in one place. Try TestFiesta today.

Start your free trial

FAQs

How often should you run a penetration test?

Most security frameworks and compliance standards expect a penetration test at least once a year. You should also run one after any major change, such as a new product launch, a large infrastructure move, or a big update to authentication. Teams that release code frequently often add continuous testing between full tests. The right frequency depends on how quickly your systems change and how sensitive your data is.

How much does a penetration test cost?

Penetration testing cost depends mostly on scope and depth. A test of a single small web app costs far less than a test covering multiple apps, internal networks, and cloud environments. Other factors include the type of testing (black, grey, or white box), how much manual work is involved, and whether a retest is included. The best way to compare is to get quotes from several vendors based on the same written scope.

Can automated or AI tools replace human pentesters?

Not yet. Automated and AI tools are good at finding known issues quickly and at scale, but they struggle with business logic flaws and complex attack chains. They also need human review to confirm findings and filter out false positives. The most effective approach today combines tools for speed with skilled testers for judgment.

Is penetration testing legal, and what authorization is needed?

Penetration testing is legal when it’s done with clear, written permission from someone who has the authority to grant it. That permission should define the scope, the timing, the testing methods allowed, and who to contact if something goes wrong. If you use third-party services, such as a cloud provider, check their testing policies too, since some activities need advance notice. Testing a system without permission is illegal, even if the intent is good.

Testing guide

Introduction

Customers expect every software product to work the way it’s intended. A login button promises to log you in, the checkout page promises to charge your card once, not twice, and the “forgot password” link promises you a reset link. If any of these functions break, users notice it right away.

Functional testing is a way to make sure the functions are working for the end users. This blog outlines steps for functional testing, along with its main types and the tools that make the work faster.

What Is Functional Testing

Functional testing is a major type of software testing that checks whether software does what it is supposed to do. You give the system an input and confirm that the output matches the requirement. 

For instance, if you log in with the right password, you should land on your dashboard. But if you enter the wrong one, you should see a clear error message, not a blank screen or a crash.

The focus of functional testing is on behavior, not code. A functional tester usually does not care how the login feature is built. They care whether it works the way the requirements say it should, for every type of user and every type of input.

Why Functional Testing Matters

Functional testing is one of the most important types of software testing, and it adds value at several points in the process.

It catches the bugs users would hit first. Broken buttons, wrong totals, and forms that reject valid data are the problems people notice right away. Finding them before release is far cheaper than fixing them after customers complain.

It proves the requirements were met. Each functional test traces back to a requirement or acceptance criterion. When the tests pass, the team has evidence that the product does what was agreed.

It protects the flows that matter most. Sign-up, checkout, payments, and data exports are where bugs cost real money and trust. Functional tests keep a constant watch on those paths.

It gives the team confidence to ship. A clear set of passing tests confirms the functionality of a product, which makes release decisions faster and less stressful.

It sets up every other kind of testing. Functional testing confirms the basics with unit testing and branches off into other complex types of testing, such as integration testing and API testing. 

Functional Testing vs. Non-Functional Testing

The opposite of functional testing is non-functional testing. Functional testing checks what the software does, and non-functional testing checks how well it does it.

For example, in an online store checkout, functional tests confirm that items land in the cart, the total accounts for taxes and discounts, the payment goes through, and the confirmation email arrives. Each of these has a clear right or wrong answer based on the requirements.

In contrast, non-functional tests look at the same checkout from a different angle. How fast does the page load when thousands of people shop at once? Is the card data encrypted? Can someone using a screen reader complete a purchase? Does the page still work on an older phone? These examples are part of performance testing, accessibility testing, and security testing, which stem from non-functional testing. 

Types of Functional Testing

Functional testing is a broad term for different types of testing, each with its own job and its own place in the release cycle.

1. Unit, Integration, and E2E Testing

Unit testing checks the smallest pieces of code on their own, like a function that calculates sales tax. Developers usually write these tests, and they run in seconds.

Integration testing checks how those pieces work together. The tax function might work fine alone, but does the cart pass it the right values? Does the payment service accept what the order service sends? Many bugs live in the gaps between components, and integration tests are built to find them.

End-to-end (E2E) testing validates an entire application workflow from start to finish to verify that all integrated components work together as expected.

Together, these three types of testing make a testing pyramid.

2. Smoke and Sanity Testing

Smoke testing is a quick, shallow check of the most critical features right after a new build. If users cannot log in or the home page will not load, there is no point running hundreds of detailed tests.

Sanity testing is a narrow, focused check after a small change or bug fix, run to confirm the fix behaves as expected before deeper testing starts.

3. System Integration Testing

System integration testing (SIT) checks the complete, integrated product against its requirements. Instead of testing parts, you test the whole application the way it will run in production.

4. Regression Testing

Regression testing confirms that features that used to work still work after a change. A small update to the discount logic can quietly break the checkout total, and regression tests exist to catch exactly that. Since regression suites are run again and again, often on every build, they are usually the first tests teams automate.

5. User Acceptance Testing (UAT)

User acceptance testing (UAT) is the final check before release, and it is done by business users or customers rather than the QA team. They test the software against real business scenarios to confirm it solves the problem it was built for. Passing every technical test does not guarantee the product is right for its users. UAT is where the people who will actually use the software sign off.

6. Exploratory Testing

Exploratory testing is a kind of functional testing that is unscripted. Instead of following written test cases, the tester explores the product, using their experience and judgment to find problems that are rarely expected or not expected at all.

How to Perform Functional Testing: A Step-by-Step Guide

Good functional testing follows a repeatable process. Here is a six-step approach you can apply to almost any feature.

1. Review Requirements and Acceptance Criteria

Start with what the feature is supposed to do. Read the user stories, specifications, and acceptance criteria, and make sure each one is clear enough to test. If a requirement says “the page should load quickly,” ask for specifics—how quickly? You cannot write a pass or fail test against a vague requirement, and questions asked now are much cheaper than bugs found later.

2. Identify Test Scenarios and Test Data

List the scenarios you need to cover, and plan the data for each one. Aim for three kinds of input:

  • Valid data: Inputs that should work, like a correct email and password.
  • Invalid data: Inputs that should be rejected, like an email with no “@” symbol.
  • Boundary data: Values at the edges of what is allowed. Boundaries are where bugs love to hide. If a quantity field accepts 1 to 10 items, test 0, 1, 10, and 11. Those four values will tell you more than testing 5 a dozen times.

3. Write Test Cases

When writing test cases, turn each scenario into a clear test case that anyone on the team could run. A good test case includes:

  • Preconditions: What must be true before you start, such as “user has an active account.”
  • Steps: The exact actions to take, in order.
  • Expected result: What should happen if the feature works.

For example: 

Precondition: The user is logged in with an empty cart. 

Steps: Add one item priced at $20, apply the code SAVE10, and go to checkout. 

Expected result: The order total shows $18.

4. Execute the Tests

Run the test cases, either manually or with automation. Manual testing suits new features, visual checks, and anything that needs human judgment. Automation suits tests you will repeat often, like regression suites and smoke tests. Whichever method you use, run the tests in an environment that matches production as closely as possible. A test that passes on your laptop but fails on a live server has not told you much.

5. Compare Results and Log Defects

For each test, compare the actual result with the expected result. If they match, the test passes. If not, log a defect. A useful bug report includes the steps to reproduce it, the expected and actual results, the environment, and screenshots or logs where helpful. The goal is simple: a developer should be able to recreate the bug without coming back to ask you questions.

6. Retest and Run Regression Checks

Once a defect is fixed, run the failed test again to confirm the fix works. Then run your regression tests to make sure the fix did not break something else. This step is easy to skip under deadline pressure, and it is often where new bugs sneak into a release.

Functional Testing Tools

Testing teams use a wide range of tools to perform functional testing. Here are the main categories and some well-known examples of each:

Unit and Integration Testing Frameworks

Common examples of unit and integration testing frameworks include JUnit, pytest, and Jest. These frameworks let developers test individual functions and how components connect. They usually match the programming language of the project.

Web UI Automation Tools

Major examples of web automation tools include Selenium, Playwright, and Cypress. These tools drive a real browser to click buttons, fill in forms, and check what appears on screen, making them a natural fit for system and end-to-end tests.

Mobile Testing Tools

Mobile app tesing needs tools that can interact with real devices and emulators, such as Appium, Espresso, and XCUITest.

API Testing Tools

Many functional bugs can be caught at the API layer, without touching the interface at all. API tests also run faster and break less often than UI tests. Common API testing tools include Postman and REST Assured.

BDD Frameworks

Behavior-driven development (BDD) tools let teams write tests in plain language that business users can read, using a Given, When, Then format. Cucumber is the most widely known BDD framework, with support for several programming languages.

Codeless and Low-Code Automation Tools

Codeless and low-code automation tools let testers automate functional tests without writing much code, using recorders, visual builders, or plain-English steps. Common examples in this category include Katalon, mabl, and testRigor.

CI/CD Tools

CI/CD tools, such as Jenkins, GitHub Actions, and GitLab CI/CD, run your automated functional tests every time code changes, so problems surface within minutes instead of days.

Test Management Tools

The data in all testing frameworks and tools live inside their own platform. Test management tools allow you to integrate your testing data, results, and defects into one place, so your team can see what was tested, what passed, what failed, and what is still open, in one view. TestFiesta is a flexible test management platform that helps you write test cases with AI, log defects from the tool (without relying on issue trackers), and organize your test cases intuitively.

Centralize Your Functional Testing with TestFiesta

Functional testing is most effective when all results are consolidated. TestFiesta provides a unified test management platform to plan, execute, and track both manual and automated testing in one place.

  • Unified Testing Results: Combine manual test cases and automated CI/CD pipeline results via the TacoTruck CLI for complete release visibility.
  • AI-Powered Authoring: Accelerate test case creation using AI assistance, reusable steps, and customizable templates.
  • Flexible Suite Organization: Structure tests into modular suites, map execution to milestones, and categorize workflows with custom tags.
  • Seamless Defect Management: Log bugs directly from test runs or sync natively with Jira and GitHub.
  • Data-Driven Insights: Track pass/fail trends and open issues with real-time dashboards to make confident release decisions.

Streamline your functional testing today with TestFiesta

Start your free trial today

FAQs

Is functional testing black-box or white-box testing?

Functional testing is mostly black-box testing. The tester checks inputs and outputs against the requirements without looking at the code, which is a characteristic of black-box testing. Unit-level tests written by developers are the exception, since they are built with knowledge of the code.

Can functional testing be done without writing code?

Yes. Manual functional testing needs no code at all, and codeless tools let testers automate tests through recorders, visual builders, or plain-English steps. Large or complex automated suites usually still benefit from some scripting.

Who is responsible for functional testing, developers or QA?

Both developers and QA are responsible for functional testing. Developers usually own unit and integration tests, while QA owns system, regression, and exploratory testing. Business users or customers handle user acceptance testing before release.

Testing guide

Introduction

Accessibility testing checks whether people with disabilities can use your website or app without barriers. This includes users who are blind or low-vision, deaf or hard of hearing, keyboard-only navigators, and those with cognitive or learning disabilities.

While most teams value accessibility, many struggle to define what to test, select the right tools, or maintain checks in their release workflow. This guide covers the essential standards of accessibility testing, a three-layer testing methodology, key web and mobile differences, top tools, and answers to common team questions.

What Is Accessibility Testing

Accessibility testing is the process of checking that a digital product works for everyone, including people who rely on assistive technology or use their devices in different ways. It asks simple questions, such as:

  • Can someone reach every button using only a keyboard? 
  • Does a screen reader announce what an image shows? 
  • Is the text readable against its background? 
  • Can someone who can’t hear follow a video?

Accessibility testing is continuous, and it works best when it runs alongside the rest of your QA process.

Why Accessibility Testing Matters

There are three good reasons to take accessibility testing seriously:

  • More people can use your product: Disabilities are common, and many more people deal with temporary or situational limits, like a broken arm, bright sunlight on a screen, or a noisy room.
  • Legal risk goes down: Many countries have laws that require digital products to be accessible, and most of them point to the same set of guidelines.
  • Quality goes up: Clear labels, logical structure, and good contrast make a product easier for everyone, not just users with disabilities.

What Are Web Content Accessibility Guidelines (WCAG)?

The Web Content Accessibility Guidelines, or WCAG, are the global standard for digital accessibility. They’re published by the World Wide Web Consortium (W3C), and most accessibility laws and audits measure products against them. 

WCAG is built on four principles, often shortened to POUR:

  • Perceivable: Users can see or hear the content. Images have text alternatives, videos have captions, and text has enough contrast.
  • Operable: Users can use every control, whether they navigate with a mouse, keyboard, or voice.
  • Understandable: Content and behavior are clear and predictable. Forms explain errors, and navigation stays consistent.
  • Robust: Content works with a wide range of browsers and assistive technologies.

Under these principles sit testable rules called success criteria. Each one has a conformance level:

Level A (Minimum Compliance): Establishes the essential baseline for web accessibility. It addresses fundamental barriers that would otherwise prevent users with disabilities from accessing or interacting with content entirely (e.g., providing alt text for images, basic keyboard navigation, and avoiding content that causes seizures).

Level AA (Standard Compliance): Serves as the widely accepted global benchmark for web accessibility and legal compliance. It removes significant barriers for a broader population of users with diverse visual, hearing, cognitive, and motor impairments (e.g., ensuring adequate text contrast, visible focus states, consistent navigation, and clear error handling).

Level AAA (Enhanced Compliance): Represents the highest and most stringent level of accessibility. It incorporates specialized criteria designed to optimize usability for users with specific or severe disabilities (e.g., providing sign language interpretation for audio, extended color contrast ratios, and simplified reading levels). Note that full Level AAA compliance across an entire site is generally not required or feasible for all content types.

The Accessibility Testing Tools Worth Knowing

Instead of using dozens of accessibility tools and cluttering your QA process, focus on a core set that covers each layer of testing. Most QA teams rely on the following essentials.

axe DevTools: Scans pages for WCAG issues and explains how to fix each one.

WAVE: Places icons directly on the page to show errors, alerts, and structure. 

Google Lighthouse: Gives each page an accessibility score and a list of issues. 

Pa11y: Command-line tool that runs accessibility checks on any URL. 

Accessibility Scanner (Android): A free app that scans any screen on an Android device and suggests fixes for issues.

Xcode Accessibility Inspector (iOS): A tool that comes with Xcode and lets you inspect the accessibility details of each element in an iOS app.

Learn more about accessibility testing tools.

TestFiesta Keeps Your Accessibility Testing From Falling Through the Cracks

Accessibility testing often fails due to fragmented workflows: automated scans stay in CI/CD, manual logs remain in personal notes, and screen reader findings get lost in chat. TestFiesta unifies all three testing layers into a single platform.

  • Reusable Test Cases: Convert keyboard, zoom, and screen reader checks into standardized test cases with reusable steps for repeated actions.
  • Test Execution and Tracking: Schedule accessibility passes per release to monitor pass/fail status and test coverage in real time.
  • Defect Management: File accessibility defects directly from test runs and sync them to Jira or GitHub with full contextual details.
  • AI Test Case Generation: Automatically generate accessibility test cases from requirements, user stories, or UI screenshots.
  • CI/CD Integration: Import automated test results via the TacoTruck CLI alongside manual testing reports.

Accessibility shouldn’t be an afterthought or a chaotic scramble before release. Take control of your accessibility testing with TestFiesta.

Start a free trial today

FAQs

How is accessibility testing different from usability testing?

Usability testing checks whether a product is easy and pleasant to use for a general group of users. Accessibility testing checks whether people with disabilities can use it at all, often against WCAG criteria. 

Is accessibility testing different from user acceptance testing?

Yes, User acceptance testing (UAT) confirms that a product meets business requirements before release, usually with end users or stakeholders. Accessibility testing focuses on whether people with disabilities can use the product. 

Which WCAG level should my team be targeting, A, AA, or AAA?

Most teams should target WCAG 2.2 Level AA. It’s the level most laws and contracts ask for, and it covers the barriers users hit most often. 

Can I pass an accessibility audit using only automated tools?

No, automated tools only catch part of the WCAG criteria, and they can’t judge things like whether alt text makes sense or whether a screen reader user can complete a task. Auditors test manually and with assistive technology, so you should too.

Testing guide
Best practices

Ready for a Platform that Works

The Way You Do?

Stop fighting your tools. Start shipping with confidence. TestFiesta adapts to your workflow, not the other way around.

Welcome to the fiesta!