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

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024
  • #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

  • @nehajain4575
    @nehajain4575 6 หลายเดือนก่อน +1

    I'm using 8.1.1

  • @santyaapa
    @santyaapa 7 หลายเดือนก่อน +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  7 หลายเดือนก่อน

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

  • @nehajain4575
    @nehajain4575 6 หลายเดือนก่อน

    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  6 หลายเดือนก่อน

      Which version of pytest are you using?

    • @nehajain4575
      @nehajain4575 6 หลายเดือนก่อน

      @@maximumautomation pytest 8.1.1

    • @nehajain4575
      @nehajain4575 6 หลายเดือนก่อน

      @@maximumautomation pytest 8.1.1

    • @nehajain4575
      @nehajain4575 6 หลายเดือนก่อน

      8.1.1

    • @maximumautomation
      @maximumautomation  6 หลายเดือนก่อน

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