Forum Discussion
aaronpliu
7 years agoFrequent Contributor
you want to get property name, but I did not understand what property you fetch from below code snippet
for (row in 1..DSrowcount)
{
attributename = ds.getPropertyValue('attributeName')
WS_AttributeNameList.add(attributename )
}
Maybe you needs to fetch all properties of data source and then loop to get all property name and add them into an array if needs.
//step 1 - declare object of test step
def teststep = testRunner.testCase.getTestStepByName("StepName")
//step 2 - fetch speficied steps' properties
def properties = teststep.getProperties()
//step 3 - loop
def alist = []
for(key in properties.keySet()){
alist << key
}
log.info alist
Related Content
- 3 years ago
- 5 years ago
Recent Discussions
- 4 hours ago
- 26 days ago