how to send Junit Report over Email - commandline/testrunner.bat
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @678,
Please refer to the following topic where a similar question has been discussed:
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tried this but no success,
Appreciate if anyone has any other approach other than creating a Tomcat
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Community, any suggestions?
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, its windows machine and i can use powershell
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
