No Testng reports coming in Email with jenkins Email Ext Plugin

2,091 views
Skip to first unread message

Tamu

unread,
Dec 18, 2015, 10:16:53 AM12/18/15
to testng-users
Hi testng friends,

Its been a full day now, and I havent got any success in getting Testng reports in email once the Jenkins Job run. I doubt if at all its possible because I have tried all possible ways, googled but found no clear cut answer which is VERY strange as this is a very -2 common requirement to get the tests report in email , especially to be sent to stakeholders. 

I found this link just a min back and looks like I cannot get my Testng reports emailed via Jenkins

I though configured Jenkins Job and here are the details of Editable Email Notification in Jenkins Job : 


Default Content - 
${FILE,path="a/tests/target/surefire-reports/emailable-report.html”} - This is the path to my testng html file. The Jenkins Jobs workspace

starts with ws and complete path to the file from workspace is ws/a/tests/target/surefire-reports/emailable-report.html
Let me know if this path is not correct ? I though have tried all possible options here.

When I give the file path to Attachments field as - tech.core/tech.core.api.tests/target/surefire-reports/index.html

I do get an attachment with the email But that doesnt contain any image. Also when I click the attachment, the report is highly distorted and no styling/css is applied on to it.

Let me know if it is possible to get Testng reports via email so that I can send these to stakeholders. I thought this to be a very very common requirement and did not 
expected it to take so much time to resolve/configure.


Any answers from testng users, highly appreciated in advance. Let me know if there are ways to achieve this.  

Thanks



Krishnan Mahadevan

unread,
Dec 19, 2015, 11:03:05 PM12/19/15
to testng...@googlegroups.com
I don't think this problem is related to TestNG but it seems more of a Jenkins problem.

If you are working with maven then you could consider using this plugin : http://doc.fortysix.ch/maven/maven-postman-plugin/surefire-mail-mojo.html

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages