Ctrl K
QA · Senior · Coding

Automated tests run in parallel in eight processes against a single test environment and keep conflicting over identical emails and logins. Write a test user factory: it returns a valid user with unique fields, lets you override any field, and can create the user through the API with automatic cleanup after the test.

~15 min by voice

How to approach it

They're checking whether you understand how test data isolation works under parallel execution. You need a factory that generates unique values without shared state, doesn't mutate the defaults, separates building data from creating it through the API, and reliably cleans up after itself even when a test fails.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsHow do you use SQL in your work as a tester? And tell me how you'd write a query that finds the users who placed more than one order in the last month. Mid-levelHow would you organize test environments and test data for thirty developers working with a microservice architecture? Senior

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~15 min