Skip to content

a752602882/ExtentHTMLTestRunner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ExtentHTMLTestRunner

Create test report with Extent report use python

Use

基于HTMLTestRuner改造,使用了Extent report的页面模板内容,使用方式和使用HTMLTestRuner方式一致。

from ExtentHTMLTestRunner import HTMLTestRunner


filename="/*/result.html"
fp=open(filename,'wb')

runner=HTMLTestRunner(
                      stream=fp,
                      title='自动化测试报告',
                      description='用例执行情况:')

在报告中展示截图:

  • 截图须和html报告在同一目录下;
  • 需要在对应的case中打印一下截图名称,截图名称以 screenshot_*.png 格式命名.

效果如下

About

Create test report with Extent report use python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%