This groovy script will distribute a set of testcases to a set of slaves under a certain label.
https://github.com/elogs/jenkins/blob/master/groovy/testcaseSlaveDistributor.groovy
Prerequisites:
The slaves are part of a label
The Jenkins job which executes the test cases should have the following capabilities:
It has "test case list" as a parameter. Therefore this job should be...