netease / arrow Goto Github PK
View Code? Open in Web Editor NEWA TestNG plugin with better test report template, re-run tests on failure, and many more.
A TestNG plugin with better test report template, re-run tests on failure, and many more.
如题
[ERROR] 读取D:\mvn-repository\log4j\log4j\1.2.17\log4j-1.2.17.jar时出错; invalid CEN header (bad signature)
[ERROR] /D:/code2/arrow/src/com/netease/qa/testng/PowerXMLReport.java:[178,77] 无法从静态上下文中引用非静态 方法 getTimestampFormat()
[ERROR] /D:/code2/arrow/src/com/netease/qa/testng/NeXMLSuiteResultWriter.java:[349,86] 找不到符号
符号: 变量 STACKTRACE_SHORT
位置: 类 com.netease.qa.testng.NeXMLReporterConfig
[ERROR] /D:/code2/arrow/src/com/netease/qa/testng/NeXMLSuiteResultWriter.java:[349,127] 找不到符号
符号: 变量 STACKTRACE_SHORT
位置: 类 com.netease.qa.testng.NeXMLReporterConfig
[ERROR] /D:/code2/arrow/src/com/netease/qa/testng/NeXMLSuiteResultWriter.java:[354,86] 找不到符号
符号: 变量 STACKTRACE_FULL
位置: 类 com.netease.qa.testng.NeXMLReporterConfig
[ERROR] /D:/code2/arrow/src/com/netease/qa/testng/NeXMLSuiteResultWriter.java:[354,126] 找不到符号
符号: 变量 STACKTRACE_FULL
位置: 类 com.netease.qa.testng.NeXMLReporterConfig
[INFO] 6 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.911 s
[INFO] Finished at: 2018-05-03T10:59:06+08:00
[INFO] Final Memory: 17M/143M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "development" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project arrow: Compilation failure: Compilation failure:
[ERROR] 读取D:\mvn-repository\log4j\log4j\1.2.17\log4j-1.2.17.jar时出错; invalid CEN header (bad signature)
[ERROR] /D:/code2/arrow/src/com/netease/qa/testng/PowerXMLReport.java:[178,77] 无法从静态上下文中引用非静态 方法 getTimestampFormat()
[ERROR] /D:/code2/arrow/src/com/netease/qa/testng/NeXMLSuiteResultWriter.java:[349,86] 找不到符号
[ERROR] 符号: 变量 STACKTRACE_SHORT
[ERROR] 位置: 类 com.netease.qa.testng.NeXMLReporterConfig
[ERROR] /D:/code2/arrow/src/com/netease/qa/testng/NeXMLSuiteResultWriter.java:[349,127] 找不到符号
[ERROR] 符号: 变量 STACKTRACE_SHORT
[ERROR] 位置: 类 com.netease.qa.testng.NeXMLReporterConfig
[ERROR] /D:/code2/arrow/src/com/netease/qa/testng/NeXMLSuiteResultWriter.java:[354,86] 找不到符号
[ERROR] 符号: 变量 STACKTRACE_FULL
[ERROR] 位置: 类 com.netease.qa.testng.NeXMLReporterConfig
[ERROR] /D:/code2/arrow/src/com/netease/qa/testng/NeXMLSuiteResultWriter.java:[354,126] 找不到符号
[ERROR] 符号: 变量 STACKTRACE_FULL
[ERROR] 位置: 类 com.netease.qa.testng.NeXMLReporterConfig
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
构建jar 包时候
PowerXMLReporter.java ,Line:178 报错
when i run 2 cucumber scenerio parellely with this jar . and when i one scenerio is failed. it is rerun successfully that scenerio but total count showing is 3. it should override old results.
应用@dataProvider注释时,如运行有错误,在power-emailable-report展示时会把正确的也放到错误里面。
我的测试代码如下:
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class Test2 {
@DataProvider
public Object[][] dataProvider(){
return new Object[][]{{1},{2},{3}};
}
@Test(dataProvider="dataProvider")
public void testAssert1(int a){
Assert.assertEquals(1, a);
}
@Test
public void testAssert2(){
Assert.assertEquals("2", "2");
}
}
结果是:
Suite1
Total tests run: 6, Failures: 2, Skips: 0
但是在
power-emailable-report里面 failed 多出了一项当参数为1时的正确结果。
tesng dataprovider测试用例失败的话只有第一组数据会重跑,后续的数据失败不会重跑
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.