Ask a Question

how to send Junit Report over Email - commandline/testrunner.bat

678
Regular Contributor

how to send Junit Report over Email - commandline/testrunner.bat

how to send Junit Report over Email - commandline/testrunner.bat

Project Test run though command line

after testrun junit report file is storing in local, instead of that how to send that report over the email body or attachement 

 

using ReadyAPI 2.6

8 REPLIES 8
TanyaYatskovska
SmartBear Alumni (Retired)

Hi @678,

 

Please refer to the following topic where a similar question has been discussed:

https://community.smartbear.com/t5/SoapUI-Pro/how-to-send-the-test-result-report-over-mail-through-R...

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



678
Regular Contributor

Tried this but no success, 

 

Appreciate if anyone has any other approach other than creating a Tomcat 

TanyaYatskovska
SmartBear Alumni (Retired)

Community, any suggestions?

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



I've some something similar before using powershell and tying into an exchange server. What sort of environment are you working with? What email service do you need to use to send the report out with? Any/all information that you can provide will be helpful. 

 

I am going to assume you are on a Windows machine since you referenced testrunner.bat. If so, do you have access to powershell on that machine? If not, what can you get access to? 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
678
Regular Contributor

yes, its windows machine and i can use powershell 

groovyguy
Champion Level 0

Powershell has a built in applet called Send-MailMessage. Here's a link with more information about it : Send-MailMessage

 

There's a lot of in's and out's to this method of email. Where's your email server? Hosted internally to your environment? Hosted externally by a cloud service? You'll need an account that the powershell script will be able to send as, etc. Here's another good tutorial: Sending email with powershell




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
nmrao
Champion Level 3

How are you generating junit report?
Is it xml or html format?
Are you using any build tools such as apache-ant to execute? If so an email can be sent from build script.

Another alternative is to host the report on web server, so that user can access it over link instead of downloading the attachments.


Regards,
Rao.
678
Regular Contributor

I am generating HTML Report using TestRunner.bat 

 

and i am not using any build tool, i wanted to send the HTML report on body of the email 

cancel
Showing results for 
Search instead for 
Did you mean: