Forum Discussion
TBQA1
11 years agoNew Contributor
I have also tried using the disable suite but the properties overide gets done AFTER the Project Load script gets run, so the values that are passed from the command line overides are not available to the Load Script. Any ideas on how to either to the same thing later (like a control Test Suite with just a groovy script step) or to load the property overrides earlier?
Here is my code:
def TSuiteTrimTrigger=context.expand('${#Project#TSuiteTrimTrigger}')
if (TSuiteTrimTrigger=="thiswillwork") {
for( testSuite in project.testSuiteList ) {
testSuite.disabled = (
testSuite.name != "TestSuite1" &&
testSuite.name != "TestSuite1"
)
}
}