Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to run robot framework test suites in parallel?

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?

like image 715
Deepti K Avatar asked Apr 04 '14 06:04

Deepti K


People also ask

Is parallel testing possible with robot framework?

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.

Can we do parallel testing in selenium?

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.


2 Answers

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.

like image 126
Laurent Bristiel Avatar answered Nov 15 '22 17:11

Laurent Bristiel


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

like image 36
Bruno Bossola Avatar answered Nov 15 '22 16:11

Bruno Bossola