QA Fundamentals · Senior · Question 24 of 76
What is property-based testing?
- 1Testing the properties panel of the user interface
- 2Checking that a property holds for many generated inputs
- 3Testing that object properties have the right names
Show the answer
Correct answer: Checking that a property holds for many generated inputs
Explanation
Instead of examples, you state invariants like 'decode(encode(x)) equals x'. The tool generates and shrinks inputs to find minimal failing cases.