How do a test condition, test scenario, test case, test procedure and test suite differ?
Answer
A test condition identifies something testable. A scenario describes a user or system flow at a high level. A test case defines preconditions, data, actions and expected results. A procedure orders cases and operational steps for execution, while a suite groups related tests for a purpose such as smoke or regression.
Strong answer includes
- moves from test idea to executable detail
- distinguishes procedure from case
- explains why suites group tests
Practical example
For a login feature, 'account lockout after failed attempts' is a test condition. 'A user forgets their password and gets locked out, then recovers access' is a scenario. A test case spells out the exact steps: enter valid username, wrong password five times, verify the account locks and an email is sent. A procedure orders that case with setup and teardown steps for execution, and it's bundled with other auth tests into a 'security regression' suite that runs on every release.