I am trying to call test automation scripts(ranorex) at the end of each development build in Teamcity which is working ok.
I am sending email notification at the end of test automation, but I dont know how to attach the log file to email notifications from agent's side as I dont have access to teamcity server file system.
It's actually possible to specify an attachment to be sent togehter with the e-mail.
Ranorex userCode:
using Ranorex.Core.Reporting;
string RepName = TestReport.ReportEnvironment.ReportName;
System.Net.Mail.Attachment attachment;
attachment = new System.Net.Mail.Attachment(RepName + ".html");
mail.Attachments.Add(attachment);
Probably your implementation is somewhat different and to get this working you'll find all the required information from here: http://www.ranorex.com/forum/send-mail-module-t2356.html
Related
Sending SMS url in my php class is working with the curl library. The problem is that if the url request is delayed (in CURLOPT_CONNECTTIMEOUT_MS or CURLOPT_TIMEOUT_MS), my site will be loaded for the user with a delay. What do you suggest? Should I run SMS url asynchronously? How do I do this? Or put a Schedule on the server? The problem with Schedule is that I want the SMS to be sent exactly when the user runs the script, so I can't set a timeline for Schedule to run in certain time. If the Schedule runing time is short, the database gets involved and I do not like this. In fact, I want to ask php to execute the Schedule after the user runs the script. How do I do this?
so I asked myself how to tell the server computer that a new SMS event has occurred?
(My computer operating system is Windows and I use xampp). I saved the text messages in the database. And for each text message I created a small empty file in a folder (smsevents) on the Windows server, With the same name that is stored in the database in the ip field for each SMS. And on the server I used the powershell to call a url when a new file is placed in the (smsevents) folder. That url contains the name of the newly created file. Then in this url, a record of the database in the SMS table is called, whose Ip field is the same as the name of the created file. And is sent to the SMS sending system, And url deletes the file created in the folder (smsevents). I created a .bat file that runs when the server is turned on and runs the powershell script. And it was done. I will write more details soon.
I understand this might not be the best idea - but I am trying to test running a batch file on a post to send a msg.exe message to a user. This works when using IIS express locally, but once I publish to my intranet site it does not work - no errors just no message. Any ideas?
string filepath = "C:\\msg\\msg.bat";
System.Diagnostics.Process.Start(filepath);
Configured Jenkins to send emails after every build run, the email content contains a report URL, it was all working fine from many days but recently what we noticed that the URL in email content is different though once we click on the URL, it shows the proper report something like this.
URL mentioned in the email:
http://IP:8080/job/Test/lastCompletedBuild/reports/overview.html
URL is shown in the actual mail
https://urldefense.proofpoint.com/v2/url?u=http-3A__IP-3A8080_job__overview-2Dfeatures.htm.....
Is there any way I can revert this to send the same URL as configured in default content?
Thank you.
Your company installed Proofpoint's Targeted Attack Protection, hence the rewritten URL points to proofpoint.com. There might be a way to whitelist your Jenkins in Proofpoint, but I'm pretty sure that there is nothing to be done in Jenkins.
This will be your mail server rewriting urls for spam/phishing protection
sorry for my bad english.
i have server plugin for tfs alerts as mention it is sending mail when something is assign to me.
now , i want that the change fields aslo will me mailed by plugin.
like , state , triage and etc.
or all the fields will be send in email.
can any one share me the logic to do that.
sorry if i cannot defined u my question as i have very bad english.
if code required then i will also send the code . plz help me
search your tfs installation directory for *.xsl files. There should be a bunch of xsl transforms which produce the emails sent by tfs.
I am using Windows SharePoint Services Incoming E-Mail timer job to add email in a document library.On itemupdated event I am trying to update a workflow task.Its showing completed,however internally its not getting completed and rest of the flow is not working.Please suggest.
Thanks for replying.I have solved the problem.What exactly I was doing is using Windows SharePoint Services Incoming E-Mail timer job I was uploading .eml file in a document library.On Itemupdated event I was updating a task based on email body.However before task.update I had written base.DisableEventFiring() which was causing that error.
Now it is fixed . :)
xyz