Get solution for Email reporting Via katalon studio test execution to Outlook mail

Problem
I have seen lots of unresolved threads regarding the Email reporting, and even Katalon maintains the old-dated document about imap and pop methods in their online document, which no longer works.
Microsoft is no longer supporting the legacy solutions.

Below is the katalon document link ( Team needs to update this document)
Share test reports via email in Katalon Studio | Katalon Docs

Note→ Microsoft and Google are not supporting the imap and pop methods, Only Microsoft Graph API works.

Below are the list of unresolved threads regarding email reporting

  1. Not able to get execution information through email

  2. Unable to send email through Katalon studio

  3. Email reporting

  4. Katalon can send test email, but cannot send the real email. It show an error “System is unable to email report. Reason: Building the MimeMessage failed”. What should I do now?

    There may be many more threads

Solutions is below:-

The solutions to trigger email reporting to the outlook mailbox is using Microsoft Graph API, where one needs to register the application into Azure and get credentials like client ID, tenant ID, client secret and more, then use these credentials to generate token and develop the connection between the Katalon server and Outlook server.

I wrote code for this last year, and it is working properly. For the viewers understanding I have created a high-level video overview, highlighting how one can use Katalon to trigger mail of the test report.

I have not shown here the code due to security issue, but if there will demand in the Katalon community, then I can post the masked / generic version of code (which will be helpful to others)


Similarly, we can fetch out access code from outlook, delete mail from outlook Via Graph API

2 Likes

Awesome, thank you for sharing such effort. Next time, with any similar sharing, feel free to post it in category Tips & tricks so we can widely recognize your contribution. Happy testing

2 Likes

Thanks for sharing this , Arvind

1 Like

Thank you for the sharing. better to share working code with examples post masking secrets

1 Like

Example is present in the video, I have shown how email reporting works, once the test execution completes, the mail gets triggered to the desired mail box.
Yes, I can share masked code or the generic code.

Okay I will share even this post in the Tips & tricks category with the masked code

perfect sharing @arvind.choudhary :clinking_beer_mugs:

1 Like