Soapui groovy 加载外部property文件

proFile = "c:\\test.properties"
log.info proFile
props = new java.util.Properties()
props.load( new FileInputStream(proFile) )

Iterator iter = props.keys().iterator();
while(iter.hasNext()){
	key = iter.next()
	testCase.setPropertyValue( key , props[key] )	
}

你可能感兴趣的:(property)