hutabarat2014
10 years agoContributor
Transfer a Property at Test Suite Level to All Test Cases
Hi All,
In a different post, I got the following code for transferring a property at Project level to ALL TEST CASES:
The question is that I got a property at one Test Suite that I would like to transfer to ALL TEST CASES.
What would be the right groovy script for this issue?
Many thanks,
Leo
In a different post, I got the following code for transferring a property at Project level to ALL TEST CASES:
for (projectProperty in project.getPropertyList()){
if (projectProperty.getName().contains("c_")){
for (testSuite in project.getTestSuiteList()){
for (testCase in testSuite.getTestCaseList()){
testCase.setPropertyValue(projectProperty.getName(), projectProperty.getValue())
}
}
}
}
The question is that I got a property at one Test Suite that I would like to transfer to ALL TEST CASES.
What would be the right groovy script for this issue?
Many thanks,
Leo