Back to Blog
Testing guide

What Is Performance Testing: Types, Metrics, and Tools

Learn performance testing in detail and discover the 6 core types, key metrics, and API testing and load testing playbooks for better products.

Armish Shah
August 25, 2026
September 4, 2026
What Is Performance Testing: Types, Metrics, and Tools

Testing guide

What Is Performance Testing: Types, Metrics, and Tools

by:

Armish Shah

September 4, 2026

8

min

Share:

What Is Performance Testing: Types, Metrics, and Tools | TestFiesta
On this page

Ready to take your testing to
the next level?

Sleek and intuitive workflows
Transparent pricing
Easy migration

Introduction

Performance testing is one of the most important types of software testing that determines whether your software stays fast, stable, and reliable when real traffic comes in. 

This guide will explain performance testing in detail and break down the six types of performance testing, along with metrics that actually matter and the tools built for each type, including AI-specific options. 

You’ll also find playbooks for API load testing, LLM performance testing, and building performance gates into your CI/CD pipeline, so you can catch regressions before your users do.

What Is Performance Testing in Software

Performance testing is the practice of measuring how a software system behaves under demand: how fast it responds, how stable it stays, and how well it scales as load increases.

Where functional testing asks “does it work?”, performance testing asks “does it stay fast and reliable when real users arrive?” 

In simple words, a checkout flow that passes every functional test can still collapse on Black Friday due to traffic. And performance testing exists to find that out before your customers do.

The 6 Types of Performance Testing

Performance testing is an umbrella term that includes several types of testing, including load testing, stress testing, spike testing, and soak testing. Each applies a different traffic pattern to the same system to answer a different question: can it handle expected traffic, where does it break, can it absorb a surge, and does it degrade over time? Understanding which question you are asking determines which test you run.

Load Testing

Load testing simulates the number of concurrent users the system is expected to handle at normal peak traffic. You ramp to target concurrency, hold it there, and measure response times, error rates, and resource utilization while the system works.

This answers the most fundamental performance question: can the system handle the traffic it was built for? Run it before every major release and after any significant architectural change. The output is a baseline, a known-good performance profile that every subsequent test gets measured against. Without that baseline, you cannot tell a regression from normal variance.

Stress Testing

Stress testing pushes the system past its known limits. You keep increasing the load until something fails, deliberately. It answers the question load testing does not: what happens when traffic exceeds capacity?

The failure mode matters as much as the failure point. Does the system fail gracefully, queuing requests and returning 503s with retry headers? Or does it fail catastrophically, crashing, corrupting data, or hanging indefinitely? A system that degrades gracefully under overload is operationally manageable. One that crashes silently is not, and you want to learn which one you have in a test environment rather than an incident channel.

Spike Testing

Spike testing applies a sudden, sharp increase in load, an instantaneous jump to high concurrency. It simulates the traffic events that actually take systems down: a product launch, a viral social post, a flash sale, or a breaking news story.

The question it answers is whether the software can absorb the transition from normal to extreme without dropping requests or corrupting state. Autoscaling that takes three minutes to respond is useless against a spike that arrives in three seconds.

Soak Testing

Soak testing, also called endurance testing, runs a moderate load for an extended period, usually in hours. It surfaces the failure modes that never appear in short tests, such as memory leaks that accumulate slowly, connection pool exhaustion, log files that fill disks, database index fragmentation, and cache eviction patterns that degrade hit rates over time.

A system that passes a 10-minute load test and fails after 6 hours of normal traffic has a soak problem, and no amount of short testing will find it. Run soak tests on a weekly schedule in a staging environment to stay on top of your product’s durability.

Scalability Testing

Scalability testing increases load in controlled steps and measures how performance changes at each level. It answers the architectural question: does performance degrade linearly, sublinearly, or does it cliff at a specific threshold?

A system that handles 100 concurrent users at 200ms p95 and 1,000 concurrent users at 210ms p95 scales well. One that handles 100 users at 200ms and 500 users at 4,000ms has a bottleneck that will surface in production at a specific traffic level. Scalability testing tells you exactly where that level is, so capacity planning becomes math instead of guesswork.

Volume Testing

Volume testing stresses the system with large volumes of data rather than large numbers of users. It surfaces a different class of failure entirely, such as database queries that run fine on 10,000 rows and time out on 10 million, report generation that works at 1,000 records and exhausts memory at 100,000, and search indexes that degrade as the corpus grows.

Teams that focus exclusively on concurrent users overlook this one, and it is critical for any application where data volume grows continuously. Your user count might stay flat while your database quietly grows toward a cliff.

Important Performance Testing Metrics 

Performance testing measures the following two fundamentally different aspects of a system:

Server-side metrics: These describe how the backend performed and include: 

  • Response time (p50/p95/p99). Always read response time as percentiles, not averages. An average response time of 200ms that hides a p99 of 8,000ms means 1 in 100 users waits 8 seconds. The p95 is your SLA number; the p99 is your early-warning threshold.
  • Throughput. Throughput is the number of requests per second the system successfully handles. The ceiling where throughput plateaus while latency keeps climbing is your saturation point, and it is worth knowing before production finds it for you.
  • Error rate. Error rate is the percentage of requests returning errors like 5xx responses, timeouts, and connection refusals. Below 0.1% is healthy. Above 1% under load is a hard failure.
  • Resource utilization. Resource utilization measures CPU, memory, database connection pool, and GPU utilization for AI systems. These numbers spike before latency does, which makes them your earliest signal that saturation is approaching.

