Ask a Question

Groovy Script to send email Automatically to client with report generated after project Run Complete

Shubham772
New Contributor

Groovy Script to send email Automatically to client with report generated after project Run Complete

Hi my client requirement is to run the Api test cases in CI CD pipeline and wants to send the mail after test run completion with report generated..i m new to readyapi...what i think is in project tear down script we may need to write script for it.. Can you guys help me with this...Can anyone provide me with this Script or help

1 REPLY 1
KarelHusa
Champion Level 3

@Shubham772,

you can use an event handler; the ProjectRunListener.afterRun listener might work for you. You can create a Groovy script, collect the test results and send them via email.

 

See https://support.smartbear.com/readyapi/docs/testing/handling-events.html for more information on using event handlers.

 

The downside is that such a solution will work only for Project level runners but not for a test suite or test case level. I have raised a feature request asking for a generic solution usable at any level.

 

Best regards,

Karel

 

Karel@apimate.eu
https://apimate.eu
cancel
Showing results for 
Search instead for 
Did you mean: