We have a C # / ASP.Net web application that is built and deployed by a build server (Jenkins). One of the assembly steps before automatic deployment is to ensure that all automated tests pass, including the functional tests that we use with Selenium 2 WebDriver and NUnit.
Problem: Sometimes these tests are interrupted randomly. They will succeed in 100 builds, and then simply fail. They do not work for various reasons - the .Click () event is simply ignored, the element cannot be found, IE has a bad day, etc. We have a heavy AJAX web application and therefore we rely heavily on WebDriverWaits, but we always take this into account when writing tests, and, as I said, tests pass most of the time.
How can this problem be avoided or eliminated? The couple that crossed my mind:
- Accept a certain amount of crashes (seems like a bad idea)
- Re-testing errors?
jenkins selenium-webdriver automated-tests
Kryptic
source share