2012-09-18 58 views

回答

1

這似乎爲我工作:

def datasink = testCase.testSteps["DataSink"] 

String[] props = new String[datasink.getPropertyCount()] 
props = datasink.getPropertyNames(); 



for (int i=0;i<props.size();i++) 
{ 
    datasink.setPropertyValue(props[i],"") 
} 
0

嘗試以下操作:

datasink = tcontext.testCase.getTestStepByName("DataSink"); 
datasink.clearPropertyValues();