Is it possible to run Python modules (.py files, NOT methods) listed in a testNG-like python or configuration file(or any other way) to run in a specific/specified order?
I know that each test case should be fully standalone, but I need to run
- Signup (which will retrieve DB key for finalizing the signup process) - a separate .py file, needs to run first
- Turn on some custom fields - a separate .py file (preferably several .py files if possible so that one file is not too big), needs to run second
- Then run all other test cases without any order - a lot of .py files, each file is a test case
This ordering is crucial, otherwise everything fails
This can be done with Java and testNG.xml using preserve-order="true"
, but I can't find any solution for Python, especially looked into Proboscis
Any help is appreciated