Can you please tell me why I keep getting the error "Failed to establish a new connection: [WinError 10061] The connection was not established because the target computer rejected the connection request? This happens during the second loop of the program after time.sleep(random.randrange(10000, 15000))
How to give more then one Exception type in the argument if we want to rerun the test case for those two types of exception. First is AssertionError and second is NoSuchElement
You can pass the flag multiple times to add different errors into the list. E.g. pytest --reruns 2 --only-rerun AssertionError --only-rerun NoSuchElement
Thank you so much there is no such video on You Tube.Thanks again
Glad it helped 🙂
Can you please tell me why I keep getting the error "Failed to establish a new connection: [WinError 10061] The connection was not established because the target computer rejected the connection request?
This happens during the second loop of the program after time.sleep(random.randrange(10000, 15000))
How to give more then one Exception type in the argument if we want to rerun the test case for those two types of exception. First is AssertionError and second is NoSuchElement
You can pass the flag multiple times to add different errors into the list.
E.g.
pytest --reruns 2 --only-rerun AssertionError --only-rerun NoSuchElement