Will do. Thanks, Markus.
Joe
Sending an email of Test Results
Re: Sending an email of Test Results
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Sending an email of Test Results
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
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
Thanks, Markus. That's exactly what I did, and it seems to work fine.
Re: Sending an email of Test Results
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?
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?
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Sending an email of Test Results
Hello,
Could you please verify if SSL is enabled in your settings?
Please take a look at the code snippet below:
Regards,
Markus (T)
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
Hi, MarkusSupport Team wrote:Hi,
You find the setting in the properties window of the test suite, see attached screenshot. Regards,
Markus
Ranorex Support Team
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Sending an email of Test Results
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)
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
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?
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?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Sending an email of Test Results
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
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
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Sending an email of Test Results
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'.
Please let me know if you need further assistance.
Regards,
Johannes
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'.
Please let me know if you need further assistance.
Regards,
Johannes
You do not have the required permissions to view the files attached to this post.