# Dynamic testing

> Dynamic Testing: What It Is and When You Need It. Canonical page: <https://zapple.tech/glossary/dynamic-testing/>

Dynamic testing is testing that involves executing the software. A test supplies input, runs the code and compares what happens with what was expected. Unit tests, integration tests, system tests, acceptance tests, load tests and exploratory sessions are all dynamic. It finds failures in behavior, but you cannot use it on a document or a design that does not run.

## Which test levels and types are dynamic?

All of the ones that run code. The syllabus describes five test levels and four test types. Two of the types are functional (the functions are "what" the test object should do) and non-functional ("how well the system behaves"). The table below follows its wording for who runs each level; the last column is our reading, not the syllabus's.

| Level or type | What runs | Who runs it or what it needs, per the syllabus | What it is good at catching (our reading) |
|:--|:--|:--|:--|
| Component (unit) | One component in isolation, with a harness or unit test framework | Developers, in their own environment | A wrong calculation or branch in one piece of logic |
| Component integration | Interfaces and interactions between components | Depends on the integration strategy (bottom-up, top-down, big-bang) | A mismatch between two parts that each pass alone |
| System | The whole product, including end-to-end tasks | May be an independent test team | A broken user task or a slow page |
| System integration | The system and the external services it calls | Needs an environment close to production | A changed external interface |
| Acceptance | The system, judged against business needs | Ideally the intended users | A feature that works but is not what the business needed |
| Non-functional (performance, security) | The system under load or attack | For some characteristics, a complete system in a representative environment | Slowness under load, an exposed endpoint |

Our reading works in reverse too: when a defect reaches production, find its row in the last column. The level in that row is where your testing is thin.

Two more kinds of dynamic testing cut across the table. In the syllabus, exploratory testing designs, runs and evaluates tests at the same time while the tester learns about the product, so it is dynamic too. Security scanning of a running application is also dynamic: the [OWASP Web Security Testing Guide](https://wstg.owasp.org/latest/00-Foreword/) lists dynamic application security testing among the automated tools that help scale testing. Load tests, such as those written in [Grafana k6](https://grafana.com/docs/k6/latest/), are another example, aimed at performance instead of behavior; our post on [automated performance testing](/blog/test-automation-frameworks/benefits-of-automated-performance-testing/) covers why teams add them.

## What does dynamic testing find that static testing cannot, and the reverse?

The [ISTQB Foundation Level syllabus](https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf) (version 4.0.1) says static and dynamic testing complement each other, and that some defect types can only be found by one of them. Its differences, in plain words:

**What a run shows:**

- Failures in behavior. The syllabus says dynamic testing causes failures, from which the defects are then traced through analysis.
- Quality characteristics that depend on executing code. It gives performance efficiency as an example, and maintainability as one that does not depend on executing code.

**What a review or analysis shows:**

- Defects in work products that cannot be executed, such as a requirement or a design. Dynamic testing can only be applied to executable work products.
- Defects on code paths that are rarely executed or hard to reach with tests. The syllabus says static testing may more easily detect these.

Static testing has [its own page](/glossary/static-testing/). For the side-by-side comparison, our post on [static and dynamic testing types](/blog/types-of-automation-testing/difference-between-static-and-dynamic-testing-types-in-software-testing/) covers it in full.

## How much dynamic testing should be automated, and what stays manual?

Judgment first: our rule of thumb is to automate the checks you repeat on every release and keep people on the ones that need a question asked.

The syllabus gives the reasoning. It lists the benefits of automation: less repetitive manual work, more consistent execution, and faster feedback. It also lists the risks: unrealistic expectations, inaccurate estimates of the effort to maintain scripts, using a tool when manual testing is more appropriate, and relying on a tool so much that human critical thinking is ignored. It adds that regression test suites are run many times, so regression testing is "a strong candidate for automation".

| Keep it manual or exploratory | Automate it |
|:--|:--|
| A new feature nobody has seen run | A regression check that has to pass on every release |
| Usability and "does this feel right" | A calculation with many input combinations |
| A one-off migration check | A smoke test in the delivery pipeline |

Our view is that habits matter more than the tool. The [Playwright documentation](https://playwright.dev/docs/best-practices) advises that automated tests verify what end users see and do, and that each test is isolated from the others. [pytest](https://docs.pytest.org/en/stable/) describes its aim as making it easy to write small, readable tests that scale to complex functional testing.

If your regression checks are slow or flaky, our [functional testing services](/services/functional-testing-services/) check each feature against its requirements, with automated tests in CI and testers where judgment counts.

## What does dynamic testing not tell you?

A passing run shows that the cases you ran passed. It says nothing about the inputs you did not try. It also arrives late: the syllabus notes that in sequential development models executable code is usually created in the later phases, so dynamic testing typically cannot be performed early. Pair it with reviews, which can start as soon as a requirement exists.

For the basics of automating these checks, see our [automation testing tutorial](/blog/test-automation-frameworks/automation-testing-tutorial-what-is-automated-testing/). For the last dynamic level before release, see [user acceptance testing](/blog/types-of-automation-testing/what-is-user-acceptance-testing/).

## What does Zapple.Tech do about it?

If you are not sure how much of your testing is automated, or whether it runs at the right levels, start with the evidence. Zapple.Tech starts with a one-week QA audit of one product area. It looks at its tests, pipeline and release process, and ends in a written report on what is at risk and what to fix first, plus a pilot plan you can run with Zapple.Tech or without it. Read more on the [QA audit and assessment](/services/audit-and-assessment/) page. Tell us about your product in the form below.

## FAQ

### What is dynamic testing?

Dynamic testing is testing that executes the software under test. The tester or a tool supplies input, runs the code and compares the result with what was expected. Any test that needs a running build is dynamic, from a unit test to a load test. A review of a requirement or of source code is not.

### What is an example of dynamic testing?

A script that opens the login page of a running build, enters a valid user and checks that the account page loads is dynamic testing. So is a tester who tries to check out with an expired card, and a load test that sends many requests to an API and watches response times.

### Is unit testing static or dynamic?

Unit testing is dynamic. The ISTQB syllabus calls it component testing and describes it as testing components in isolation, usually by developers with a unit test framework. The code runs during the test. Reading the same code in a review, or linting it, is static testing.

### What are the types of dynamic testing?

By level, the syllabus lists component, component integration, system, system integration and acceptance testing. By purpose, tests are functional, which checks what the system does, or non-functional, which checks how well it behaves, for example its performance or security. Exploratory testing is a way of doing any of these.

## Sources

- [ISTQB Certified Tester Foundation Level syllabus v4.0.1 (2024-09-15, newest edition read), sections 1.2, 2.1.1, 2.2, 3.1.3, 4.4.2 and 6.2](https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf)
- [Playwright documentation, Best Practices (current docs)](https://playwright.dev/docs/best-practices)
- [OWASP Web Security Testing Guide, Foreword (latest version of the guide)](https://wstg.owasp.org/latest/00-Foreword/)
- [Grafana k6 documentation (current docs)](https://grafana.com/docs/k6/latest/)
- [pytest documentation (current stable docs)](https://docs.pytest.org/en/stable/)
