Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经开发了 TestNG 框架并实现了 Maven
当我运行脚本时,会生成结果,并且在目标文件夹中,当我打开 index.html 时,所有脚本都显示为通过,尽管它失败了。
我使用了 java 验证(reporter.log)
有人可以建议我如何将 java 验证更改为 TestNG 以查看失败吗?
预先感谢
Reporter.log 仅用于记录报告中的语句。您需要使用断言来进行验证。在 Testng 中试用Assert类。