Skip to content
Testaroo

Explore the test library

Find files, editable templates and browser test targets by what you need to make or test. The directory below is cut by format; the two collections under it cut the same library by subject and by workflow.

142 results

Page 4 of 6; 24 results per page.

Show the canonical directory
Preview of HAR: Multipart File Upload
har
3.3 KB
Actual file preview for HAR: Multipart File Upload

HAR: Multipart File Upload

A two-part multipart/form-data upload: a text file part with a fileName and a plain field part. The body uses CRLF between MIME parts because RFC 7578 requires it, even though the surrounding HAR document is LF-terminated: a distinction that matters when a replay tool rewrites the body.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR: Page-Load Waterfall (5 Requests)
har
8.8 KB
Actual file preview for HAR: Page-Load Waterfall (5 Requests)

HAR: Page-Load Waterfall (5 Requests)

A five-request page load (document, stylesheet, script, image and favicon) across two fictional hosts, with full per-phase timings and an onLoad page timing. Every entry's time equals the sum of its non-negative timing phases, so a waterfall renderer can be checked arithmetically rather than by eye.

File
HAR · Har · 1 page
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR: Query String and Header Edge Cases
har
3 KB
Actual file preview for HAR: Query String and Header Edge Cases

HAR: Query String and Header Edge Cases

One request whose query string encodes a space as %20 in one parameter and as + in another, includes a parameter with an empty value, and carries an Accept-Language header with quality values. The parsed queryString array is the answer key for whatever a URL parser produces from the raw URL.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR: Redirect Chain (301, 302, 200)
har
5.6 KB
Actual file preview for HAR: Redirect Chain (301, 302, 200)

HAR: Redirect Chain (301, 302, 200)

An http URL that redirects to https and then to a query-carrying cart page, with redirectURL populated on both hops. Tools that count entries as page views report three here when the user saw one page.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR: Server-Bound Waterfall (Wait Dominates)
har
7.4 KB
Actual file preview for HAR: Server-Bound Waterfall (Wait Dominates)

HAR: Server-Bound Waterfall (Wait Dominates)

Four API calls in which the wait phase (time to first byte) accounts for almost all of the elapsed time, the signature of a server-bound rather than network-bound page. Use it to check that a performance report attributes the cost to the server instead of blaming connection setup.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR: Two Pages with Page Timings
har
5.5 KB
Actual file preview for HAR: Two Pages with Page Timings

HAR: Two Pages with Page Timings

Two navigations in one capture, with entries bound to their page through pageref. The second page's onLoad is -1, the HAR convention for a timing that never happened, which naive code averages in as zero and reports as an impossibly fast load.

File
HAR · Har · 2 pages
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR: URL-Encoded Form POST
har
3.3 KB
Actual file preview for HAR: URL-Encoded Form POST

HAR: URL-Encoded Form POST

One form submission whose postData carries both the parsed params array and the raw urlencoded text, and the two must agree. The notes field contains a comma and an ampersand, so a decoder that splits before unescaping produces seven fields instead of five.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of Jest: JSON Results
json
6.4 KB
Actual file preview for Jest: JSON Results

Jest: JSON Results

Jest's --json output, where skipped tests are called pending and the totals appear as flat numTotal/numPassed/numFailed fields alongside per-file assertionResults. Timestamps are epoch milliseconds rather than ISO strings, which is the field most converters mis-handle. Reports the same canonical run as the JUnit dialect files: 12 tests, 9 passed, 1 assertion failure, 1 error and 1 skip.

File
JSON · Runners · UTF-8
Use case
JSON parsingConversion testing+1· Conversion set
Preview of JUnit XML: @Playwright/Test Dialect (playwright)
xml
2.8 KB
Actual file preview for JUnit XML: @Playwright/Test Dialect (playwright)

JUnit XML: @Playwright/Test Dialect (playwright)

The same 12-case Novus Checkout run written the way @playwright/test 1.47 junit reporter writes it. Playwright puts the run totals on the <testsuites> root, names each suite after its spec file, and uses the bare describe title as classname. All eight dialect files in this group report 12 tests, 1 failure, 1 error and 1 skip, so a JUnit parser can be held to identical totals across every producer.

