cancel
Showing results for 
Search instead for 
Did you mean: 

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

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
Community Manager

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

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 Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Regular Contributor

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

Tried this but no success, 

 

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

Community Manager

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

Community, any suggestions?

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Community Hero

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

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!
Regular Contributor

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

yes, its windows machine and i can use powershell 

Community Hero

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

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!
Community Hero

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

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.
Regular Contributor

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

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 

New Here?
Join us and watch the welcome video:
Top Kudoed Authors