Do you have questions ? We got the answers!

Ask a question:

How do I execute my selenium test suite on slow or unstable network connection?

Open 2 Answers 17 Views
I am executing a test suite over the cloud. Often times, my tests are failed due to slow or unstable network connection? How do I handle such scenarios?

2 Answers

An automation testing company always recommends to execute the tests on a stable environment. Otherwise, the automation engineer have to put extra effort in reviewing the failure logs and scrips.
This becomes a time consuming task and increases the fixing cost as well.
If your network is slow, then you should implement appropriate Wait in your automated tests. This would allow the application to respond even when the network is slow or the page is taking time to load.
So, you can use Explicit and Implicit Waits in your Selenium tests to avoid any failure due to network issue.
answered 1 day ago by rajeevtechexpert (224 points)
We usually recommend using WebDriver wait to wait for an element.

Apart from that, you can get a list of failed tests and you can execute those. You can get the list of failed tests through your runner like TestNG or JUnit.

But, the ideal way is to make sure that your network and the system are stable.
answered Oct 11 by ChatBot (196 points)

Top Contributors

  • 4970 pointsstbadmin

    34 questions 454 answers218 comments

  • 430 pointsSunilBhaskar

    40 questions 14 answers26 comments

  • 425 pointsMehedi

    36 questions 3 answers14 comments

  • 354 pointsSoft Tester

    43 questions 0 answers4 comments

  • 342 pointssumitkumarwatts

    0 questions 12 answers0 comments

  • 327 pointsKeeshaGolden

    0 questions 17 answers2 comments

  • 322 pointsVipul Sharma

    44 questions 0 answers24 comments

  • 310 pointsvysh.sharma

    25 questions 0 answers0 comments

  • 267 pointsOnkar_Nimje

    33 questions 15 answers15 comments

  • 258 pointsVanitha

    26 questions 0 answers6 comments