Conformance testing

In software, conformance testing, also called compliance testing, is testing that determines whether a product meets the requirements of a standard, a specification or a regulation written outside the team. The test basis is the external document, and the result states which of its requirements the product satisfies and which it does not.

The longer version

The ISTQB glossary lists the practice under the name compliance testing, defined as testing to determine the compliance of the component or system, with conformance testing, regulation testing and standards testing as synonyms. Compliance, in the same glossary, is adherence of a work product to standards, conventions or regulations in laws and similar prescriptions. What marks the practice out is where the requirements come from. In functional testing against a team's own requirements, the team or its client wrote the expected behaviour and can change it. In conformance testing the expected behaviour is written in a document the team does not control: a published standard, a protocol or file format specification, or a law. The tester cannot negotiate with it. Each requirement in the document becomes one or more checks, and a product conforms only in the way the document's own conformance rules allow. The phrase is also used in manufacturing and product certification, where a laboratory tests physical goods against a standard. This page covers software.

Accessibility is the case a web team meets first. The Web Content Accessibility Guidelines 2.2, a W3C Recommendation, are written to be tested against: the document says testable success criteria are provided so that it can be used where requirements and conformance testing are necessary, such as in design specification, purchasing, regulation and contractual agreements. It defines three levels of conformance, A (lowest), AA and AAA (highest). For Level AA conformance a web page satisfies all the Level A and Level AA success criteria, or a Level AA conforming alternate version is provided. Conformance is for full web pages only and cannot be achieved if part of a page is excluded. A conformance claim is optional, and when one is made it must state the date, the guidelines' title, version and URI, the level satisfied, the pages it covers and the web technologies relied upon. A report describing a site as mostly AA is therefore using a category the standard does not have.

Other standards a web product is tested against have the same shape. A feed or a sitemap is checked against its published format. An API that claims to follow a specification is exercised against that specification's rules for requests, responses and errors. Outgoing email is checked against the authentication standards that receiving servers enforce. Some standards come with an official test suite or a validator, which makes part of the work mechanical. The rest is reading: a pass from a validator shows that the checks it automates were met, and nothing about the requirements it cannot automate. A result is also tied to one version of the standard and one version of the product, and a result reported without both cannot be repeated. Where a system is checked against a regulation as a condition of accepting it, the ISTQB glossary's term is regulatory acceptance testing. Whether the product does anything useful remains a separate question, answered by functional and acceptance testing.

In several industries conformance is also a condition of sale, and the testing ends in a certificate. A mobile device has to show that it meets the 3GPP standards for the networks it joins before it can be sold into markets that require them. In agricultural machinery, the Agricultural Industry Electronics Foundation runs an ISOBUS conformance test against ISO 11783 and its own guidelines through five independent laboratories, and a product must pass before it can be listed in the foundation's ISOBUS database. Conformance testing is mostly positive testing, as a Viavi Solutions article on automotive Ethernet puts it: it shows that the product implements the standard as written. It does not show that two conforming products will work together, which is interoperability testing, and it does not show how the product behaves when the other side breaks the rules, which needs negative tests of its own.

Common questions

What is conformance testing in software?

Conformance testing in software checks whether a product satisfies the requirements of an external standard, specification or regulation. The tester derives checks from the published document, runs them against the product and reports which requirements are met. Testing web pages against an accessibility standard and testing an implementation against a protocol specification are two examples.

Is conformance testing the same as compliance testing?

The ISTQB glossary treats the two as synonyms: its entry is headed compliance testing and lists conformance testing as another name for it. Some writers reserve conformance for technical standards and specifications, and compliance for laws, regulations and contracts. The activity is the same in each case, a comparison of the product with requirements set by an outside authority.

What is the difference between conformance testing and functional testing?

Functional testing checks behaviour against requirements the team or its client wrote for this product. Conformance testing checks the product against requirements published by a standards body, an industry group or a legislator, which apply to every product that claims the standard. A feature can satisfy its own specification and fail conformance, for instance a custom control that works with a mouse and cannot be operated from a keyboard.

What are the WCAG conformance levels?

WCAG 2.2 defines three levels of conformance: A, the lowest, AA, and AAA, the highest. Level AA requires a web page to satisfy all the Level A and Level AA success criteria, or to provide a Level AA conforming alternate version. The W3C does not recommend requiring Level AAA as a general policy for entire sites, because some content cannot satisfy all of its criteria.

Who carries out conformance testing?

Testers inside the team carry out the first round, working from the standard and any official test suite. Where a regulator, a customer or a certification scheme requires independent evidence, an external assessor or an accredited laboratory repeats the work and issues the result. Internal testing still comes first, since an outside audit is an expensive way to find problems the team could have found itself.

What is the difference between conformance testing and interoperability testing?

Conformance testing compares one product with the standard. Interoperability testing connects two or more products, often from different makers, and checks that they actually work together. Both are needed because a standard can leave room for interpretation: two products can each pass their conformance tests and still disagree over an optional feature or an ambiguous clause when they meet.

What is the difference between conformity and conformance?

The two words mean the same thing, meeting stated requirements, and the difference is mostly one of habit. Conformity is the word used in the vocabulary of standards and certification, as in conformity assessment. Conformance is the word used in software, protocol and web standards, which is why WCAG speaks of conformance levels and a conformance claim.

Bug reports that arrive ready to triage.

Collect replay, console, network and browser context with the Free plan.

<script src="…/widget.js" data-key="pb_pub_…">