QR Code Test Cases: 25 QA Scenarios for Apps

Author

QRScannerAI

A QR code that scans perfectly at your desk can still fail on a glossy poster, a curved bottle, or a three-year-old phone. The 25 test cases below close those gaps: 8 format cases, 8 edge-data cases, 6 camera cases, and 3 security cases. Each one gives you the exact payload to encode and the result a correct reader should produce. A full pass takes under an hour on two devices.

This suite is built for QA teams signing off on an app update, print buyers approving a campaign, and developers who just changed their scanner pipeline. Encode each payload exactly as written — several cases deliberately include characters that break careless generators and readers.

How to Use This Test Suite

The suite only means something if you run it on a matrix, not on one phone. A single pass/fail tells you about that one device; a matrix tells you about your audience. Set yours up like this:

  1. Pick 2–3 devices. One current iPhone, one current Android, and one older or budget model if you can get one. The old device finds more failures than the two new ones combined.
  2. Pick 2–3 readers. The native camera app, one third-party scanner, and a browser-based scanner where you paste an image. Native cameras are conservative; third-party readers are where weird behavior shows up.
  3. Encode payloads verbatim. Type them exactly as printed here. If a case contains an escaped character, that escape is the test.
  4. Record one row per case per device. Pass, fail, or "opened but wrong" — the third outcome is the most common and the easiest to miss.
  5. Re-run failed cases after every fix. A fix that solves case 14 can break case 3; the matrix catches that.

For a broader pre-launch checklist that wraps around these cases — print proofs, destination checks, sign-off flow — use the 10-point QR code test scanner checklist alongside this suite.

Format Coverage Cases (1–8)

These eight cases prove your reader recognizes every payload type you will actually ship. Results should match the behavior described in the ISO/IEC 18004 symbology specification and each platform's handling of the decoded string.

#Payload to encodeExpected resultWhat it proves
1https://example.comOpens the page; domain in the address bar matchesBaseline decode and open
2Hello QA 123Text is displayed verbatim; nothing auto-opensPlain text stays text
3WIFI:T:WPA;S:QANetwork;P:test1234pass;;Join prompt shows SSID and password exactly as encodedWiFi parsing
4vCard — use the block below the tableContact-save offer shows name, phone, and emailvCard parsing
5mailto:qa@example.com?subject=Scan%20TestCompose screen opens with recipient and subject prefilledmailto handling
6smsto:+15551230000:Hi from the test suiteSMS app opens with number and body prefilledSMS handling
7tel:+15551230000Dialer offers the number; it does not auto-calltel handling without action
8Calendar event — use the block below the tableCalendar offer shows the correct date, time, and titleVEVENT parsing and time zones

Two of the payloads are multi-line. Encode them exactly, including the line breaks:

Case 4 — vCard:

BEGIN:VCARD
VERSION:3.0
N:Tester;Alex;;;
FN:Alex Tester
TEL:+15551230000
EMAIL:alex@example.com
END:VCARD

Case 8 — calendar event:

BEGIN:VEVENT
SUMMARY:QR Test Meeting
DTSTART:20260315T140000
DTEND:20260315T143000
END:VEVENT

Judgment calls to watch for: case 7 should offer the call, never place it. Case 8 is a timezone trap — if the calendar shows a different hour than you encoded, the reader or the generator mangled the timestamp, and the same bug will hit every event code you print.

Edge-Data Cases (9–16)

Format cases prove a reader works; edge-data cases prove it works correctly. Every case here has caused a real production failure for someone — truncated campaign parameters and mangled Unicode are the two most common.

#Payload to encodeExpected resultWhat it proves
9https://example.com/store/category/outdoor?page=2&sort=price_asc&ref=qr_poster&campaign=summer2026&placement=entranceFull URL opens; every parameter survives in the address barLong URLs are not truncated; the code is visibly denser
10https://example.com/landing?utm_source=qr&utm_medium=print&utm_campaign=testAll three UTM parameters reach the analytics reportTracking survives the scan
11https://example.com/docs/setup#step-3Page opens and the address bar still contains #step-3Fragment handling
12https://example.com/Products/OverviewServer returns the page, not a 404Reader does not lowercase the path
13Café ☕ ünïcode testDisplayed text matches the payload character for characterUTF-8 round-trip
14WIFI:T:WPA;S:Net\;1;P:pass1234;;Phone tries to join an SSID literally named Net;1Escaped semicolons parse correctly
15vCard with FN:Björn MüllerSaved contact shows Björn Müller, not Bj??rn M??llerAccented characters in contacts
1601234567890123456789Scans; the code is the smallest and least dense of your batchNumeric mode efficiency

