Dynamic testing
Testing that involves executing the test object with test data.
Syllabus chapters: 3
Sources: ISTQB® Certified Tester Foundation Level syllabus 4.0.1 and the official ISTQB® Glossary. Glossary content © International Software Testing Qualifications Board; source: glossary.istqb.org.
Related terms
Dynamic testing in a practice question
Question 1
Which of the following BEST describes the value of static testing?
- It confirms the software behaves correctly in its target environment before release
- It detects defects in the earliest phases of the SDLC, fulfilling the principle of early testing
- It measures quality characteristics that depend on executing the code, such as performance efficiency
- It identifies the failures the software produces, so the underlying defects can be analysed
Show answer
- It confirms the software behaves correctly in its target environment before releaseConfirming behaviour in an environment requires execution, which static testing does not do.
- Correct answer: It detects defects in the earliest phases of the SDLC, fulfilling the principle of early testingDetecting defects in the earliest phases fulfils the principle of early testing.
- It measures quality characteristics that depend on executing the code, such as performance efficiencyCharacteristics that depend on executing the code are measured by dynamic testing.
- It identifies the failures the software produces, so the underlying defects can be analysedCausing failures and analysing back to the defect is how dynamic testing works.
Static testing can detect defects in the earliest phases of the SDLC, fulfilling the principle of early testing, and can identify defects that dynamic testing cannot find at all. The other three options describe dynamic testing: confirming behaviour in the target environment, measuring characteristics that depend on executing code, and working back from failures to the defects behind them.
Syllabus section 3.1.2
Question 2
A team wants to detect unreachable code in a payment module. Which statement explains why static testing is better suited to this than dynamic testing?
- Static testing finds defects directly, and more easily on paths that are rarely executed or hard to reach
- Static testing causes failures from which the associated defects are determined by later analysis
- Static testing measures quality characteristics that depend on executing the code, such as performance
- Static testing can be applied only to executable work products, so this code qualifies for it
Show answer
- Correct answer: Static testing finds defects directly, and more easily on paths that are rarely executed or hard to reachStatic testing finds the defect directly and does not depend on executing the path.
- Static testing causes failures from which the associated defects are determined by later analysisCausing failures and then analyzing back to the defect is how dynamic testing works.
- Static testing measures quality characteristics that depend on executing the code, such as performanceCharacteristics that depend on executing code, such as performance efficiency, are measured dynamically.
- Static testing can be applied only to executable work products, so this code qualifies for itThis reverses the rule: dynamic testing is the one restricted to executable work products.
Static testing finds defects directly, while dynamic testing causes failures from which the associated defects are determined through subsequent analysis. Static testing may also more easily detect defects that lie on paths through the code that are rarely executed or hard to reach using dynamic testing — unreachable code is listed among the coding defects that static testing finds more easily or more cheaply.
Syllabus section 3.1.3
Original PrepBench practice material, not official exam questions or exam dumps. PrepBench is independent and is not affiliated with or endorsed by ISTQB®.