Это видео недоступно.
Сожалеем об этом.

Part 14 | Selenium With Python Tutorial | Test Execution Html Report | Screenshot For Failed Tests

Поделиться
HTML-код
  • Опубликовано: 24 июл 2023
  • #seleniumtutorial
    In this video, we'll see how we can generate the execution report in html format of our test executed through pytest framework. An execution report is needed to see what all have been executed, and what are passed and failed as part of the test execution. And then if there is failure then we need to see whether these failures are because of application or script issues.
    ****************************************************************
    GitHub Repo : github.com/Max...
    Git Tutorial : • #1 Git Tutorial | Vers...
    Selenium Java Tutorial : • Selenium with Java | C...
    Selenium C# Tutorial :
    • Selenium with C# | Klo...
    Allure Reports : • Allure Report | Integr...
    Jenkins Tutorial : • #2 Jenkins Integration...

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

  • @santyaapa
    @santyaapa 6 месяцев назад +1

    Thanks for sharing this informative video.
    I tried this, screenshot was saved in root directory but not attached to HTML report. In pycharm "extras.append(pytest_html.extras.html(extra_html))" in this line, showing warning "Cannot find reference 'extras' in '__init__.py' ". can you please help.

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

      Did you initialized the variable extra?
      extra= getattr(report,'extra',[])

  • @nehajain4575
    @nehajain4575 4 месяца назад +1

    I'm using 8.1.1

  • @nehajain4575
    @nehajain4575 4 месяца назад

    I'm using pytest-html version 4.1.1, screenshot was saved in root directory but not attached to HTML report. However same code is working fine in version 3.2.0

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

      Which version of pytest are you using?

    • @nehajain4575
      @nehajain4575 4 месяца назад

      @@maximumautomation pytest 8.1.1

    • @nehajain4575
      @nehajain4575 4 месяца назад

      @@maximumautomation pytest 8.1.1

    • @nehajain4575
      @nehajain4575 4 месяца назад

      8.1.1

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

      Could you please provide the actual command which you are using while running the tests?