Experience-side metrics: These describe what the user actually felt:

  • Core Web Vitals. Core Web Vitals include Largest Contentful Paint (LCP), Interaction to Next Paint (INP), and Cumulative Layout Shift (CLS). LCP measures when the main content loads, INP measures how fast the page responds to clicks, and CLS measures how much the layout jumped around. These can only be measured in a real browser, not by protocol-level tools that never execute JavaScript.
  • Time to First Byte (TTFB). TTFB measures how long before the browser receives the first byte of the response. A fast TTFB does not guarantee a fast page. A slow TTFB guarantees a slow one.
  • Total page load time. Total page load time measures the time to load the full experience, including JavaScript execution, image loading, and third-party scripts. This is what users actually experience, and it can be many times the server response time.

API Performance Testing: 4-Step Playbook

API performance testing is where protocol-level tools shine. Stateless requests, deterministic responses, and high concurrency requirements map directly onto what k6, JMeter, and Gatling were built for. Four practices separate useful API load tests from theater:

1. Test each endpoint independently before testing the full flow. A bottleneck at one endpoint stays invisible inside an end-to-end flow test until it is consistent enough to surface at p95. Isolate first, integrate second.

2. Use realistic request distributions. A load test that sends the same request 10,000 times is not representative of anything. Production traffic has a distribution of payload sizes, query complexities, and authenticated versus unauthenticated requests. Sample from production logs to build scenarios that resemble reality.

3. Test error handling under load. Most teams test the happy path under load and assume error handling works. Deliberately inject failures at load: timeouts, malformed payloads, auth failures. Then verify that the error responses are correct, the retry logic does not amplify load into a self-inflicted outage, and the circuit breakers trip at the right thresholds.

4. Establish a performance budget per endpoint. Define acceptable p95 response times for each endpoint before testing, not after. A search endpoint at 500ms p95 is a different standard than a health check at 20ms p95. Without per-endpoint budgets, performance testing produces numbers with no pass/fail criteria attached, which is measurement, not testing.

Tips to Do AI Performance Testing

AI performance testing has different failure modes, different testing metrics, and different tooling requirements, and treating an inference endpoint like a REST API will give you clean dashboards over a degrading system.

Here are some tips to note if you’re building on LLMs:

TTFT and ITL Are Your Primary Metrics. Time to First Token (TTFT) is the LLM equivalent of TTFB: how long before the user sees any output at all. Inter-Token Latency (ITL) measures how consistently tokens stream after the first one. A TTFT of 500ms with a steady 50ms ITL feels fast. A TTFT of 200ms with 2-second pauses between tokens feels broken, even if the total response time is similar. ITL degradation is typically the first visible symptom of GPU saturation, appearing before TTFT degrades.

Notice GPU saturation, not CPU saturation. AI inference is GPU-bound. Monitor GPU compute utilization, GPU memory, and KV cache usage throughout load tests. HTTP latency is a lagging indicator here: by the time it spikes, the GPU has been saturated for a while, and the request queue is already growing. GPU metrics are the leading indicators, and standard load tools do not collect them.

Quality and speed degrade under load. For traditional APIs, correctness is binary. The response matches the expected output, or it does not. For LLM systems, output quality can degrade under high concurrency, and latency metrics will never show it. The fix is to mix canary prompts with known-good reference outputs into load test traffic and score the responses. A quality drop that only appears at high concurrency is a real capacity limit, and it is invisible to every latency chart you have.

Cost is a performance dimension. A traditional API can scale horizontally at roughly linear cost. GPU capacity scales in discrete, expensive jumps, and underutilized GPU instances represent significant wasted spend. Load test results for AI systems need to inform capacity provisioning and cost-per-request modeling, not just SLA commitments. A configuration that meets latency targets at twice the necessary cost has failed a performance test, just a different one.

TestFiesta Brings Performance Test Results Into the Same Place as Everything Else

Performance testing generates some of the most actionable quality signals in software development, such as a p95 regression, a throughput ceiling, a soak failure, and quality degradation under load. Those signals live in different places, like a k6 dashboard, a CI log, a load test report, a Grafana board, or a spreadsheet someone updates before releases. 

None of it connects to the test cases your QA team maintains, the release decisions your leads make, or the coverage picture anyone tracks.

TestFiesta closes that gap. It gives you structured test case organization across functional and performance testing, pass/fail tracking against the performance budgets your CI enforces, and release readiness visibility that offers quick, actionable, and objective insights with one view of a customizable dashboard. Performance results become part of the same quality record as everything else, because that is where release decisions actually get made.

Performance metrics, CI logs, and QA test cases shouldn’t live in isolation.

TestFiesta bridges the gap by centralizing your functional and performance testing into one source of truth.

Start your free trial on TestFiesta today

FAQs

What’s the difference between performance testing and load testing?

Load testing is one specific type of performance testing. It simulates expected peak concurrent users to verify the system holds up under normal demand. Performance testing is the umbrella discipline that includes load, stress, spike, soak, scalability, and volume testing, each applying a different traffic pattern to answer a different question. 

When should performance testing start in the development lifecycle?

