Part 18 | Selenium Python Test Retry Feature Tutorial | Retry Failed Test Using Pytest Rerun Plugin

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии • 5

  • @ankitSharma-dd2qz
    @ankitSharma-dd2qz Год назад +1

    Thank you so much there is no such video on You Tube.Thanks again

  • @deep.flight
    @deep.flight 6 месяцев назад

    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))

  • @bhumittrivedi1990
    @bhumittrivedi1990 11 месяцев назад +1

    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

    • @maximumautomation
      @maximumautomation  11 месяцев назад

      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