Skip to content

Split Robot Framework test suites into batches for parallel execution.

Notifications You must be signed in to change notification settings

jstaffans/robotbatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robot-batch

Splits Robot Framework test suites into batches for parallel execution.

Suites are split empirically according to their durations. Test suite durations are gathered from the robot_results.xml files of a previous test run.

Usage: robotbatch.py <number of batches> <output dir> <input xml file> ...
Where: 
   output dir     = parent directory of Robot test suites.
   input xml file = Robot result XML file. You can enter as many files as you want.

Suites are assigned to batches called Batch1, Batch2 and so on. The assignment happens through a Force Tags setting in the suite's __init__.txt file. The CI environment can then be set up with multiple jobs, each one executing the tests belonging to a certain batch in parallel.

Note that only top level suites are processed. If you have a test suite layout like this:

PersonTests
PersonTests/List
CalendarTests

Then there would be two suites that can be split into batches (PersonTests and CalendarTests). PersonTests/__init__.txt and CalendarTests/__init__.txt would be updated.

About

Split Robot Framework test suites into batches for parallel execution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages