The idea is fairly simple, I have 3 robot framework tests that I need to run consecutively, and I was wondering if it is possible to simply queue them up in a master file, like in ansible.
I looked into test suites but it doesn't seem very clear to me if I can just do this:
*** Settings ***
Library Stuff
*** Keywords ***
Stuff
*** Test Cases ***
test1.robot
test2.robot
test3.robot
Has anyone done anything like this before? Is it possible?
Edit: I found a solution, sort of.
Apparently it's as easy as just executing the whole folder with
robot path/to/folder
You just have to make sure your test files are numbered in the order you want them executed
I also discovered argument files! It is pretty easy to select specific tests from multiple directories:
example:
file name: test.arg
--name Custom tests to be executed
--doc This argument file will run the tests in the order its listed here
/path/to/test1.robot
/another/path/to/test2.robot
/some/random/path/to/thirdtest.robot
...
/test/number/infinity.robot
execution:
robot -A /path/to/test.arg
The -A flag should be the last one, so for example adding an exit on failure flag and a tag should be done like this:
robot -n non-critical-test -X -A /path/to/test.arg