Email attachment of Summary.html report

89 views
Skip to first unread message

ramamu...@gmail.com

unread,
Jun 7, 2019, 10:42:10 AM6/7/19
to Cognizant Intelligent Test Scripter
Requirement:Once the automation run is completed, we would like to send email attachment of Summary.html results to people. Can you guide us how to achieve this ?

shantha laxmi kumar

unread,
Jun 7, 2019, 10:54:00 AM6/7/19
to Cognizant Intelligent Test Scripter
Navigate to configuration>run settings in mail settings tab, provide the necessary details of your SMTP server (that you can gain access to). Check the setting "send mail post execution" under run settings and save the settings of the test set or case. This is the necessary settings to configure mail send settings.

ramamu...@gmail.com

unread,
Jun 11, 2019, 6:18:02 AM6/11/19
to Cognizant Intelligent Test Scripter
Below message is printed in the CITS UI Console box. But I didn't receive email because, the Zipped folder has .JS file. .JS files are not allowed in email. what is the suggestion in resolving this Issue ?

-----------------------------------------------------2019-06-11 15:44:51:06S +0530 [INFO] com.cognizant.cognizantits.engine.mail.Mailer send:Sending Reports to Mail
2019-06-11 15:44:51:06S +0530 [INFO] com.cognizant.cognizantits.engine.mail.Mailer sendMail:Compiling Mail before Sending
2019-06-11 15:44:52:06S +0530 [INFO] com.cognizant.cognizantits.engine.mail.Mailer getMessagePart:Attaching Reports as zip
2019-06-11 15:44:52:06S +0530 [INFO] com.cognizant.cognizantits.engine.mail.Mailer sendMail:Connecting to Mail Server
2019-06-11 15:44:53:06S +0530 [INFO] com.cognizant.cognizantits.engine.mail.Mailer sendMail:Sending Mail
2019-06-11 15:45:01:06S +0530 [INFO] com.cognizant.cognizantits.engine.mail.Mailer sendMail:Reports are sent to Mail

shantha laxmi kumar

unread,
Jun 12, 2019, 2:37:58 AM6/12/19
to Cognizant Intelligent Test Scripter

Please share the settings saved for the below mail parameter in "mail settings" in CITS,
- attach.reports

If this is set to true, the latest.zip file contents are sent and if ".js" files are blocked in your network, please ensure that the this is set to false, instead you can use the mail body HTML or set this parameter "attach.standaloneHtml"  to true for the detailed HTML report.

ramamu...@gmail.com

unread,
Jun 12, 2019, 6:19:42 AM6/12/19
to Cognizant Intelligent Test Scripter
.js is blocked in our network. Requirement is to get Summary.html in the email so that user will have the consolidated view instead of clicking 100s of individual tests htmls. On clicking Individual tests in Summary, we need test case level details as well. how to get both if .js is blocked in network ?

shantha laxmi kumar

unread,
Jun 14, 2019, 4:19:57 AM6/14/19
to Cognizant Intelligent Test Scripter
Summary.html requires the supporting media files (includes .js files as well) for viewing the same and since this is blocked in your network. Make use of the following configuration to get details at test case and test step level,

- attach.standaloneHtml - True (for the test case report html files)
- The mail body itself by default will have the test case level results in the mail

ramamu...@gmail.com

unread,
Jun 19, 2019, 2:14:04 AM6/19/19
to Cognizant Intelligent Test Scripter
Thanks! Mail is working.

Is there any solution to open Summary.html in the attached zip file ?

shantha laxmi kumar

unread,
Jun 21, 2019, 4:56:25 AM6/21/19
to Cognizant Intelligent Test Scripter
No, out of the box only standalone test case reports can be sent, however the summary of test case execution in test set is already available as part of the mail body.
Reply all
Reply to author
Forward
0 new messages