webdriver - junit testing with web driver -


How to avoid the trial case hanging in the middle if I execute my every work fine. But all together if I run the test cases then it stops in the middle. If someone is using JUnit4, you can use the timeout

Rule: If a test method takes "too long" then it will fail, but allow other tests to run. You have to be careful with it in WebDriver because timeout Rules have been implemented with threads, and drivers not applicable are thread-protected.

In addition to this, avoid calling, which is very long term, instead, make fewer time-limits with a small number of retries.

Comments