Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
1.8k views
by The go-to Tester (222 points)
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?

3 Answers

2 like 0 dislike
by The go-to Tester (448 points)
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.
0 like 0 dislike
by The go-to Tester (222 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.
0 like 0 dislike
by Contributing Tester (34 points)
Use TestNG, Jenkins


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...