GithubHelp home page GithubHelp logo

jianxiamage / extenthtmltestrunner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wishchen/extenthtmltestrunner

0.0 1.0 0.0 344 KB

Create test report with Extent report use python

Python 84.58% HTML 15.42%

extenthtmltestrunner's Introduction

ExtentHTMLTestRunner

python使用extent report模板执行测试、生成报告

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 格式命名.
  • 报告需要的extent.js、extent.css可能下载不了,如果报告展示有问题可能是这些资源没有拿到,注意检查下。

报告中截图点击小图展示大图还需优化

extenthtmltestrunner's People

Contributors

wishchen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.