首页 > 技术文章 > [SoapUI] 按照 Test Step Type 获取所有满足条件的 Test Step

MasterMonkInTemple 2015-06-26 12:19 原文

获取当前测试用例下所有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

推荐阅读