I'm using the Robot Framework Maven plugin to execute my Robot Framework scripts. I'm using this plugin because some of my keywords are implemented in Java and packaged inside an external library.

I want to be able to run those scripts in parallel through Maven/Jenkins/Selenium Hub.

I think that the RF plugin Maven "out of the box" does not offer this possibility... unless I'm mistaken.

I also looked at the possibility of using Pabot, but I could not achieve to call Pabot from Maven.

Does anyone have an idea to get to run the tests in parallel?

You are right that pabot is the way to do this unless you want to hack robot internals, you just have to find a way to have it run outside maven.

I would do this by configuring Jenkins to preserve the artifacts from the maven build and then trigger another job that runs pabot against those artifacts. Another benefit of this approach is that you can easily re-run the tests on the same build without re-triggering the build. If you create your pabot job as parameterized then you could have a selection of builds to test against.

Parallel testing is tricky and you need to be very careful to keep it realistic to your products use cases especially if your motivation here is reducing test run time.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.