Search code examples
pycharmrobotframework

How can I run my files under a pycharm file in order?


I have a file and below that file my files are sorted alphabetically. When I run this file, pycharm runs the following files mixed. I want these files to run in alphabetical order. How will I do this?


Solution

  • You can add prefixes like 01 and 02 into file and directory names. Such prefixes are not included in the generated test suite name if they are separated from the base name of the suite with two underscores:

    01__my_suite.robot -> My Suite
    02__another_suite.robot -> Another Suite
    

    Check Robot Framework's documentation for this here: Robot Framework execution order

    Also this post might be useful: how to run test suites in a certain order