zoukankan      html  css  js  c++  java
  • 【转】自动化框架中引入ExtentReport美化报告

    本文链接:https://blog.csdn.net/qq_30353203/article/details/82023922
    一、先引入三个依赖包

    <dependency>
    <groupId>com.relevantcodes</groupId>
    <artifactId>extentreports</artifactId>
    <version>2.41.1</version>
    </dependency>
    
    <dependency>
    <groupId>com.vimalselvam</groupId>
    <artifactId>testng-extentsreport</artifactId>
    <version>1.3.1</version>
    </dependency>
    
    <dependency>
    <groupId>com.aventstack</groupId>
    <artifactId>extentreports</artifactId>
    <version>3.0.6</version>
    </dependency>


    二、然后编写监听类,监听测试执行过程中哪些测试成功,哪些失败,写入报告中

    https://download.csdn.net/download/qq_30353203/10626913

    三、在xml文件中填写监听

    <listener class-name="com.demo.test.plugins.arrow.ExtentTestNGIReporterListener" />


    四、运行test后会出报告


    ————————————————
    版权声明:本文为CSDN博主「NeilNiu」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/qq_30353203/article/details/82023922

  • 相关阅读:
    BZOJ1409 : Password
    BZOJ2862 : 分糖果
    BZOJ2093 : [Poi2010]Frog
    BZOJ2506 : calc
    BZOJ3290 : Theresa与数据结构
    BZOJ1397 : Ural 1486 Equal squares
    BZOJ2789 : [Poi2012]Letters
    BZOJ3417 : Poi2013 Tales of seafaring
    BZOJ3251 : 树上三角形
    BZOJ3262 : 陌上花开
  • 原文地址:https://www.cnblogs.com/wangcp-2014/p/11461319.html
Copyright © 2011-2022 走看看