I've been able to create a test suite with multiple test cases programmatically via robot.api.TestSuite class. I've been able to successfully execute it and generate a report as well. What I'm missing is the option to generate the actual test cases file in .robot extension rather than "losing it" whenever my program stops. Is there some option to achieve this?
I've looked at the official (https://robot-framework.readthedocs.io/en/v3.1.1/index.html) but I didn't find a solution to my problem. Is there something I'm missing?