Forum Discussion
Tylhadras
10 years agoSmartBear 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
- linkeshkanna10 years agoOccasional Contributor
Hello Tylhadras,
Thanks for your reply. I will give this a try and let you know the outcome.
Thanks,
linkeshkanna
- linkeshkanna10 years agoOccasional Contributor
Hi,
Most of my DataSource use external files like Excel, text and JSON files.
Is it possible to get the row count/test count from these external files from SoapUI?
Thanks,
Linkesh
Related Content
- 8 years ago
- 10 years ago
- 9 years ago
Recent Discussions
- 5 days ago
- 10 days ago