Forum Discussion
kamahade
16 years agoRegular Contributor
I could able to get the properties of datasource step, I want to get it added to testcase level properties...how can I do it ?
Map hashMapDataSource = testRunner.testCase.testSteps["DataSource"].getProperties();
Set dataSourceSet = hashMapDataSource.keySet();
TreeSet dataSourceTreeSet = new TreeSet(dataSourceSet);
def itr = dataSourceTreeSet.iterator();
while (itr.hasNext()){
String tempUUIDKey = itr.next().toString();
TestProperty testProp = hashMapDataSource.get(tempUUIDKey);
log.info tempUUIDKey + "=" + testProp.getValue();
}