Why do test cases that have already passed fail, then pass, then fail again. What can b e done about this
If its passing and failing then its considered a flaky test. You need to take the time to fix this becuase in the long run these tests will cause you alot of issues. You need to monitor what is causing these fails. Now the reason will never be random, maybe inconsistent, but not random.
Pay close attention to the errors your recieving, the majority of the time it will be down to a loading issue or inconsistencies in your wep application. This may vary due to your computer specs etc, so make sure to have a solid test with correct waitFor… and various other steps where needed to prevent these.
Thank you for the feedback