Forum Discussion
Liberty_Informa
10 years agoRegular Contributor
Hi Leo
Try following script which works awesome. It helps me bringing back soapUI projects to the original state. Before this script developers complained that soapUI showing us files to check-in which we haven't changed. It happens because when you run soapUI project settings.xml and testcases file are updated with the current test data and they are shown as pending changes to check-in into the version control tool. The script helps me avoiding that situation.
It doesn't wipe out properties altogether. It just wipes out values.
soapUI guys provided me this script so big thanks should go to them.
Try following script which works awesome. It helps me bringing back soapUI projects to the original state. Before this script developers complained that soapUI showing us files to check-in which we haven't changed. It happens because when you run soapUI project settings.xml and testcases file are updated with the current test data and they are shown as pending changes to check-in into the version control tool. The script helps me avoiding that situation.
It doesn't wipe out properties altogether. It just wipes out values.
for( t in project.testSuiteList )
{
for( c in t.testCaseList )
{
clearProperties( c )
clearProperties( t )
}
}
void clearProperties( modelItem )
{
for( n in modelItem.propertyNames )
modelItem.setPropertyValue( n, '' )
}
soapUI guys provided me this script so big thanks should go to them.