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
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.