9 - Sending TestNG HTML Emailable Report in mail body [Continuous Integration Selenium]

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Hi Sandeep,
My sender and receiver of Jenkins report is using outlook mail. Please suggest how to configure it.

AkbarShaikh-skqx
Автор

Hi Sandeep,

I am getting the email with failed build link, but not able to get the reports as attachment even after using the 'pre send script'. I am using maven and reportng so getting the reports in so i tried the script as below

def reportPath =
msg.setContent(reportPath.readToString(), "text/html");

please suggest.

nageshmittapalli
Автор

I am using serenity. I have added dependence and configuration in pom.xml for serenity emailable report. What is the pre script in jenkins ?

shreyasb.s
Автор

I have tried this. It is giving " No such property: report for class: Script1" error. I tried to debug I didn't get this. How to solve ?

vidyakabber
Автор

Hi Sir, I am getting the script in post-script printed in the email, not the test results. Please help me understand what mistake I am doing here..

savithatn
Автор

In the mail body how to show given below execution summary. Please assist me for implementation in current Selenium Maven framework.
EXECUTION SUMMARY :

Total Executed 160
Passed 149
Failed 11
Skipped 0

SandeepKumar-kucg
Автор

Hello Sir, it worked, but if I got failure build, how can I attach the screenshot of the failure ? Thanks for advice

aliridhohabsyi
Автор

Hello Sir, it worked perfecty for me. Thanks alot. But I need one more requirement. I need to send only certain lines of that file. means I need to send top 30 lines of that file. How to modify the pre send script. Please help me in this regard. Thanks in advance

kumar.aligeti
Автор

Hello Sir, instead of emailing entire html report, is there any way to parse the html report & email only selected data ?

travelexperience
Автор

didn't work for me, followed all your steps

jimferko
Автор

Hi Sir, i tried using your way and also this way ( mentioned link and command is used from the link ).. but the attachment is not coming ...pls help



Easy way to include the html file to email content is to add below line in the
default content = ${FILE, path="yourfilename.html"}

vikasswami