
ReportNg
LetsStudy
The growth of age will not be a hindrance to study.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
1.2 reportNg之properties修改
1、reportng.properties修改 atTime=at causedBy=Caused by chronology=Chronology clickToExpandCollapse=Click to expand/collapse coverageReport=Coverage Report dependsOnGroups=Depends on group(s) dependsOn...原创 2019-07-01 17:28:13 · 256 阅读 · 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 · 309 阅读 · 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 · 211 阅读 · 0 评论 -
1.5 reportNg之ReportNGUtils修改
1、ReportNGUtils增加了如下方法 ①截图方法 注: 1、该方法会在test-output目录下创建一个img文件夹,用来存储截图 2、方法中会根据被@Test标注的测试方法的Method.name来判断是否有存在的截图,如果有会删除,所以在方法命名时,各个方法名之间不要存在包含与被包含的关系,以免截图引用错误 3、该方法会将生成的图片格式化命名 public Strin...原创 2019-07-01 17:46:10 · 292 阅读 · 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 · 323 阅读 · 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 · 226 阅读 · 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 · 370 阅读 · 0 评论 -
1.9 reportNg效果展示
1、reportNg效果展示 注:截图功能,必须在@aftermethod中引用,才能生成,示例如下 @AfterMethod public void f8(ITestResult result ){ try { ReportNGUtils reportNGUtils = new ReportNGUtils(); reportN...原创 2019-07-01 18:09:39 · 215 阅读 · 0 评论 -
1.1 reportNg定制
1、从github上clone源码 源码github:https://github.com/dwdyer/reportng.git 修改后的源码:https://github.com/wxwcd/reportNG.git 2、添加pom,把reportng转成maven项目,下载下来的源码的目录结构不对,需按照maven目录结构修改一下 3、reportNg的pom如下 <?...原创 2019-06-30 23:49:44 · 262 阅读 · 0 评论