要禁用默认监听器,
Goto Eclipse Project-> Properties -> TestNG -> Disable deafult listeners.
运行后,您将遇到以下错误:
java.lang.NoClassDefFoundError: com/google/inject/Module at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.privateGetPublicMethods(Unknown Source) at java.lang.Class.getMethods(Unknown Source)
要解决此问题,请下载google-guice-3.0.zip并将guice-3.0.jar粘贴到您的类路径中。
现在运行并检查 工作区 / test-output / html中的报告。