File
XML · Junit XML · UTF-8
Use case
Conversion testingError handling+1· Conversion set
Preview of JUnit XML: 240-Case Suite
xml
18.7 KB
Actual file preview for JUnit XML: 240-Case Suite

JUnit XML: 240-Case Suite

240 cases across six classes, three of them failing. Big enough to time a parser and to check that a report UI paginates or virtualises rather than rendering every row, but still small enough to read.

File
XML · Junit XML · UTF-8
Use case
Performance testingConversion testing+1· Conversion set
Preview of JUnit XML: Aggregate <testsuites> Root
xml
2.3 KB
Actual file preview for JUnit XML: Aggregate <testsuites> Root

JUnit XML: Aggregate <testsuites> Root

Three suites under a <testsuites> root whose own attributes already hold the aggregate totals. A parser that sums the children and also trusts the root double-counts every case, which is the classic cause of a dashboard reporting 24 tests for a 12-test run.

File
XML · Junit XML · UTF-8
Use case
Error handlingConversion testing+1· Conversion set
Preview of JUnit XML: All Tests Passing
xml
754 B
Actual file preview for JUnit XML: All Tests Passing

JUnit XML: All Tests Passing

A clean green run: six passing cases, zero failures, errors and skips. The baseline a CI gate should treat as success, and the control case for any dashboard that colours a build from the failure count.

File
XML · Junit XML · UTF-8
Use case
Error handlingConversion testing+1· Conversion set
Preview of JUnit XML: Bare <testsuite> Root (No Wrapper)
xml
897 B
Actual file preview for JUnit XML: Bare <testsuite> Root (No Wrapper)

JUnit XML: Bare <testsuite> Root (No Wrapper)

The single-suite form Gradle and Ant write: the root element is <testsuite> with no <testsuites> wrapper at all. Parsers hardcoded to descend from <testsuites> read this file as empty rather than failing, so it silently reports a run of zero tests.

File
XML · Junit XML · UTF-8
Use case
Error handlingConversion testing+1· Conversion set
Preview of JUnit XML: Console Output in CDATA
xml
558 B
Actual file preview for JUnit XML: Console Output in CDATA

JUnit XML: Console Output in CDATA

Captured stdout and stderr wrapped in CDATA, where the stdout text itself looks like XML markup. A parser must treat the CDATA content as opaque characters; one that re-parses it finds a <report> element that does not exist.

File
XML · Junit XML · UTF-8
Use case
Log parsingError handling+1· Conversion set
Preview of JUnit XML: Empty Suite (Zero Tests)
xml
236 B
Actual file preview for JUnit XML: Empty Suite (Zero Tests)

JUnit XML: Empty Suite (Zero Tests)

A structurally valid report containing a suite with no <testcase> children at all: what a runner writes when a filter matched nothing. Aggregators that divide by the test count to compute a pass rate hit a zero denominator here.

File
XML · Junit XML · UTF-8
Use case
Error handlingConversion testing+1· Conversion set
Preview of JUnit XML: Error and Failure Distinguished
xml
1.1 KB
Actual file preview for JUnit XML: Error and Failure Distinguished

JUnit XML: Error and Failure Distinguished

One <failure> (an assertion that did not hold) and one <error> (an exception the test never expected), side by side. Parsers that collapse the two lose the distinction between a broken assertion and a broken environment.

File
XML · Junit XML · UTF-8
Use case
Error handlingConversion testing+1· Conversion set
Preview of JUnit XML: Escaped Characters in Test Names
xml
1 KB
Actual file preview for JUnit XML: Escaped Characters in Test Names

JUnit XML: Escaped Characters in Test Names

Test names containing &, <, >, quotes and an apostrophe, escaped as XML requires. Round-tripping this report through a converter is the fastest way to find double-escaping bugs that turn &amp; into &amp;amp; one hop at a time.