Performance testing should start as early as the component level, not as a pre-release activity. Testing individual APIs, database queries, and service endpoints catches bottlenecks when they are cheapest to fix, before they are embedded in an integrated system. 

What tools should I use for performance testing?

The tools you should use for performance testing depend on what you’re testing. For API and high-concurrency load testing, k6 is the modern developer-friendly choice, with JavaScript test scripts, CLI execution, and native CI/CD integration. JMeter is the mature enterprise option with the widest protocol support. For web application experience testing, including Core Web Vitals under load, use a real-browser tool such as a Playwright-based load generator or Evaluat. For AI inference benchmarking, NVIDIA’s AIPerf (formerly GenAI-Perf) measures TTFT, ITL, and throughput directly. 

How is AI performance testing different from traditional performance testing?

AI performance testing is different from traditional performance testing in four fundamental aspects. One, in AI performance testing, the primary latency metrics are Time to First Token (TTFT) and Inter-Token Latency (ITL) rather than response time. Two, the resource bottleneck is GPU memory and compute rather than CPU. Three, output quality can degrade under high concurrency, not just speed, which requires quality scoring mixed into load test traffic. Four, cost is a first-class performance dimension because GPU scaling is discrete and expensive.

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

Large language models are now a part of core enterprise infrastructure, which is why it’s critical to ensure they are safe, accurate, and high-performing at scale. 

Traditional software testing methods fall short in this landscape. As a result, QA teams are required to adopt entirely new frameworks, metrics, and red-teaming strategies to build truly production-ready AI applications.

What Is LLM Testing

LLM testing is the process of evaluating a large language model or LLM-powered application against defined expectations for quality, safety, performance, and security. In practice, most QA teams are not testing a foundation model from scratch. They are testing what sits on top of it, such as prompts, retrieval pipelines, tool calls, guardrails, and business logic that turn a general model into a product. That distinction shapes the work. 

A chatbot that answers billing questions needs to pull the right account policy, stay on topic, refuse requests it should not fulfill, and respond fast enough that customers don’t give up on it. In this case, each function a chatbot performs is a testable behavior.

LLM testing usually combines three kinds of checks:

  1. Deterministic assertions for anything with a clear right answer, such as valid JSON, required fields, or a banned phrase never appearing.
  2. Model-graded evaluation, where a second model scores outputs against a rubric. This is often called LLM-as-a-judge.
  3. Human review for judgment calls that automated scoring still gets wrong.

The result of LLM testing is a measured picture of how often the system behaves as intended, and whether it improves or degrades with each change.

The 4 Main Types of LLM Testing

Most LLM test plans fall into four categories, each targeting a different risk. A production-ready application needs coverage in all four. 

1. Functional Testing

Functional testing checks whether the application does its job, like answering correctly, following instructions, and producing output in the expected format.

Typical test cases cover:

  • Task accuracy: Does the summary capture the key points? Does the extraction pull the right fields?
  • Instruction following: Does the model respect length limits, tone requirements, and output schemas?
  • Retrieval quality: In RAG systems, did the pipeline fetch the right documents, and did the answer actually use them?
  • Multi-turn behavior: Does the assistant keep track of context from earlier in the conversation?
  • Tool and agent behavior: Did the agent call the right tool, with valid arguments, in a sensible order?

Build functional tests from real user scenarios rather than generic prompts. A test set drawn from actual support tickets or product requirements catches far more than one built from templated questions. Every bug a user reports should also become a permanent regression case.

2. Performance and Reliability Testing

Performance testing measures how fast and how consistently the application responds under realistic load. LLM latency behaves differently from typical API latency because responses stream token by token and output length varies with every request.

Key areas to cover:

  • Latency: Time to first token, total response time, and tokens per second.
  • Load behavior: How latency and error rates change as concurrent users grow, and where provider rate limits kick in.
  • Consistency: Whether the same prompt produces stable quality across repeated runs.
  • Failure handling: Timeouts, provider outages, truncated responses, malformed output, and whether retries and fallbacks work.
  • Cost: Token usage per request, since a prompt change that doubles output length also doubles spend.

Reliability is where non-determinism hurts most. Run each critical test case several times and track the spread, not just the average. A feature that answers correctly 9 times out of 10 still fails visibly for a share of real users.

3. Safety and Content Testing

Safety testing checks whether the application produces harmful, biased, or off-policy output, including when users are not trying to break it.

Coverage usually includes:

  • Toxicity and harmful content: Hate speech, harassment, and violent or sexual content.
  • Bias: Whether answers or tone shift based on names, genders, or other demographic cues in the prompt.
  • Policy compliance: Staying within brand guidelines and avoiding medical, legal, or financial advice where the product shouldn't give it.
  • Refusal calibration: Refusing what it should without over-refusing legitimate requests.
  • Privacy: Not repeating personal data from context or logs in its responses.

Over-refusal deserves its own test cases. A model that declines half of valid customer questions passes every safety check and still fails the product. Track refusal rate and harmful output rate together.

4. LLM Penetration Testing

LLM penetration testing attacks the application the way a malicious user would. Safety testing asks whether the model says something harmful, whereas penetration testing asks whether an attacker can make the system do something it was never meant to do.

Common attack categories to test:

  • Direct prompt injection: Inputs that try to override system instructions, such as “ignore previous instructions and…”
  • Indirect prompt injection: Malicious instructions hidden in content the model reads, like a web page, uploaded file, or document in a RAG index.
  • System prompt leakage: Attempts to extract hidden instructions, internal rules, or credentials placed in prompts.
  • Sensitive data disclosure: Getting the model to reveal other users’ data or internal documents from its context.
  • Excessive agency: Tricking an agent into calling tools, sending messages, or changing data beyond what the user is authorized to do.
  • Insecure output handling: Model output passed unchecked into a browser, database query, or shell.
  • Resource abuse: Prompts designed to max out tokens, loop agents, or run up costs.

When a model can take actions, a successful injection can send emails, modify records, or expose data. Pair automated attack generation with manual testing, and retest after every prompt or tool change.

LLM Testing Frameworks and Tools Worth Knowing

No single tool covers every type of LLM testing. Most teams pair an evaluation framework for functional and RAG metrics with a dedicated tool for security scanning. 

1. DeepEval

DeepEval is a Python LLM testing framework (Apache 2.0) integrated with Pytest. It provides metrics for RAG quality, agent behavior, conversation context, toxicity, custom evaluation, and synthetic dataset generation for CI/CD integration.

Best for: Teams that want LLM tests to live alongside their existing Python test suite.

2. Promptfoo

Promptfoo is a CLI tool and library (MIT) for declarative evaluation and red-teaming. It compares prompts and models across providers and generates adversarial tests for prompt injection, jailbreaks, and data exfiltration.

Best for: Prompt and model comparisons, and automated LLM penetration testing.

3. Giskard

Giskard is an open-source Python library (Apache 2.0) that automatically detects hallucinations, prompt injection, and bias. Its RAGET module generates test cases to evaluate retriever and generator performance separately.

Best for: Surfacing vulnerabilities you don’t typically test for, especially in RAG applications.

4. TruLens

TruLens (MIT) pairs OpenTelemetry tracing with model evaluations to measure latency, token usage, cost, and the RAG triad (context relevance, groundedness, and answer relevance).

Best for: Pinpointing where in a multi-step pipeline quality breaks down, and comparing app versions on quality, latency, and cost.

5. Ragas

Ragas (Apache 2.0) evaluates retrieval-augmented generation systems through faithfulness, answer relevancy, context precision, and recall metrics, alongside synthetic test dataset generation.

Best for: RAG evaluation and teams that need to build a test set from scratch.

Key LLM Testing Metrics

LLM testing differs from usual software testing metrics. Most quality metrics in LLM testing score from 0 to 1, and your team sets the threshold that counts as a pass.

1. Faithfulness

Faithfulness measures whether the claims in an answer are supported by the context the model was given. It is usually calculated by breaking the answer into individual statements and checking each one against the retrieved documents. A low score means the model is adding information its sources don't contain.

2. Answer Relevance

Answer relevance measures how directly a response addresses the question asked. An answer can be accurate and faithful but still miss the point, filling space with related facts instead of answering. This metric catches that.

3. Hallucination Rate

Hallucination rate is the share of outputs that contain fabricated or unsupported information. Faithfulness scores a single response, while hallucination rate is tracked across a full test set, so you can see whether a model or prompt change made the problem better or worse.

4. Toxicity Score

A toxicity score estimates how likely an output is to be offensive, abusive, or harmful, usually using a classifier or judge model. Track the share of responses above your threshold rather than the average score. One toxic reply matters more than a low mean.

5. Groundedness

Groundedness measures how well each statement in a response can be traced back to a provided source. It overlaps heavily with faithfulness, and frameworks define the two terms differently. Check how your tool calculates each before comparing numbers across tools.

6. Latency / TTFT (Time to First Token)

Time to first token is the delay between sending a request and receiving the first token of the response. It drives how fast a streaming interface feels. Track it alongside total response time and tokens per second, and report percentiles such as p95 instead of averages, because slow outliers are what users notice.

7. Pass@k

Pass@k is the probability that at least one of k generated attempts passes a test. It comes from code generation, where a task counts as solved if any of k samples passes its unit tests. For user-facing features, the stricter question is often whether all k attempts pass, since users see one response, not the best of several.

TestFiesta Was Built for the Complexity LLM Testing Brings

LLM testing creates a lot of moving parts, including functional, safety, and security test cases, results from automated eval runs, scores that shift with every prompt or model change, and defects that need a clear trail back to the input that caused them. TestFiesta gives QA teams one place to manage all of it.

  • AI Copilot for Test Design: Upload requirements, user stories, or screenshots, and the Copilot generates structured test cases from that context. Nothing enters your suite until you review and approve it, which matters when you are writing hundreds of prompt scenarios and adversarial cases.
  • Flexible Organization: Reusable templates, universal tagging, and shared steps let you group cases by test type, risk, or feature, so a safety suite or red-team suite can run on its own.
  • Reusable Configurations: Run the same test cases across environments, or treat model and prompt versions as configurations to track results per version.
  • Automated Results in One Place: The TacoTruck CLI and full API access push results from CI/CD runs into TestFiesta, so eval framework output sits next to manual and exploratory testing.
  • Built-In Bug Tracking: Log defects in the same platform where you manage test cases, or turn a failed test into a Jira or GitHub issue with full context attached.

