Page 3 of 3

Re: Sending an email of Test Results

Posted: Tue Nov 20, 2012 10:15 pm
by jchou
Will do. Thanks, Markus.

Joe

Re: Sending an email of Test Results

Posted: Tue Dec 18, 2012 3:46 am
by jchou
Hi Markus,

Got a new question about emailing test results. We have a need to use different receiver email address (who would receive test result email) in different test environments. What would be a flexible way to do that when I run .exe from command line? Should I pass the email address in as an argument? If so, should I use the global parameter option (/pa:receiverEmail="[email protected]")? Do you have a sample code to retrieve the parameter argument in main()? Looks like I need to follow the Ranorex convention of doing it, don't I? Your suggestions would be highly appreciated.

Thanks.

Joe

Re: Sending an email of Test Results

Posted: Tue Dec 18, 2012 3:19 pm
by Support Team
Hi,

I would just pass it as argument, you can do it as you would do it with "normal" C# applications.
The "args" array will then contain the arguments passed, like the email address.

Regards,
Markus

Re: Sending an email of Test Results

Posted: Wed Dec 19, 2012 1:21 am
by jchou
Thanks, Markus. That's exactly what I did, and it seems to work fine.

Re: Sending an email of Test Results

Posted: Fri Mar 29, 2013 2:17 pm
by pramoodd
Hi,
I tried using the mail logger code(The code attached earlier).
I even tried the compression suggestion.
BUt Mail is not send .
IN Maillogger.cs
I changed the HostName:smtp.gmail.com;
Changed the Port to port = 465;

and in program.cs,
I passed my mail ID (from),(Onemore mail ID), and the same subject(Didnt change any) to MailLogger object. (Ln:35)
(Plz check attachment)

While running I am getting a error.(Plz see Attachment)
Did I miss any?

Re: Sending an email of Test Results

Posted: Tue Apr 02, 2013 2:46 pm
by Support Team
Hello,

Could you please verify if SSL is enabled in your settings?
Please take a look at the code snippet below:
client.Credentials = basicCredential;
client.EnableSsl = true;
client.Send(mail);
Thank you in advance.

Regards,
Markus (T)

Re: Sending an email of Test Results

Posted: Tue Nov 26, 2013 9:58 am
by will
Support Team wrote:Hi,

You find the setting in the properties window of the test suite, see attached screenshot.
ZippedReport.png
Regards,
Markus
Ranorex Support Team
Hi, Markus

I can't find the option in my Ranorex(Version 3.0.5), so what should i do now? I want to mail the report with an attachment. Is there another way to do this?

Thanks
Will

Re: Sending an email of Test Results

Posted: Wed Nov 27, 2013 2:14 pm
by Support Team
Hello Will,

We have provided the possibility to store reports in a compressed format since Ranorex 3.3.x.
Please take a look at our Release Notes.

I would recommend to update to Ranorex 3.3.5 or Ranorex 4.1.2 (current version).
You may download Ranorex from our Download Archive.

Regards,
Markus (T)

Avoiding Teardown Module

Posted: Fri Aug 15, 2014 2:32 pm
by BorisS
Are there any way to avoid adding teardown module to every test case?

Out solutions have many test cases in a single project. I would prefer to make this work once in the program.cs file after execution of the Run method. Is there any way to run over all performed testcases and make a check of their exit status?

Re: Sending an email of Test Results

Posted: Tue Aug 19, 2014 2:30 pm
by Support Team
Hello Boris,

Unfortunately it’s not possible to check the status of all TestCases using our documented API.
Thank you for your understanding.

Regards,
Robert

Re: Sending an email of Test Results

Posted: Fri Oct 30, 2015 4:29 pm
by riagarwal
Hello,

I am trying to implement the solution that you have given for sending an email for the reports.
When I run your solution, it runs fine and I am able to receive the email.

however, when i implement those files in my existing project which is in (VB.NET) then it is not working as the project that you have given is in C#.

I am having issues in making that C# project in VB.NET, is it possible for you to please provide the equivalent project for email in VB.NET..

Thanks,
Ritesh Aggarwal

Re: Sending an email of Test Results

Posted: Tue Nov 03, 2015 8:36 am
by Support Team
Hello Ritesh Aggarwal,

Unfortunately, the 'CustomLogging'-sample is only available as a C# project.

If you need to implement your solution in VB.NET, then you could convert the C# project to a VB.NET project easily.

Please open the project in Ranorex Studio and use the function 'Convert from C# to VB.NET'.
convert_project.png
Please let me know if you need further assistance.

Regards,
Johannes