File
XML · Junit XML · UTF-8
Use case
Encoding detectionConversion testing+1· Conversion set
Preview of JUnit XML: Every Test Skipped
xml
756 B
Actual file preview for JUnit XML: Every Test Skipped

JUnit XML: Every Test Skipped

A suite in which every case was skipped, so tests equals skipped and nothing actually ran. A gate that reads only the failure count calls this green; one that checks executed>0 catches it.

File
XML · Junit XML · UTF-8
Use case
Error handlingConversion testing+1· Conversion set
Preview of JUnit XML: File and Line Attributes
xml
1.3 KB
Actual file preview for JUnit XML: File and Line Attributes

JUnit XML: File and Line Attributes

Cases annotated with the source file and line they were declared on, as pytest and several JS runners emit. This is what a code-review annotation bot needs to place a failure comment on the right line of the right file.

File
XML · Junit XML · UTF-8
Use case
Code parsingConversion testing+1· Conversion set
Preview of JUnit XML: Go-Junit-Report Dialect (go-junit-report)
xml
2.8 KB
Actual file preview for JUnit XML: Go-Junit-Report Dialect (go-junit-report)

JUnit XML: Go-Junit-Report Dialect (go-junit-report)

The same 12-case Novus Checkout run written the way go-junit-report 2.1 writes it. go-junit-report names each suite after a Go package and carries the toolchain version in a go.version property. All eight dialect files in this group report 12 tests, 1 failure, 1 error and 1 skip, so a JUnit parser can be held to identical totals across every producer.

File
XML · Junit XML · UTF-8
Use case
Conversion testingError handling+1· Conversion set
Preview of JUnit XML: Gradle Dialect (gradle)
xml
2.8 KB
Actual file preview for JUnit XML: Gradle Dialect (gradle)

JUnit XML: Gradle Dialect (gradle)

The same 12-case Novus Checkout run written the way Gradle 8.9 Test task writes it. Gradle writes hostname and timestamp on every suite and an empty self-closing <properties/> element that some parsers mishandle. All eight dialect files in this group report 12 tests, 1 failure, 1 error and 1 skip, so a JUnit parser can be held to identical totals across every producer.

File
XML · Junit XML · UTF-8
Use case
Conversion testingError handling+1· Conversion set
Preview of JUnit XML: Jest-Junit Dialect (jest-junit)
xml
3 KB
Actual file preview for JUnit XML: Jest-Junit Dialect (jest-junit)

JUnit XML: Jest-Junit Dialect (jest-junit)

The same 12-case Novus Checkout run written the way jest-junit 16 writes it. jest-junit repeats the whole "describe > it" title in both classname and name, which breaks dashboards that assume classname is a package. All eight dialect files in this group report 12 tests, 1 failure, 1 error and 1 skip, so a JUnit parser can be held to identical totals across every producer.

File
XML · Junit XML · UTF-8
Use case
Conversion testingError handling+1· Conversion set
Preview of JUnit XML: Locale-Formatted and Exponent Durations
xml
465 B
Actual file preview for JUnit XML: Locale-Formatted and Exponent Durations

JUnit XML: Locale-Formatted and Exponent Durations

Durations written four different ways in one file: scientific notation, a comma decimal separator from a German-locale JVM, a bare integer, and a comma that could be either a decimal point or a thousands separator. A parser using a locale-sensitive number reader gets a different answer depending on where it runs.

File
XML · Junit XML · UTF-8
Use case
Error handlingConversion testing+1· Conversion set
Preview of JUnit XML: Maven-Surefire Dialect (surefire)
xml
3.2 KB
Actual file preview for JUnit XML: Maven-Surefire Dialect (surefire)

JUnit XML: Maven-Surefire Dialect (surefire)

The same 12-case Novus Checkout run written the way maven-surefire 3.2 writes it. Maven Surefire merges its per-class files under a <testsuites> root and adds a <properties> block plus system-out/system-err on every suite. All eight dialect files in this group report 12 tests, 1 failure, 1 error and 1 skip, so a JUnit parser can be held to identical totals across every producer.

File
XML · Junit XML · UTF-8
Use case
Conversion testingError handling+1· Conversion set