-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add possibility to save dynamically created test suite into a robot file #3323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Being able to save executable test suite objects to disk would be handy, but saving them into
An alternative would be creating a new format that would allow saving the whole directory structure into a single file. That would allow pretty interesting possibilities to create tests in different formats, but designing such a format would also be a pretty big task. |
Hi I would like to create .robot file from robot.api or save py file in the current directory , In which variable can I capture the code generated by the testsuite and testcase Regards |
Hi @pekkaklarck, this feature has been implemented? |
No concrete plans for implementing this. It's more likely that we add support for saving executable suites into JSON. For more details see #3902. |
Below is an example of the feature.
suite = robot.api.TestSuite('Example')
test = suite.tests.create('T1', tags=['example'])
test.keywords('Log', ['message'])
suite.save('tests.robot')
The text was updated successfully, but these errors were encountered: