A performance testing engagement should run in six gated phases: objectives and load model (the mix of user flows, arrival rates and pauses that a test replays to imitate production traffic), environment and thin baseline, scripting, test runs, analysis with retest, and handover. Each phase ends with a deliverable the buyer can check without trusting the vendor's summary. The central rule is to accept a run on its validity and judge the system on its objectives, because a valid run with a bad result is work the vendor has delivered.
On this page
Why the work needs gates instead of one final report
Assumptions need a check before the runs that rest on them, and a report at the end of the engagement cannot give one. The ISTQB (International Software Testing Qualifications Board, the body that publishes tester certification syllabi) performance testing syllabus describes the work as iterative: what one test shows is used to correct or optimize parameters, and the next test shows the effect, until the objectives are reached ev-content-perfeng-001confidence A. If the load model is wrong, each iteration tunes the system to the wrong traffic until somebody checks the model itself.
The same syllabus calls planning particularly important for performance testing because environments, test data, tools and people all have to be allocated, and places the scope decision in that activity ev-content-perfeng-002confidence A. Where the buyer holds those items, a gate also protects the vendor from starting a phase on inputs that have not arrived.
Gates do not set the price. The article on performance testing cost drivers covers what each line of a quote contains, and the performance testing page shows which ranked vendors qualify for this service.
Write the objectives so a tool can fail them
Each objective names one transaction, one load level, one percentile (the value below which a stated share of measurements falls) and one limit, plus a limit on failed requests. The performance testing page gives the rule on percentiles and error rates in its checklist. "The site should stay fast under load" cannot be tested, because no script can return pass or fail against it.
A limit on an average can be tested, but it can hide slow responses. The syllabus says the average response time can often be skewed by outliers, notes that the 90th percentile is often used as a goal, and advises against requiring 100% compliance with the objectives ev-content-perfeng-008confidence A. An objective with a stated percentile follows that advice, because it says in advance which share of slow responses the buyer accepts.
k6 and Azure Load Testing hold objectives in this form. Grafana k6 calls them thresholds, and its documentation shows a threshold that 95% of requests stay below 200 ms and says that k6 exits with a non-zero exit code (the value by which a program tells the pipeline that it failed) when a threshold fails ev-content-perfeng-012confidence A. Those values are a documentation example, not a target. Azure Load Testing marks a run as failed when at least one criterion is met, accepts up to 50 criteria per test and can apply a criterion to a single named request ev-content-perfeng-015confidence A. A buyer should ask for the objectives file itself, kept in the buyer's repository with the scripts, so that a changed limit leaves a commit behind it.
The phase plan: deliverable and acceptance criteria per phase
The six phases are this site's plan, not a standard. The ISTQB syllabus supports single points in them (test iteration, environment and data, setup checks, run logs and closure), and those are cited where they apply. A phase starts when the buyer's input for it has arrived.
- Phase 1: objectives and load model
Deliverable: a list of objectives in the form above, a load model with the source of every number in it, and the run types that the objectives call for.
Acceptance criteria: each rate in the model traces to a production log, an analytics export or a written business assumption with an owner; each objective names its transaction, load level, percentile and limit; the list of excluded flows is signed by the product owner.
Buyer input: production traffic data for a period that contains a real peak, and the name of the person who can approve a limit.
- Phase 2: environment and thin baseline
Deliverable: an environment comparison sheet, a monitoring map and a baseline of a few transactions at low load. The baseline shows whether the environment, the monitoring and the data work before script hours are spent.
Acceptance criteria: every difference from production is listed with its scaling rule, which the cost drivers article covers; the data volume is stated per main table or store; a controlled run shows that each monitor records; every load generator (a machine that sends the simulated traffic) appears on the same dashboard as the system under test.
Buyer input: the environment, read access to its monitoring and a freeze on changes during the runs.
- Phase 3: scripting
Deliverable: scripts per flow that take their users and data from a file or generator, a scenario file that combines them into the load model, and the data generator or data files.
Acceptance criteria: each script runs from a clean checkout on a machine the buyer controls; a multi-user trial shows distinct users and records; server logs confirm that the intended calls completed; response checks fail when the page returns an error with a success code.
Buyer input: test accounts, a data reset procedure and a contact who can explain session and token handling.
- Phase 4: test runs
Deliverable: one run record per execution, starting with repeats of the baseline on the accepted scripts, then the run types agreed in phase 1. The repeats show how far the baseline varies, and both sides agree that variation in writing.
Acceptance criteria: the run passes the validity checklist in the next section; the configuration differs from the previous run only where the record says so; raw results are exported, not only charted.
Buyer input: a run window, an on-call contact and written permission from any third party that receives traffic.
- Phase 5: analysis and retest
Deliverable: a finding per missed objective with the observed limit, the evidence that locates it and the retest result after a change.
Acceptance criteria: each finding separates what was measured from what is inferred; the component named is supported by a server-side measurement from the same time window; a fix is closed only by a rerun at the same load with the same data state.
Buyer input: developer time to make the change between runs, agreed before the phase opens.
- Phase 6: handover
Deliverable: the repository with scripts, objectives, data generators and run instructions, the raw results, and a short list of the checks worth keeping in the release pipeline.
Acceptance criteria: a buyer engineer who was not in the engagement reruns the baseline from the instructions, and the result falls within the variation agreed in phase 4.
Buyer input: the engineer, with time set aside before the vendor's access ends.
Two of the phase 2 criteria come from points the syllabus makes. It says the environment should be as close to production as possible and otherwise needs a clear understanding of the differences and of how results will be projected; it adds that performance is a non-linear function of the environment, so projections get harder the further the two are apart ev-content-perfeng-003confidence A. It also says the size and structure of the data could affect results dramatically, and that a small sample data set can mislead, particularly when production will use a large one ev-content-perfeng-004confidence A. The sheet therefore holds a data volume beside each scaling rule.
One scripting criterion has the same origin, the trial with distinct users and records. The syllabus names incorrect or missing correlation (capturing a value the server returns, such as a session identifier, and sending it with later requests) as the main reason recorded scripts fail to play back, and warns that many virtual users sharing one login and one data set give misleading results through caching or locking ev-content-perfeng-005confidence A. The clean checkout, the server logs and the response checks are this plan's additions, so that a script is accepted on what the system did and not only on what the tool displayed.
How to tell an invalid run from a bad result
The statement of work should define a valid run, because the two outcomes have different owners. An invalid run is repeated. A valid run that misses its objective is accepted, recorded and passed to analysis.
The first validity check in this plan is the users. The syllabus says that analysis examines the status of simulated users first, and that failed transactions may result in invalid transactions-per-second data because a failed transaction takes far less time than a completed one ev-content-perfeng-009confidence A. A run in which a login step failed for part of the users is therefore not read for speed until the failures are explained.
The second check is the measuring side. The syllabus requires the environment and setup to be validated before execution, says this is usually done with a controlled set of tests, and says the load generation machines should be monitored too ev-content-perfeng-006confidence A. It adds that tests usually focus on the steady state (the period in which the system's behavior under load is stable), that transient states are sometimes tested too, and that time-synchronizing all tools is essential ev-content-perfeng-007confidence A. The Apache JMeter manual advises running in CLI (command-line interface) mode with as few listeners (the JMeter components that collect and show results) as possible, and using the result-tree and result-table ones only while scripting ev-content-perfeng-014confidence A.
A validity clause can then list five conditions: virtual users completed their flows within the agreed failure limit; no generator reached its resource limit; the load followed the plan, which in a steady-state run means that the target held through the steady state; clocks matched across tools; and no unrecorded change reached the environment. In this plan the vendor repeats a run at its own cost when the cause was in its scripts or generators. The buyer carries the repeat when its environment changed or went down.
Automatic stops need a line of their own. Azure Load Testing by default stops a test whose error percentage is at least 90% during any 60-second window, and the setting can be changed or disabled ev-content-perfeng-016confidence A. A stress test (a test that raises load past the expected peak) or a breakpoint test (a test that raises load gradually until the system reaches its capacity limit) run may be meant to reach errors, so the plan states which stop rule applies to which run type and whether a stopped run counts as complete.
Run order and the record each run leaves
In this plan runs go from small to large, and nothing larger starts until the smaller one is valid. The k6 documentation lists six main test types (smoke, average-load, stress, soak, spike and breakpoint) and advises starting with smoke tests (short runs at minimal load that show the script works) before progressing to higher loads and longer durations ev-content-perfeng-013confidence A. An engagement does not need all of them. The objectives decide: a product that fears a sale day needs a spike run (a test with a sudden jump in load), and a service that restarts weekly because of a memory leak needs a soak run (a test that holds load for many hours to expose slow degradation).
The run record makes two runs comparable months apart. The syllabus lists what a log typically holds: duration, scripts and script mix, data files, hardware and software configuration with any changes between runs, average and peak processor and memory use on web and database servers, and defects ev-content-perfeng-010confidence A. This plan adds three fields for an outsourced team: the commit of the scripts, the build of the system under test and the validity verdict with the name of the person who gave it.
The records also decide what survives the contract. The syllabus says a point of closure may be reached where designed tests, test tool assets, test data and other testware are archived or passed on to other testers for later use in maintenance ev-content-perfeng-011confidence A. The article on taking test automation in-house covers the wider handover, and the contracts guide covers the rights and data clauses behind it.
A buyer new to the vendor can run phases 1-3 as a paid pilot and stop there. The charter and the decision meeting of the four-week pilot plan carry over. Its weekly pass criteria and its regression run do not, because phases 1-3 produce a thin baseline and scripts but no run of the full load model. After handover, the same objectives become release checks. The metrics article covers what happens to a series when a definition changes, and the service level article covers a change of tool.