Set up your first LLM test suite in TestFiesta and get a QA workflow that fits your team.

Start your free trial today

FAQs

Can LLM testing be automated?

Yes, LLM testing can be largely automated. Deterministic checks, model-graded metrics, and adversarial attack generation can all run in a CI/CD pipeline on every prompt, model, or code change. That said, automation can’t fully replace human review of judgment-heavy outputs, or periodic checks that judge whether models are scoring accurately. 

What is LLM red teaming?

LLM red teaming is adversarial testing where testers deliberately try to make a model or application misbehave through jailbreaks, prompt injection, data extraction, or harmful content requests. It overlaps with LLM penetration testing but is usually broader, covering safety and misuse as well as security flaws. 

How do I test an LLM when I don’t have a ground truth dataset?

You can still test an LLM if you don’t have a ground truth dataset. Start with reference-free metrics such as faithfulness, answer relevance, and groundedness, which score outputs against the question and retrieved context instead of an expected answer. You can also generate a synthetic test set from your own documents and have domain experts review a sample. Over time, real user queries from production, labeled as you go, become your ground truth dataset.

Testing guide
Best practices

Introduction

How do you verify whether the system output is actually correct when nobody knows what the exact expected answer should be?

In software engineering, this challenge is known as the oracle problem; a bottleneck where traditional unit tests and pass/fail assertions hit a wall. When checking single outputs against fixed expected values is impossible or too expensive, metamorphic testing offers a powerful alternative: instead of checking whether a single output is correct on its own, you check how outputs relate across logical transformations of the input.

What Is Metamorphic Testing

Metamorphic testing is a way to test software without knowing the exact correct output for any single input. Instead of checking one result against an expected value, you run the program more than once with related inputs. Then you check that the outputs relate to each other the way they logically should.

Here is a simple illustration:

Say you are testing a payroll function. You may not know the exact total for a 400-person company with overtime, bonuses, and tax rules. But you do know one thing for sure: If every employee’s hourly rate doubles and nothing else changes, gross payroll should double too. Run both versions, compare, and if the second total isn’t twice the first, you can determine that the output is wrong. As a result, you found a problem without ever knowing the “right” answer.

Metamorphic testing has two main strengths:

  • It eases the oracle problem: You verify relationships between outputs, not the correctness of each output on its own.
  • It generates new tests: Every existing test case can spawn follow-up cases, so coverage grows from tests you already have.

What Is a Metamorphic Relation

A metamorphic relation (MR) is the rule that ties metamorphic test runs together. It states how a specific change to the input should affect the output. If the outputs break the rule, the program has a fault somewhere.

Every MR has two parts. One is the input transformation, which is how you change the original input to create a new one. The other is the output relation, which is what must hold between the original output and the new output.

Imagine you are testing a function that sorts a list of numbers. For a short list, you can check the result by looking at it. But for a list of 100,000 numbers, you need a function. When testing complex functions like sorting a massive list of numbers where you cannot manually verify every expected output, you can still rely on fundamental rules or properties that must always remain true. Each of these inherent properties serves as a Metamorphic Relation (MR) that can be used to catch software bugs without needing to know the exact final answer in advance.

In this specific case, the MRs would be:

MR 1: Shuffling the input should not change the output. If list B contains exactly the same numbers as list A in a different order, then sort(B) must equal sort(A). If they differ, the function is mishandling order somewhere.

MR 2: Adding a larger number should only extend the output. If you append a value bigger than everything in list A, the sorted result should be the original sorted list with that value at the end. Anything else means the new element disturbed items it never should have touched.

Neither rule tells you what the sorted list should look like. But both can still catch real bugs. Mathematical functions work the same way. You may not know sin(x) to fifteen decimal places, but you know sin(x) and sin(π − x) must be equal.

How Metamorphic Testing Works: A Step-by-Step Guide

Metamorphic testing follows the five steps, which remain the same regardless of testing a sort function or a self-driving model. 

To make it simple, we’ll use the e-commerce search example.

Step 1: Identify metamorphic relations: Study what the system is supposed to do and write down properties that must hold across related inputs, like “adding a filter never adds results.” This step takes the most thought and depends on domain knowledge, so pull in the people who understand the system best.

Step 2: Create source test cases. Choose the original inputs the process starts from, such as a set of real search queries. These can be existing test cases, randomly generated inputs, or anonymized production data.

Step 3: Derive follow-up test cases. Apply each MR’s input transformation to every source case, such as by adding a size filter to each query. One source case can feed several MRs, so a small seed set grows quickly.

Step 4: Execute both sets. Run the program on the source inputs and the follow-up inputs, then record every output. Keep each follow-up paired with its source so you always know which results to compare.

Step 5: Verify the relation. Check whether each pair of outputs satisfies the output relation, such as “filtered results are a subset of unfiltered results.” A violation means at least one output is wrong, which signals a bug in the program or a flaw in the MR itself.

A Pro Tip: A passing metamorphic test does not prove the program is correct. A function could break in a way that still satisfies a given relation. That is why teams usually define several MRs per feature, each checking the behavior from a different angle.

Where Metamorphic Testing Matters

Metamorphic testing matters wherever expected outputs are unknown, expensive to compute, or open to interpretation. These five areas are where it shows up most include:

