我正在为soapUi生成自定义报告,并且我正在使用TestNG和Maven.如何生成报告?->I在每次运行后手动创建一个报告文件夹和创建HTML报告文件。(我不是
using surefire report) i.e, I have added this action in setup and teardown method.
下面提到的是我的项目概述。
主项目( SampleReport.html )|-src/ Main /java/测试/类|-测试输出(Maven)|-报表|-Maven
现在如何与Hudson集成?我的意思是这个报告应该在Hudson中显示,并作为电子邮件报告发送
在我的selenium TestNG类中,有一些方法,如method1、method2等。我为每个方法添加了失败和成功条件。
public class TestNGClass {
public void method1(String value) throws Exception {
if(value.equals("PASS"){
org.testng.Assert.assertTrue(condition, message);
}
}
//This is another method
public void method2(String valu
我试图在执行测试用例后发送一封电子邮件,附件为testng生成的emailable-report.html文件,但结果是错误的。
请在这里找到堆栈跟踪,并进行必要的操作。
javax.mail.MessagingException: IOException while sending message;nested exception is:
java.io.FileNotFoundException: D:\test-output (Access is denied)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.ja