QA Fundamentals · Middle · Question 26 of 75

Why should tests not depend on each other's data?

Show the answer

Correct answer: Order changes or parallel runs make them fail randomly

Explanation

If test B needs the user created by test A, B fails when run alone or before A. Each test should create or reset the data it needs.

Further reading

Problem with a question

QA Fundamentals · Middle · question 26

Test yourself

Take the QA Fundamentals · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz