Little Automated Tool for Downloading all tests as code

Here’s a little tool I made to download your tests as code in case you’d like to have them as a backup :eyes:

Should recursively go through all your folders in your current project and download each test.

Spent a few hours making this and it’s not perfect, but hopefully it can help!

GitHub - Ferny44/Test-Project

4 Likes

Hello Ferny,
Thanks for this utility. I tried to use the script but throws me error: “While’ is a reserved keyword”.
I have no experience with Robo Framework but looks like this is an issue related to package version mismatch.
Could you please let me know the exact version of robotframework and robotframework-selenium library packages you are using?

Sure. Here’s a pip freeze:
async-generator==1.10
attrs==21.4.0
certifi==2021.10.8
cffi==1.15.0
charset-normalizer==2.0.10
cryptography==36.0.1
defusedxml==0.7.1
et-xmlfile==1.1.0
Faker==11.3.0
gitdb==4.0.9
greenlet==1.1.2
h11==0.13.0
idna==3.3
importlib-metadata==4.10.1
keyring==23.5.0
MarkupSafe==2.0.1
oauthlib==3.1.1
outcome==1.1.0
pipdeptree==2.2.1
pycparser==2.21
pymssql==2.2.5
PyMySQL==1.0.2
pyOpenSSL==21.0.0
python-dateutil==2.8.2
pywin32-ctypes==0.2.0
PyYAML==6.0
requests==2.27.1
requests-oauthlib==1.3.0
requests-toolbelt==0.9.1
robotframework==5.0.1
robotframework-faker==5.0.0
robotframework-pythonlibcore==3.0.0
robotframework-seleniumlibrary==6.0.0
robotframework-xvfb==1.2.2
selenium==4.1.0
shared-repo==0.1.1624368600
six==1.16.0
smmap==5.0.0
sniffio==1.2.0
sortedcontainers==2.4.0
SQLAlchemy==1.4.31
text-unidecode==1.3
trio==0.19.0
trio-websocket==0.9.2
urllib3==1.26.8
webcolors==1.11.1
wrapt==1.13.3
wsproto==1.0.0
xvfbwrapper==0.2.9
zipp==3.7.0

The best way we found out is include all test cases in one Test and then just download the main one, it downloads all the tests.