Forum Discussion
SmartBear_Suppo
Alumni
14 years agoHi,
sure - so if you want to reset all project, testSuite and testCase properties you could do
for( t in project.testSuiteList )
{
for( c in t.testCaseList )
clearProperties( c )
clearProperties( t )
}
clearProperties( project )
void clearProperties( modelItem )
{
for( n in modelItem.propertyNames )
modelItem.setPropertyValue( n, "" )
}
Hope this helps!
/Ole
SmartBear Software
sure - so if you want to reset all project, testSuite and testCase properties you could do
for( t in project.testSuiteList )
{
for( c in t.testCaseList )
clearProperties( c )
clearProperties( t )
}
clearProperties( project )
void clearProperties( modelItem )
{
for( n in modelItem.propertyNames )
modelItem.setPropertyValue( n, "" )
}
Hope this helps!
/Ole
SmartBear Software