Hi I have created some test cases in Robot framework and now I wat to run them in parallel. I know there is Pabot to run test suites in parallel but my requirement is to run them through Maven Surefire Plugin where we can set up the threads to be created.
As far as I know, the only tool that allows you to run in parallel something written in robot framework is pabot.
Things you should know:
- Pabot will split test execution from suite files and not from individual test level.
- The order of tests execution in each suite file is sequential and you can't randomize
The only way to parallelize each test is to use one test per suite file and then use Pabot. But this is bad practice because you will have to cut the suite setup and there will be some code duplication. Maybe there is a possibility to use init file to define folder level setup, but this is also bad practice because you'll cut the autocompletion if you define resources in init file.
So if you don't like Pabot you have to create your own test runner which in my mind is a huge task to do.
It must be possible. Here is a sample config for parllel execution using maven sure fire plugin:
Head over to link for more details.