Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Test design techniquesJuniorVery commonTest design

How would you combine equivalence partitioning and boundary-value analysis for an input accepting integers from 18 through 99?

Answer

Create valid and invalid partitions, then sample directly around both boundaries. A compact set includes 17, 18, 19, 98, 99 and 100, plus representative values and invalid data types where the interface permits them.

Strong answer includes

  • valid and invalid partitions
  • values around both limits
  • does not brute-force every number

Practical example

Testing an age field for insurance eligibility (18 through 99), a tester picks 17 and 100 as invalid boundary values, 18 and 99 as valid boundary values, 19 and 98 as one step inside each boundary, plus one mid-range value like 45. They also try 'abc', an empty field, and a decimal like 18.5 to check the invalid-partition handling, instead of looping through all 82 valid integers.

Sources

DOU — QA interview: 250+ questionsDOU · Coverage signal across Junior, Middle, Senior, AQA, web, mobile and practical topicsISTQB CTFL syllabus v4.0.1ISTQB · Testing vocabulary, principles, lifecycle and test-design concepts