Hi everyone,
I’m trying to automatically send an email report after every Test Suite execution in Katalon Studio.
My requirement:
- After a Test Suite finishes (Pass or Fail), an email should be sent automatically.
- The email should be sent to specific recipients (company email addresses).
- I want to attach the generated HTML/PDF report to the email.
- This should happen without any manual intervention.
I have a few questions:
- What is the recommended way to implement this in Katalon Studio?
- Should I use a Test Listener (
@AfterTestSuite) or another approach? - Is there any built-in feature for email reporting, or do I need to use JavaMail/Jakarta Mail?
- If my company uses Microsoft 365 (Outlook) or Gmail with authentication, what is the best way to configure SMTP?
- Does anyone have a working example or GitHub repository that demonstrates this?
I’m looking for a reliable solution that works for local execution as well as CI/CD pipelines (Jenkins, GitHub Actions, etc.).
Any suggestions or sample code would be greatly appreciated.
Thank you!