2

I am running the selenium scripts in batches and getting failures, but if I run the test cases individually they pass. All the test cases are supposedly independent of each other.

1
  • Have you analyzed the error messages? What's in there?
    – Embedded
    Commented Nov 29, 2017 at 12:59

1 Answer 1

3

This usually indicates that you either have dependencies between tests or you have data storage that doesn't get reset and affects other tests.

Work to make sure that tests are completely independent from each other and use a database that gets reset between tests. Initially this will seem hard/impossible but with enough effort it is achievable and wonderful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.