I have 5 test suites which are independent of each other. I have to run it against the same environment. Most of my test suites consist of API calls. The test cases inside the suites should run in sequence as they are dependent on each other.
Is there any way we can run all the test suites in parallel via the pybot command?
Robot does not have the ability to run test cases in parallel. You'll have to use an external tool such as pabot, or write your own code to split the tests into parallel test runs.
Parallel Testing using TestNG and SeleniumThe parallel attribute can be extended for multiple values, as below: Methods: Helps run methods in separate threads. Tests: Help to run all methods belonging to the same tag in the same thread. Classes: Helps to run all methods belonging to a class in a single thread.
There is no native handling of parallel executions of tests in Robot Framework. There is Pabot, a parallel executor for RF. Pabot allows test suite distribution and makes a combined report and log.
We also at Workshare had our take on the matter (at the time we did not know about Mikko work) and we recently open sourced it. It's now production level, as we use it to launch in parallel our tests on our CI (jenkins). It can produce a complete final report, it can rerun failed tests, it has a global setup/teardown mechanism, it generates xunit compatibles result files, and it also works on Windows :) (altough Linux is a better option!)
You find it at: https://github.com/workshare/parallel_pybot
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With