Forum Discussion
brigadir
13 years agoOccasional Contributor
Just adding this response as someone might need it in the future
To clear all project testsuite testcase properties step values I use following script. It will loop through all your project active testsuites looking for testcases that contain "Properties" step and if it finds one. It will clear its properties and enables on it "discard values on save" feature.
Add this to your project overview "Save Script" tab.
To clear all project testsuite testcase properties step values I use following script. It will loop through all your project active testsuites looking for testcases that contain "Properties" step and if it finds one. It will clear its properties and enables on it "discard values on save" feature.
def testSuites = project.getTestSuiteList();
for (testSuite in testSuites) {
if (!testSuite.isDisabled()) {
def testCases = testSuite.getTestCaseList();
for (testCase in testCases) {
def propertiesSteps = testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlPropertiesTestStep.class);
for (step in propertiesSteps) {
step.clearPropertyValues();
step.setDiscardValuesOnSave(true);
}
}
}
}
Add this to your project overview "Save Script" tab.