Flaky tests are one of the main problems in automated testing

Knowing how to deal with unstable tests is critical in testing because floating autotests slow down the speed of all development.





If you have not encountered unstable tests, be sure to read this article, as it attempts to systematize the causes of instability in tests. If you've encountered unstable tests, see how many fall into the listed areas.





This article aims to tell you how to deal with each of the reasons.





Over the years, I have come across unstable tests more than once, but instead of looking at specific cases, let's try to group the causes of instability by the components involved in performing autotests:





  • The tests themselves;





  • A framework for running tests;





  • Services and libraries on which the system under test and the test framework depend;





  • The operating system and device with which the autotesting framework interacts.





1 / , . . - , , . , , .





, , / , , . 2





,





. :





  • ;





  • ;





  • . ;





  • ;





  • .





. :





  • , ;





  • , "" ;





  • .





,

( )





, .





.





:





  • ;





  • ;





  • ;





  • ;





  • ;





  • .





, , (.. , , ).





.





, . :





  • ;





  • ;





  • , / , .





, . , , .





.





  • ? (/ )





  • Google ()





  • Selenium ! ()





  • ()








All Articles