Forum Discussion
Tylhadras
SmartBear Alumni (Retired)
Hello linkeshkanna.
Let's say you have a List of Test Steps you can then:
import com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep import com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceLoopTestStep for (testStep in listOfTestSteps) { if (testStep instanceof WsdlDataSourceTestStep) { def rowCount = testStep.rowCount log.info("This Test Step has : " + rowCount + " rows.") } else if (testStep instanceof WsdlDataSourceLoopTestStep) { def dataSource = yourTestCase.getTestStepByName(testStep.dataSourceStep) def rowCount = dataSource.rowCount log.info("This Test Step has : " + rowCount + " rows.") } }
This example shows you how to get the rowcount from Data Source Test Steps. But you'll definetely want to tweak it to fit what you are doing. Good luck!
Regards
Gustav Lundström
linkeshkanna
10 years agoOccasional Contributor
Hello Tylhadras,
Thanks for your reply. I will give this a try and let you know the outcome.
Thanks,
linkeshkanna
Related Content
- 8 years ago
- 12 years ago
- 11 years ago
Recent Discussions
- 5 days ago
- 10 days ago