How to solve the pytest use case failure
Test_Login: (= =) (=) (): test.Primary.driver.get () bool_success = LoginSystem (test.Primary.driver) .login_openiot () bool_success
The method of rerunning in use case failure
Add decorator @ pytest.mark.flaky (reruns=2, reruns_delay=4) reruns to the use case for the number of times, reruns_delay interval (in s)
Install the pytest-rerunfailures dependency package, in the pytest.ini file addopts = add the parameter-reruns n (n: the number of retries) (to be tested)