Installation testing

Installation testing is checking that software can be installed, upgraded and uninstalled correctly in every environment it claims to support, by following the same steps a customer or an administrator would. It covers a first install on a clean machine, an upgrade over an earlier version with existing data, and a removal that leaves nothing behind.

The longer version

The quality under test has a name in the ISTQB glossary, installability: the degree to which a component or system can be successfully installed and/or uninstalled in a specified environment. The last four words carry the work. An installer that succeeds on its author's machine has been tried in one environment, and that environment already held every dependency the author added over the past year. The standard cases are therefore run on machines prepared for the purpose. A clean install starts from a system that has never held the product. An upgrade starts from the previous release, with settings and data in place, and checks that both survive. An interrupted install is cut off part-way, by closing the window or dropping the connection, to see whether the system is left usable and whether a second attempt succeeds. An uninstall checks that the product's files, services and settings are removed and that nothing belonging to another program goes with them. Low disk space, missing permissions and an absent prerequisite are tried on purpose, since the installer's error message is part of what is being tested. So are a custom or protected installation folder, an attempt to install an older version over a newer one, and the installation guide itself, which has to describe the steps that actually work.

A hosted web product has no installer for customers to run, and the practice survives in three places. The first is deployment. Building the application in a clean environment from the repository and its documented steps, with an empty database, is a clean install, and it finds the configuration value that exists only on the old server. Applying the release to a copy of the current system, data included, is the upgrade case, and it is where a migration that assumed an empty table is caught. Wikipedia's entry calls that rehearsal on a replica of the live system a dry run, and it is also the moment to test the back-out procedure that restores the old version if the deployment fails. The second is a browser extension, which installs into the user's browser, asks for permissions, updates itself and has to be removable. The third is an embedded script: a widget, an analytics tag or a chat panel that another site's owner pastes into their own page. Its installation is that paste, and its environment is a page the vendor has never seen, with its own stylesheet, its own scripts and its own content security policy.

For an embedded script the cases mirror the desktop ones. The snippet is added to a bare page and to pages built with the frameworks and site builders the vendor says it supports. It is added twice by mistake. It is added to a page whose security policy blocks third-party code, where the right outcome is a clear failure and an undamaged page. It is removed, and the page is checked for anything left behind. Installation testing borders three other practices. Compatibility testing asks whether the product works across browsers, devices and systems once it is running, and installation testing asks whether it can get that far. A smoke test is the natural last step of every install case, confirming that what was installed starts and performs its central action. Operational acceptance testing counts installation among the things operations staff must be able to do before they accept a system.

Common questions

What is installation testing?

Installation testing verifies that software can be installed, configured, upgraded and removed in each environment it supports. Testers follow the published installation steps on machines prepared for the purpose and confirm that the product works afterwards, that an upgrade keeps existing data and settings, and that uninstalling removes the product cleanly.

What are the types of installation testing?

The usual cases are a clean install on a system that has never had the product, an upgrade from each supported earlier version, a reinstall or repair over a damaged copy, an interrupted install, an install under adverse conditions such as low disk space or restricted permissions, and an uninstall. Silent or automated installs, used by administrators to deploy to many machines, are tested as a case of their own.

What are the four types of installation?

Guides to installation testing usually sort installs by how they are run. An attended install asks the user questions as it goes. An unattended install takes its answers from a configuration file. A silent install shows no interface at all and is used by administrators. A network install puts the software on many machines from a central server. Clean installs and upgrades cut across all four, and each combination the product supports needs testing.

Is installation testing the same as implementation testing?

Several testing guides, among them Testsigma's and QA Mentor's, give implementation testing as another name for installation testing. The phrase is less common and can also mean testing an implementation against its design, so a test plan that uses it should say which is meant. Deployment testing is the usual name when the thing being installed is a server-side release and not a package a customer runs.

Is installation testing needed for a web application?

A web application still has to be installed somewhere, only not by the end user. The equivalent tests are deploying the application to a clean environment from its documented steps, upgrading a copy of the live system with its data, and, for a product that ships a browser extension or a script for customers to embed, installing and removing that component on pages and browsers the team does not control.

What is the difference between installation testing and compatibility testing?

Installation testing checks the act of installing, upgrading and removing the software in a given environment. Compatibility testing checks that the installed software then behaves correctly across the browsers, operating systems, devices and other software it must coexist with. One matrix of environments serves both, and an environment in which installation fails never reaches the compatibility checks.

When should installation testing be performed?

Installation testing belongs on a release candidate, the build intended to ship, because the installer or deployment package is itself part of what is released. Running it on every candidate catches packaging mistakes such as a missing file or a stale configuration default. A team that deploys continuously gets the same assurance by building a fresh environment for each change and running a smoke test against it.

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_…">