Scientific and mathematical software

  • Simulations and numerical programs that often have no known exact answer to compare against.
  • Mathematical properties like symmetry, scaling, and conservation laws.
  • Published studies have applied it to bioinformatics programs, epidemiological models, and software at NASA.

Machine learning and AI models

  • Models that produce outputs that no one can fully specify in advance, which is the oracle problem in its purest form.
  • Machine learning models where output should remain consistent or stable when minor, non-essential changes are made to the input. In this context, if you slightly darken a photo, an image classifier should still recognize the same object, because a minor change in lighting doesn’t change the underlying subject of the image.
  • Large language models where rephrasing a factual question should not change the factual answer.

Search engines and ranking systems

  • Systems where there is no objective, agreed-upon “correct” result set for most queries.
  • Subset and consistency relations, like the filtering examples.

Compilers and code translation tools

  • Tools where verifying the compiled output for every possible program is out of reach.
  • Translation tools where two programs that behave the same on a given input should still behave the same after compilation.

Web APIs

  • API responses that often depend on live, constantly changing data, so exact expected values are hard to pin down.

How TestFiesta Helps With Test Case Management for Metamorphic Testing

Metamorphic testing multiplies your test cases fast. Five MRs applied to 40 source cases give you 200 follow-up cases, and every one of them needs to stay linked to its source, its relation, and its result. Without structure, that turns into a cluttered dashboard or spreadsheet.

TestFiesta keeps everything around them organized and traceable.

  • Customizable Tags: TestFiesta offers unlimited customizable tags for grouping, filtering, and sorting test cases. Tag each case with its MR and its role as a source or follow-up case. When an MR starts failing, you can filter straight to every related case.
  • Custom Fields: Custom fields capture data at the test case, run, or result level. Use them to record the input transformation, the expected output relation, and the ID of the source case each follow-up came from.
  • Reusable Templates: Build one MR template with fields for the transformation and the relation. Every new MR then gets documented the same way, no matter who on the team writes it.
  • Shared Steps: Source and follow-up cases usually share setup, like loading a dataset or authenticating against an API. Write those steps once and reuse them everywhere, so a change in setup updates every case at once.
  • Configurations: Configurations let you reuse one test case across many setups. Run the same MR against different environments, browsers, or model versions without cloning cases.
  • Jira and GitHub Integrations: When a relation is violated, turn the failed test into a Jira or GitHub issue with full context, or log bugs natively in TestFiesta. Developers see both inputs and both outputs, which is exactly what they need to debug a metamorphic failure.
  • An API for Automated Results: Metamorphic tests are usually automated, and TestFiesta’s Automation API supports custom automations, so results from your test runs can flow into the platform instead of being copied by hand.

Don’t let the complexity of managing metamorphic relations and automated test suites slow down your release cycles.

Start your free trial today

FAQs

Can metamorphic testing be automated?

Yes, metamorphic testing can be automated, and it is well-suited to automation. Once your MRs are defined, generating follow-up inputs, running both sets, and checking the relations can all be scripted. 

What tools do I need for metamorphic testing?

You don’t need a dedicated tool for metamorphic testing. Most teams write MRs as ordinary tests in the framework they already use, such as pytest or JUnit, and property-based testing libraries like Hypothesis can help generate source inputs. A test case management platform keeps your MRs, source cases, follow-ups, and results connected as the suite grows.

Do I need to know the correct output to write metamorphic tests?

No, you don’t need to know the correct output to write metamorphic tests. That’s the entire point of metamorphic testing. You only need to know how outputs should relate to each other when the input changes in a specific way. Writing good relations still takes domain knowledge, but you never need the exact expected value for any single input.

Testing guide

Introduction

A testing matrix puts your tests, requirements, environments, and results in one view so anyone on the team can see what has been covered, what has been run, and what is still missing. 

What Is a Testing Matrix

A testing matrix is a grid that maps one set of testing elements against another. Rows usually hold test cases. Columns hold whatever you need to check those tests against, such as requirements, features, browsers, risk levels, or execution status. 

Each cell where a row and column meet tells you something specific, such as which test covers which requirement.

Keep in Mind: The terms “testing matrix” and “matrix testing” are often used interchangeably, but they mean different things. Matrix testing refers to running the same set of tests across every combination of configurations, such as multiple operating systems and runtime versions. The terms are used interchangeably because of the ability to view the test cases in a matrix.

Here is a simple example of a testing matrix:

Test Case ID Requirement Chrome Firefox Safari Status
TC-001 User can log in with email Pass Pass Pass Pass
TC-002 User can reset password Pass Fail Not run Fail
TC-003 User can log out Not run Not run Not run Not run

In three rows, you can already see a failure on Firefox, an untested browser for password reset, and a logout flow nobody has touched. That is the whole point of a testing matrix. It turns scattered information into something you can read in seconds.

Teams use testing matrices to:

  • Confirm every requirement has at least one test behind it
  • Spot gaps before a release instead of after it
  • Show stakeholders where testing stands without a long status meeting
  • Keep an evidence trail for audits and client sign-offs

The 6 Types of Testing Matrices and When to Use Each

Not every matrix answers the same question. Some prove coverage, some track progress, and some help you decide what to test first. Here are the six most common types and the situations each one fits:

1. Requirement Traceability Matrix (RTM)

An RTM links each requirement to the test cases that verify it, and often to any defects found along the way. It answers one question clearly: is every requirement tested?

