Forum Discussion
Akuratere
8 years agoNew Contributor
Hi Rao,
Sure, here's the script that erases values of properties in the test case:
stopp = propTestStep.getPropertyValue("Stop")
if (stopp == "T"){
def p = myTestCase.testSteps["Properties"]
String[] properties = new String[p.getPropertyCount()]
properties = p.getPropertyNames()
for (int i=0; i<properties.size();i++){
p.setPropertyValue(properties[i], "")
}
propTestStep.setPropertyValue("Count", "1")
propTestStep.setPropertyValue("keyValue", "1")
}
nmrao
Champion Level 1
8 years agoWhich line of the script causing the issue? Stack trace from error log, please?
Seems ok, can be optimized though.
Seems ok, can be optimized though.