pythonautomated-testsrobotframeworkpython-poetry

Sort execution of "Test Suites" in the Robot Framework


I need to determine the order in which my Test Suites run. In a given process, I need Suite X to run before Suite Y. Structure:

enter image description here

I'm using the Robot Framework in conjunction with Poetry.

In all the research I have done, the suggested is to use Pabot, which is usually used for parallelism. It seems that it should be able to determine the order of execution of tests, but it didn't work. I would like an alternative solution to the use of this library.


Solution

  • One long time known trick (this feature) is to rename the test suites with a numeric prefix followed by two underscores. There is a feature in RIDE that hides these prefixes, and they are also not printed in the Log and Report (at Test Suite Directory level).

    In your case you could have:

    tests
         --> 01__Collection Suites A
            --> 01__Suite X.robot
         --> 02__Collection Suites B
            --> 02__Suite Y.robot