Traceability can run in three directions. Forward traceability goes from requirements to tests, so you know each requirement is covered. Backward traceability goes from tests to requirements, so you know every test exists for a reason. Bidirectional traceability does both.

Requirement ID Requirement Test Cases Defects Status
REQ-01 Users can sign up with Google TC-101, TC-102 None Pass
REQ-02 Passwords must be 8+ characters TC-103 BUG-45 Fail
REQ-03 Users can delete their account None None Not covered.

When to Use RTM: Projects with formal requirements, client sign-offs, or regulatory oversight. It is also useful any time scope changes mid-project, and you need to see which tests are affected.

2. Test Coverage Matrix

A test coverage matrix shows how thoroughly each feature or module is tested, usually broken down by test type. Where an RTM asks “is this requirement tested at all,” a coverage matrix asks “how well is this area tested, and in which ways?”

Feature Unit Integration API UI Performance
Checkout Yes Yes Yes Yes No
Search Yes No Yes Yes No
User profile Yes Yes No No No

When to Use Test Coverage Matrix: Planning a test strategy, deciding where to add automation, or reviewing whether high-traffic features are getting enough attention.

3. Test Progress Matrix

A test progress matrix tracks execution during a test cycle. It shows how many tests are planned, executed, passed, failed, or blocked, typically grouped by module, sprint, or tester.

Module Planned Executed Passed Failed Blocked
Payments 40 32 28 3 1
Onboarding 25 25 24 1 0
Reports 30 12 12 0 0

When to Use Test Progress Matrix: Daily standups, sprint reviews, and go or no-go release meetings. It gives managers a status update without anyone writing one.

4. Risk-Based Testing Matrix

A risk-based testing matrix ranks features by two factors: how likely they are to fail and how much damage a failure would cause. Multiplying or combining the two gives each area a risk level, which tells you where to spend testing time first.

Feature Likelihood of Failure Business Impact Risk Level Testing Priority
Payment processing Medium High High Test first, full regression
New dashboard widget High Medium High Test first
Footer links Low Low Low Spot check

When to Use Risk-Based Testing Matrix: Tight deadlines, large regression suites you cannot run in full, or newly built features with little test history.

5. Environment Compatibility Matrix

An environment compatibility matrix maps test cases against the browsers, operating systems, devices, and versions your product supports. It confirms the product works the same way across all devices, operating systems, and browsers.

Test Case Chrome / Windows Safari / macOS Safari / iOS Chrome / Android
Login Pass Pass Pass Pass
File upload Pass Pass Fail Pass
Dark mode Pass Not run Not run Pass

The number of combinations grows fast. Five browsers, three operating systems, and four screen sizes already give you 60 configurations. Many teams use pairwise testing, a technique that covers every pair of values at least once, to cut that number down without losing much coverage.

When to Use Environment Compatibility Matrix: Customer-facing web and mobile apps, cross-platform releases, and products with users on older devices. It’s most often used in cross-browser testing.

6. Compliance Coverage Matrix

A compliance coverage matrix maps regulatory or internal policy controls to the tests and evidence that prove they are met. Think of it as an RTM where the requirements come from a standard or regulation instead of a product spec.

Control Description Test Cases Evidence Status
AC-01 Only admins can export user data TC-301, TC-302 Test run report, screenshots Pass
LOG-02 All login attempts are logged TC-310 Log sample Pass
ENC-03 Stored passwords are hashed TC-320 None yet Not run

When to Use Compliance Coverage Matrix: Products in regulated industries like healthcare and finance, or teams preparing for audits under frameworks such as SOC 2, HIPAA, or PCI DSS.

What Goes Inside a Testing Matrix

The columns you choose decide what your matrix can tell you. Start small, then add detail only when the project needs it. A matrix with 20 columns that nobody updates is worse than one with five that stay accurate.

Core Columns Most Teams Start With

  • Test Case ID: A unique identifier for each test, such as TC-001. It lets you reference a test in bug reports, standups, and other matrices without describing it every time.
  • Requirement or Feature: The requirement, user story, or feature the test verifies. This is the link that turns a list of tests into a traceability tool.
  • Test Scenario: A short description of what the test checks, written so anyone on the team understands it. “User resets password using an expired link” is clearer than “Password test 3.”
  • Test Status: The current result of the test. Most teams use a small, fixed set of values like Not Run, Pass, Fail, Blocked, and Skipped. Keep the list short and consistent so filters and reports stay reliable.

Optional Columns That Add Depth

As projects grow, four core columns stop being enough. These are the most common additions:

  • Test Data: Test data is the inputs a test needs, such as a specific user account, a sample file, or a card number from a test payment provider. Recording it makes tests repeatable for whoever runs them next.
  • Execution Environment. Execution environment is where the test ran, like a browser, operating system, device, build version, or server environment like staging or production. Without it, a “Pass” result can be misleading.
  • Defect ID: Defect ID is the bug ticket linked to a failed test. It connects your matrix to your issue tracker so developers can jump straight from a failure to its fix.
  • Priority and Severity: Priority tells you how soon something should be tested or fixed. Severity tells you how badly a failure affects users. Keeping them separate helps, since a typo on the homepage can be low severity but high priority.
  • Assigned Tester: A tester is the person responsible for running the test. It makes ownership clear and helps balance workload across the team.

Add these columns when the project calls for them, such as more testers, more environments, or stricter reporting needs. Adding them on day one usually leads to empty cells and ignored fields.

How to Build a Testing Matrix From Scratch

You do not need a special template to get started. The steps below work whether you are building your first matrix or cleaning up one that has grown out of control. To keep things concrete, we will follow one example: the checkout flow of an online store.

Step 1: Define What You Are Mapping

Decide what question the matrix should answer. Are you proving every requirement is tested? Checking browser support? Prioritizing by risk? Your answer decides your columns.

You can combine goals, but do it on purpose. For the checkout example, we want to map requirements to tests and track results across two browsers. That is an RTM with environment columns added.

Step 2: Collect and List All Test Cases With Unique IDs

Gather every test that touches the area you are mapping, including manual tests, automated tests, and the ones sitting in someone's personal notes. Give each one a unique ID and a clear scenario name.

For checkout, that might look like TC-201 “Guest user completes purchase,” TC-202 “Discount code applies correctly,” and TC-203 “Expired card is declined.”

Step 3: Map Each Test Case to Its Requirement or Feature

Link every test to the requirement or feature it verifies. One test can cover more than one requirement, and one requirement can need several tests. Record both directions.

If a test does not map to any requirement, ask why it exists. It may be testing something that was never written down, or it may be outdated and ready to retire.

Step 4: Add Environment and Execution Data Columns

Now add the columns your project actually needs. For checkout, we add Chrome and Safari columns, a Test Data column for the test card numbers, and an Assigned Tester column.

Test Case ID Requirement Test Data Chrome Safari Tester
TC-201 REQ-10: Guest checkout Guest email, test Visa Not run Not run Sara
TC-202 REQ-11: Discount codes Code SAVE10 Not run Not run Omar
TC-203 REQ-12: Card validation Expired test card Not run Not run Sara

Step 5: Assign Status Fields and Update Them as Tests Run

Set a status value for every test and environment pair before testing starts, even if it is just Not Run. Then update the matrix as each test is executed, not at the end of the day or the end of the sprint.

A matrix is only useful when it reflects reality. The moment results lag behind, people stop trusting it and go back to asking around in chat.

Step 6: Review for Gaps

Once the matrix is filled in, scan it for empty spaces. Any requirement with no linked test case is a coverage hole. Any test that has not run in a key environment is a blind spot.

In our example, suppose REQ-13 “Order confirmation email is sent” has no test linked to it. That gap is easy to miss in a list of test cases, but impossible to miss in a matrix. Write the test, link it, and run it before release.

Repeat this review whenever requirements change, new features land, or a release date gets close.

How TestFiesta Turns Your Testing Matrix Into a Living QA Asset

Most testing matrices start in a spreadsheet, which works for a while. But when your project grows, you need more structure, clarity, transparency, and traceability. That’s where TestFiesta can help.

TestFiesta is a test management platform built to keep all your test management information connected and updated in one place. Instead of maintaining a matrix by hand, you build it from the test data your team already works with every day. 

  • Custom Fields: Need a column for risk level, browser, compliance control, or test data? Add it as a custom field. Your matrix holds exactly the information your team needs, without forcing every project into the same template.
  • Flexible Tagging: Tag test cases by requirement, feature, risk, or regulation, then filter by those tags. The same test library can serve as an RTM, a coverage matrix, or a compliance matrix, depending on what you need to see.
  • Test Runs Tracking: Results are recorded as your team executes tests, so progress reflects what has actually happened. No one has to copy results from one place into another at the end of the day.
  • Built-In Defect Tracking and Native Jira and GitHub Integrations: When a test fails, you can link the defect directly to the failed test case. Your Defect ID column points to real tickets, and developers can trace a bug back to the exact test that caught it.
  • Comprehensive Reports and Customizable Dashboards: Customizable dashboards and reporting give leads and stakeholders a live view of test progress, so a test progress matrix is always one click away.
  • Audit Trails Support Compliance Work: For teams building compliance coverage matrices, audit trails and granular access controls help show who ran what and when.

TestFiesta supports both manual and automated testing and connects to CI/CD pipelines, so everything can be managed in one workspace.

Ready to eliminate testing blind spots and keep your release quality crystal clear?

Start your free trial with TestFiesta today

FAQs

What’s the difference between a testing matrix and a test plan?

A test plan describes the strategy, including scope, approach, schedule, resources, and entry and exit criteria. A testing matrix is a working tool that maps tests to requirements, environments, or results. 

Can I use a single testing matrix for multiple types of testing?

Yes, you can use a single testing matrix for multiple types of testing, as long as it stays readable. Many teams combine an RTM with environment or status columns in one view. Once a matrix gets too wide to scan, split it by purpose or use a tool that lets you filter one set of tests into different views.

How often should a testing matrix be updated during a project?

Update your testing matrix whenever something changes, like a test runs, a requirement is added or modified, or a defect is logged or closed. During active test cycles, changes usually occur daily. A matrix shouldn’t lag behind actual progress.

What is the difference between a testing matrix and matrix testing?

A testing matrix is a grid used to map and track test cases, requirements, and results, whereas matrix testing refers to the practice of executing the same set of tests across every combination of configurations (such as multiple operating systems, devices, or runtime versions).

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!