Forum Discussion
PaulDonny
12 years agoRegular Contributor
Well, there is multiple different possible solutions here.
I went ahead and coded a quick groovy script that will do it though
I went ahead and coded a quick groovy script that will do it though
//Set source Project as project running the groovy script
source = testRunner.testCase.testSuite.project;
//Grab all of the projects in the WorkSpace
testRunner.testCase.testSuite.project.workspace.getProjectList().each {
//No need to add the properties to where it gets them from, right?
if (it != source) {
//Just a debugging/Visual feedback thing.
log.info it.getName();
//Going through each individual property from the source
for (properties in source.getPropertyList()) {
//And setting it to the projects in the .each {} loop
it.setPropertyValue(properties.getName(),properties.getValue());
}
}
}