QA Fundamentals · Senior · Question 22 of 76
How should test data be managed for parallel automated tests?
- 1Tests read whatever data happens to be in staging
- 2Each test creates isolated data and cleans up or uses unique IDs
- 3All tests share one admin user and one product in the database
Show the answer
Correct answer: Each test creates isolated data and cleans up or uses unique IDs
Explanation
Shared records cause collisions when tests run in parallel. Factories, unique identifiers and API-based setup keep tests independent and fast.