51Testing软件测试论坛
标题:
reportNG替代testNG报告
[打印本页]
作者:
xchen
时间:
2014-10-16 13:49
标题:
reportNG替代testNG报告
请问这些报的是什么错啊?
[testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/Module
[testng] at java.lang.Class.getDeclaredMethods0(Native Method)
[testng] at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
[testng] at java.lang.Class.privateGetPublicMethods(Unknown Source)
[testng] at java.lang.Class.getMethods(Unknown Source)
[testng] at org.apache.velocity.util.introspection.ClassMap.getAccessibleMethods(ClassMap.java:258)
[testng] at org.apache.velocity.util.introspection.ClassMap.populateMethodCache(ClassMap.java:151)
[testng] at org.apache.velocity.util.introspection.ClassMap.<init>(ClassMap.java:64)
[testng] at org.apache.velocity.util.introspection.IntrospectorBase.createClassMap(IntrospectorBase.java:126)
[testng] at org.apache.velocity.util.introspection.IntrospectorBase.getMethod(IntrospectorBase.java:112)
[testng] at org.apache.velocity.util.introspection.Introspector.getMethod(Introspector.java:100)
[testng] at org.apache.velocity.runtime.parser.node.PropertyExecutor.discover(PropertyExecutor.java:65)
[testng] at org.apache.velocity.runtime.parser.node.PropertyExecutor.<init>(PropertyExecutor.java:39)
[testng] at org.apache.velocity.util.introspection.UberspectImpl.getPropertyGet(UberspectImpl.java:156)
[testng] at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:125)
[testng] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
[testng] at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)
[testng] at org.apache.velocity.runtime.parser.node.ASTAddNode.value(ASTAddNode.java:66)
[testng] at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51)
作者:
xchen
时间:
2014-10-16 14:29
问题没有描述清楚,我想用reportNG替代testNG在ant中写了段代码,如下。关闭testNG自身的报告,使用reportNG的报告。testNG可以调用,但是报告没出来,然后报出这些错误。
请问下是什么原因。
<target name="runtest" depends="build">
<testng classpathref="TmTest.classpath"
outputdir="${test-results.dir}"
useDefaultlisteners="false"
listeners="org.uncommons.reportng.HTMLReporter,org.testng.reporters.FailedReporter" >
<xmlfileset dir="${testng}" includes="${testng.file}"/>
<sysproperty key="org.uncommons.reportng.title" value="My Test Report"/>
</testng>
</target>
作者:
调皮的小五郎
时间:
2014-10-16 16:26
看帖顶帖这是必须滴!
作者:
xchen
时间:
2014-10-17 08:32
你真够调皮的!
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2