Forum Discussion
Lucian
Community Hero
Oh, you can count them like this:
// Get all interfaces in the project
def interfaces = testRunner.getTestCase().getTestSuite().getProject().getInterfaceList()
def restInterfacesCount = 0
interfaces.each {
if (it instanceof com.eviware.soapui.impl.rest.RestService) {
restInterfacesCount++
}
}
Olga_T
6 years agoSmartBear Alumni (Retired)
Hi all,
Lucian, thank you for having a look!
aaronpliu, if this suggestion works for you, do you mind accepting it as a solution? It would be easier to find it in the future.
Thanks in advance,
- aaronpliu6 years agoFrequent Contributor
Maybe I want to get number of endpoints that all of test suites contains, excluding duplicated (ie: some of test cases reference the same endpoint in test step). Not just count the number of endpoints under project.
Anyway, Thanks Lucian.
Many thanks
Regards,
/Aaron
Related Content
- 22 days agoSahall0308
- 5 years agoManijem