I am trying to publish MSTest results to the team. I'd like to send all the test results by email, or have a testresults.trx file attached, or something similar.
How can this be done in TFS 2010?
We are using trx2html tool to convert MSTest report files to readable form (html files). These html files are attached to email send by MSbuild script to all contacts specified in the mailing list.
In the TFS you have to update build template. Call trx2html tool using InvokeProcess activity after every MStest call and at the end pick all html files and send e-mail using Send email activity, but I don't think there is such activity. You have to implement it or send mail using some external tool/script.
Related
How i can add attachment link in TFS Build notification email? I have TFS 2017 on-premises installed. I have tried by making changes in xls file but it didnt worked. i will be grateful to you if anyone can help me with this.
You can find the email templates in %PROGRAMFILES%\Microsoft Team Foundation Server 2015\Application Tier\TFSJobAgent\Transforms and modify them the way you want. In this folder you'll find the build completion events xsl files.
The build events expose a Url property, which shows the hyperlink in the email.
Besides, you could also choose to use some 3rd-party extension to send E-mail Notification.
Send Email
Other Extension
Those tasks they send an email to the address(es) you defined in your pipeline. You can defined the contents of the message yourself.
I have created a Jenkins job to execute robot framework. The results[log.html and report.html] of the Jenkins are getting displayed properly.
Now I am using the email-ext plugin to send the log file as email content to the specified group of users, but the received email doesn't display the content and shows error as "Opening Robot Framework log failed" in the email.
I have set the email-ext plugin as follows:
I wish to send the robot results as email content, not as an attachment, I have tried various methods like Linux, shell scripting etc, but still, it doesn't work. How can the log.html email content can be sent to the email body?
You will not be able to just put the entire content of the robot log.html in an email because it contains javascript.
I've been looking into this the last few days as well and have come to see that using a groovy based template using the jenkins Email-ext plugin is the way to go. Googling for 'jenkins robot framework email template' shows a few hits and one that I'm planning to try and then modify to my liking was this one:
https://github.com/vladwa/robot-email-template
From this I found that we don't have access to all of the test info built in, so I wrote up some modifications to load the robot output.xml as an artifact to then be able to inject any data in that file into the html email report. Here's the gist of that:
https://gist.github.com/harbdog/070f0be66ebae343d6d11e57a6c6fc08
Here's what it looks like for example:
You have to configure publish robot framework test result <post build> and then use {ROBOT_REPORTLINK} in email content section
I have approx 50 Jenkins job running HP Performance center script twice a day, which archives Performance center report that it gets from remote PC server. I am able to send these individual reports on emails but I would like to consolidate all these reports. Getting the status of these tests by reading html would be a better option. Is there a way I can achieve this
http://localhost:8080/job/Test_Sanity/job/Test_Sanity/38//artifact/performanceTestsReports/pcRun106540/Report.html
You might have to zip the reports manually and use extended email plugin to attach the same.
(Note: Extended email plugin can attach only with in the workspace , so you might have to move your zip file to workspace)
How to email the reports created by ReportNG using Jenkins?
I have done ReportNG set-up which is perfectly giving the reports to me and I have integrated my suite with Jenkins. But I don't know how to send the reports created by ReportNg as mail via Jenkins. Because, only if we have the entire html folder, the ReportNG works and able to see html report since there are dependencies in the ReportNG so I have to zip and send the entire html folder to see the perfect result.
Note : I am using Emailable-Ext plugin in Jenkins.
You can get the report links from your jenkins server where the reports are saved. And just email the link to the stakeholders, instead of emailing entire report.
Also, you can try jenkins plugins to automatically move the reports to some other machine/directory for future purpose (if needed) and email the links.
I have set up a custom build event handler for TFS 2012 builds via the SOAP web service option. This handlers works nicely and is built to work with the XML payload that TFS gives us.
I am now trying to build a web page that can show similar information for a build. However, I don't want to go through the trouble of trying to re-create my XML payload or modify my interfaces to deal with TFS objects instead of objects I defined from parsing the payload.
So, is this event XML stored somewhere in the DB? Is it accessible or easily generated via the TFS API?
Yes it is. You can find it in the Event column of the tfs event queue.
Here is a sample export of the queue (XML truncated here):
PartitionId 262696
Id 1
Event <?xml version="1.0" encoding="utf-16"?><WorkItemChangedEvent xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><PortfolioProject>REDACTED</PortfolioProject><ProjectNodeId>8afd8744-c011-43b2-a25...(truncated)
EventType WorkItemChangedEvent
Status Processed
ClientHostName NULL
CreatedTime 2013-08-11 18:13:59.767