Scheduler email customization

1 Answer 107 Views
Coded Steps Scheduling Test Results
Esad
Top achievements
Rank 1
Esad asked on 26 Jul 2021, 11:22 PM

Hello Telerik Team,

I saw a dated post talking about possibility of attaching any custom report/ file to the scheduling server's email. I ran into a similar issue and I want to attach some custom information in the scheduling server's email. It can be either in the body of the email or as an attachment. I am unsure if it is doable. Also as mentioned in the post, I am unsure if any part of the execution extension does that.

Thanks,
Esad

1 Answer, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 27 Jul 2021, 02:32 PM

Hello Esad,

Thank you for contacting us with your question. I will share more details about the execution extensions and what you could do to send a custom email.

Execution extensions allow you to integrate Test Studio better into your environment and perform some custom actions. You can use it to write the results from a test list execution to an external file, like in the example. On top of that, you can write code to attach this file to an email and send it through your SMTP server. Possibly the best place to send the email would be after the test list is completed, so in the OnAfterTestListCompleted method.

There is a built-in feature in Test Studio to send emails with results from your scheduled test lists. It allows you to attach different result formats and general information about the execution, but no custom files or text.

If you want to customize the email and attach different files to it, you need to implement that in an execution extension. I found an article on the web on how to send emails using SMTP server, which might be helpful to you. Please note that you will need to have a SMTP server setup in both cases - if you use the built-in feature to send emails or a custom implementation, because the SMTP server is not provided by Test Studio.

I hope the above information will be helpful to you. Please do not hesitate to write back, if you have any follow up questions.

Regards,
Plamen Mitrev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Test Studio course! Check it out at https://learn.telerik.com/.
Esad
Top achievements
Rank 1
commented on 27 Jul 2021, 02:46 PM

Good morning Plamen,

Thank you for your answer. I am currently able to send custom e-mails through Gmail smtp server and in fact thanks for sharing the web source that I followed that to implement sending emails.

But I just wanted to confirm that is not possible with Telerik's scheduling server currently? or can the scheduling server's name and port may be used as SMTP?

Esad
Plamen Mitrev
Telerik team
commented on 28 Jul 2021, 09:18 AM

I am happy to hear that you have a working solution to send custom e-mails through SMTP server.

I can confirm that it is not possible to access the Test Studio configuration of the SMTP server and use that instead. It is not exposed and not designed to be used in a custom code. I am sorry for any inconvenience caused. Let me know if you have any other questions or concerns and I will be glad to continue our discussion.

Have a great day!
Plamen

Esad
Top achievements
Rank 1
commented on 28 Jul 2021, 09:52 PM

Plamen,

Thanks for clarifying it and appreciate you to take time to answer my question.

Have a great rest of your day!
Esad
Tags
Coded Steps Scheduling Test Results
Asked by
Esad
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Share this question
or