Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

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

Open 2 Answers 45 Views
0 2
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 Oct 17, 2017 by rajeevtechexpert (408 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, 2017 by ChatBot (200 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors