
ReportNg
LetsStudy
The growth of age will not be a hindrance to study.
展开
-
1.2 reportNg之properties修改
1、reportng.properties修改atTime=atcausedBy=Caused bychronology=ChronologyclickToExpandCollapse=Click to expand/collapsecoverageReport=Coverage ReportdependsOnGroups=Depends on group(s)dependsOn...原创 2019-07-01 17:28:13 · 250 阅读 · 0 评论 -
1.3 reportNg之result.html.vm修改
1、reportNg之result.html.vm修改<?xml version="1.0" encoding="utf-8" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">...原创 2019-07-01 17:32:18 · 301 阅读 · 0 评论 -
1.4 reportNg之reportng.css修改
1、reportNg之css修改* {padding: 0; margin: 0;}a {color: #006699;}a:visited {color: #003366;}body {font-family: Lucida...原创 2019-07-01 17:35:16 · 200 阅读 · 0 评论 -
1.5 reportNg之ReportNGUtils修改
1、ReportNGUtils增加了如下方法①截图方法注:1、该方法会在test-output目录下创建一个img文件夹,用来存储截图2、方法中会根据被@Test标注的测试方法的Method.name来判断是否有存在的截图,如果有会删除,所以在方法命名时,各个方法名之间不要存在包含与被包含的关系,以免截图引用错误3、该方法会将生成的图片格式化命名public Strin...原创 2019-07-01 17:46:10 · 286 阅读 · 0 评论 -
1.6 reportNg之ReportNGUtils源码
1、reportNG之ReportNGUtils修改后的源码如下//=============================================================================// Copyright 2006-2013 Daniel W. Dyer//// Licensed under the Apache License, Versio...原创 2019-07-01 17:47:50 · 317 阅读 · 0 评论 -
1.7 reportNg之classresult.html.vm修改
1、classresult.html.vm修改后的源码如下注:①提供了截图显示及根据鼠标焦点放大缩小图片功能②增加了endtime、shot、description等class## This macro formats the results (whether passed, skipped or failed) of the test## methods in a singl...原创 2019-07-01 17:53:19 · 215 阅读 · 0 评论 -
1.8 reportNg之overview.html.vm修改
1、overview.html.vm修改后的源码如下注:①增加了overview页面的作者②增加了饼图显示,饼图引用的是百度的echars.min.js,需要在HTMLReporter.java中添加一行代码,请看2中的方法。<?xml version="1.0" encoding="utf-8" ?><!DOCTYPE html PUBLIC "-//W3C...原创 2019-07-01 18:02:09 · 362 阅读 · 0 评论 -
1.9 reportNg效果展示
1、reportNg效果展示注:截图功能,必须在@aftermethod中引用,才能生成,示例如下@AfterMethodpublic void f8(ITestResult result ){ try { ReportNGUtils reportNGUtils = new ReportNGUtils(); reportN...原创 2019-07-01 18:09:39 · 209 阅读 · 0 评论 -
1.1 reportNg定制
1、从github上clone源码源码github:https://github.com/dwdyer/reportng.git修改后的源码:https://github.com/wxwcd/reportNG.git2、添加pom,把reportng转成maven项目,下载下来的源码的目录结构不对,需按照maven目录结构修改一下3、reportNg的pom如下<?...原创 2019-06-30 23:49:44 · 256 阅读 · 0 评论