[SoapUI] 按照 Test Step Type 获取所有满足条件的 Test Step

获取当前测试用例下所有Groovy Script类型的测试步骤

def testStepList = testRunner.testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.class)

更多Test Step的Type可以参考SoapUI的API:

http://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/teststeps/package-summary.html

Test Step Type有一下几种:

HttpTestRequestStep

JdbcRequestTestStep

ManualTestStep

RestTestRequestStep

WsdlDelayTestStep

WsdlGotoTestStep

WsdlGroovyScriptTestStep

WsdlMockResponseTestStep

WsdlPropertiesTestStep

WsdlRunTestCaseTestStep

WsdlTestRequestStep

WsdlTestStep

原文地址:https://www.cnblogs.com/MasterMonkInTemple/p/4601992.html