本文介绍了TestNg emailable-report 没有更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过右键单击运行 tesng.xml 文件来运行它时,emailable-report.html 文件显示为最新的测试结果,但是当通过mvn test"从终端运行它时,测试结果按预期到来,但 emailable-report.html 文件根据当前结果更新.

When I am running the tesng.xml file by running it by right clicking on it ,the emailable-report.html file is showing as per the latest test result ,but While running it from terminal by "mvn test" test results are coming as per expected but emailable-report.html file is updated as per the current result .

推荐答案

那是因为当您使用 maven 运行它时,您的报告可能是在目标文件夹中生成的,而直接通过 testng.xml 运行它时,您的报告可能是在 test-output 中生成的.因此,您可能希望它位于不同的位置,并且您打开了错误的报告,而您的最新报告在目标文件夹中.

That's because your report is probably generated in target folder when you run it with maven and in test-output when running it via testng.xml directly. So you are probably expecting it to be in different place and you are opening wrong report, while your latest report is in target folder.

这篇关于TestNg emailable-report 没有更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 05:02