2

I am working in a large scale project automation with Selenium where multiple test suites are available. When a single suite is running, it works fine. But when all suites are running all together it behaves abnormally. Sometimes shows element not found, noSuchElementFound etc though all suites works fine when run independently.

Project structure
    Main Suite
        - suite 1
        - suite 2
        - Suite 3
    Suite 1
        - LoginTestCases
        - DashboardTestCase
    Suite 2
        - abcd
        - abcd
    Suite 3
        - abcd
        - abcd
    Implementation
        - Util.py
        - Login.py
        - Dashboard.py

Tried with firefox/chrome browser head/headless options. But no luck. Full project running fails every time. Needs run failed cases again.

Python is used as automation language.

Is there any way around that can make sure full project run will be successful as all single suites runs successfully?

10
  • 1
    What does all running together mean, 2 or 100 concurrent browsers? Can you test environment handle 10-100 parallel runs at the same time? – Niels van Reijmersdal Feb 28 at 9:30
  • 1
    What you mean by run together ? Run parallel or one by one ? – PDHide Feb 28 at 9:43
  • Let's say, 3 suites available. I want to execute suite 1, suite 2, suite 3 consecutively, not parallel. In this case, some testcases are failed. I have used wait functions but no luck. To solve this problem, 10~100 parallel runs at the same. It's more efficient but not solve the issue. @NielsvanReijmersdal – Mat Feb 28 at 15:23
  • Run one by one. @PDHide – Mat Feb 28 at 15:26
  • 1
    What are the failures , is there any dependency that is being created unintentionally ? Like you expect data to be empty for suite 2 but first suite left over some data that causes test 2 to fail? – PDHide Mar 1 at 5:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.