Case 16 deserves a note: digits encode far more efficiently than letters, so a numeric-only payload produces the smallest possible code for its length. That is why pure-number codes (serials, ticket IDs) scan from farther away — and why you should not "test" distance with a URL code if your production code is numeric.

Camera and Environment Cases (17–22)

These six cases stress the capture side: optics, lighting, and surfaces. Run them with the same payload (a mid-length URL is fine) so only the environment changes between cases.

#SetupExpected resultWhat it proves
17Print a 2 cm code; scan from ~20 cmDecodes reliably within a second or twoMinimum size for close-range use
18Dim the room until you would hesitate to read a labelReader either compensates (exposure, torch prompt) or fails clearlyLow-light behavior you can plan around
19Laminate or glass over the code, angled toward a light sourceScan succeeds while tilting the phone to kill the glareGlare training and laminate decisions
20Inverted code: light modules on a dark backgroundRecord whether your readers accept it — many still do notWhether inverted designs are safe for your audience
21Code wrapped around a bottle or canScans when curvature stays gentle and the code is large enoughCurved-surface limits before you commit to packaging
22Code shown on a second screen; scan that screenDecodes despite moiré bands; pasting a screenshot also worksScreen-to-camera and paste-image paths

Case 20 is the one that saves redesigns: inverted color schemes pass design review and then fail in the field. If your readers choke on case 20, the fix is to print dark modules on a light background — or to accept a smaller usable audience. Damage interacts with all of this, by the way: a code that barely passes case 17 has no margin left for scratches, which is exactly what the damaged QR code limits guide covers.

Security Cases (23–25)

The last three cases check whether a reader helps the user make a safe decision. A scanner is a link-opener; these cases verify it behaves like one that shows its work.

#Payload to encodeExpected resultWhat it proves
23http://example.comPreview and address bar clearly show http://, not a padlocked httpsNo silent protocol masking
24https://xn--pple-43d.deReader displays the true domain (punycode or the Unicode form), never a plain lookalikeHomograph domains stay visible
25myapp://settingsReader warns or asks before launching an unknown scheme; nothing auto-runsUnknown schemes are not auto-executed

Case 24 needs a word of explanation. Internationalized domains like äpple.de are encoded on the wire as punycode — the xn-- string above. A reader that quietly converts that into a friendly-looking Latin string can make a lookalike domain read as the real thing. You want the ugly truth displayed, not a helpful disguise.

Frequently Asked Questions

Why should I test QR codes on multiple devices?

Because decoding is implemented separately by Apple, Google, and every third-party app, and they disagree at the edges — inverted codes, exotic WiFi payloads, punycode display. A matrix of 2–3 devices and 2–3 readers catches most of those disagreements in under an hour. One device proves that your code scans somewhere; a matrix proves it scans for your audience.

What sample QR codes should every QA toolkit include?

At minimum: one URL, one WiFi, one vCard, one plain-text payload, plus the edge-data cases above — a long URL, escaped characters, and an accented contact. Our sample QR codes for testing library groups ready-made codes by exactly what each one stresses.

Can I use the same QA checklist for every project?

The core 25 cases transfer between projects unchanged. What changes is emphasis: packaging projects should extend cases 19 and 21 with real substrate samples, while app projects should run every case against each app release, because a scanner-library update can change behavior overnight.

Which devices should be included in compatibility testing?

A recent iPhone, a recent Android, and — this is the one teams skip — an older or budget device. If you must choose only two, take the newest and the oldest hardware you can find. Also include the desktop path if your audience will ever paste a screenshot into a browser scanner.

How often should QR codes be re-tested?

Before every print run, after any change to the destination URL, and on a schedule for long-lived assets — a code on industrial equipment or a museum wall deserves a quarterly scan check. Dynamic codes add one more trigger: re-test after changing where the short URL points.

What downloadable resources are most useful for QA teams?

A shared spreadsheet that mirrors these 25 cases — one row per case, one column per device, pass/fail plus a note. It turns the suite into a sign-off artifact your print vendor or app reviewer can read without explanation. Pair it with the URL-specific URL test codes when campaigns lean heavily on tracked links.

Wrap-Up

Twenty-five cases, four groups, one matrix: format coverage proves every payload type decodes, edge-data proves it decodes correctly, camera cases prove it decodes in the real world, and the security cases prove your reader shows users the truth before they tap. Run the suite before each print run and each app release, keep the spreadsheet as your sign-off record, and you will catch the failures that one-off desk scans always miss.