Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With robotframework, is it possible to do something after the test was over?

I want to send the test report of Robot Framework by email for example to the leader. Recently, I made a send email library to use in robotframework's Suite Teardown, but soon, I found that the test report was generated after executing the Suite Teardown, so can not obtain the report. I wonder is there a way to do something like that in robotframework after the suite is over?

like image 571
Sendiago Avatar asked Dec 05 '25 15:12

Sendiago


1 Answers

Although @Jan is correct that using the close event of the listener will allow you to do this, the real question is if you should. In my mind this no longer has anything to do with Test Automation and more with orchestration. Functionality like this typically expands over time and then this will certainly be the wrong place to put it.

This is why I would recommend looking at Jenkins (or any other CI like TravisCI, Bamboo etc) which has this kind of emailing functionality out-of-the-box. It will be a better maintainable solution over time and more flexible for future functionality.

For Robot Framework there exists a specific plugin.

like image 122
A. Kootstra Avatar answered Dec 07 '25 05:12

A. Kootstra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!