Forum Discussion
Thank you for posting to our Community Forum.
I am also interested in hearing how other users manage composite projects with multiple properties like bwennekes described.
I suggest you post your ideas to improve the composite projects to our Feature Request forum so that users can vote on whether they agree that this would be a useful feature:
I have a possible solution that may mitigate some of the frustrations of the properties. You can check if it is worth using in your project.
Here is a script that I wrote which will set every Property value on the Project, TestSuite, and TestCase level to a blank string. You can put this inside a groovy script of a disabled testcase and run it manually prior to each save.
project = context.getTestCase().getTestSuite().getProject()
testSuiteList = project.testSuiteList
projectPropertyNames = project.getPropertyNames()
if (projectPropertyNames.length > 0){
for(propertyName in projectPropertyNames){
project.setPropertyValue(propertyName, "")
}
}
if(testSuiteList.size() > 0){
for(testSuite in testSuiteList){
testSuitePropertyNames = testSuite.getPropertyNames()
//Clear All properties in TestSuite
if (testSuitePropertyNames.length > 0){
for(propertyName in testSuitePropertyNames){
testSuite.setPropertyValue(propertyName, "")
}
}
testCaseList = testSuite.testCaseList
if(testCaseList.size() > 0){
for(testCase in testCaseList){
testCasePropertyNames = testCase.getPropertyNames()
//Clear all properties in TestCase
if(testCasePropertyNames.length >0){
for(propertyName in testCasePropertyNames){
testCase.setPropertyValue(propertyName, "")
}
}
}
}
}
}
Let me know if you have any questions/concerns.
Have a great day!
Related Content
- 5 years agoGAutomation
- 5 months agogdave