soapui-使用groovy脚本执行用例请求
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext
CURRENT_TESTCASE = testRunner.testCase
TEST_SUITE = CURRENT_TESTCASE.parent
def testStep = TEST_SUITE.getTestCaseByName('TestCase').getTestStepByName('Login')
def testStepContext = new WsdlTestRunContext(testStep)
def result = testStep.run(testRunner, testStepContext)
log.info result.responseContent

结果:

如果您认为阅读这篇博客让您有些收获,不妨点击一下右下角的【推荐】
本文版权归作者和博客园共有,欢迎转载

浙公网安备 33010602011771号