码迷,mamicode.com
首页 > 其他好文 > 详细

soapui-使用groovy脚本执行用例请求

时间:2017-07-04 20:14:14      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:wsdl   pre   highlight   parent   class   test   .com   case   .so   

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

 技术分享

结果:

技术分享

 

soapui-使用groovy脚本执行用例请求

标签:wsdl   pre   highlight   parent   class   test   .com   case   .so   

原文地址:http://www.cnblogs.com/sincoolvip/p/7117890.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!