随笔分类 -  SoapUI

上一页 1 2 3 4 5 下一页

摘要:import com.eviware.soapui.support.GroovyUtilsimport com.eviware.soapui.support.XmlHolderimport org.w3c.dom.Nodeimport org.apache.commons.lang.StringUt... 阅读全文

posted @ 2015-07-14 11:18 张缤分 阅读(409) 评论(0) 推荐(0)

摘要:import org.apache.poi.ss.util.*XSSFWorkbook workbook = new XSSFWorkbook()XSSFSheet sheet = workbook.createSheet(sheetName)sheet.setAutoFilter(CellRang... 阅读全文

posted @ 2015-07-14 09:38 张缤分 阅读(447) 评论(0) 推荐(0)

摘要:import static java.lang.Math.* import java.text.NumberFormatimport java.awt.Colorimport com.eviware.soapui.support.GroovyUtilsimport com.eviware.soap... 阅读全文

posted @ 2015-07-10 18:10 张缤分 阅读(434) 评论(0) 推荐(0)

摘要:1. 获取TP和Live的xml response2. 以其中一个数据点 ticker 为基准进行比较,ticker相同才进行比对3. 从外部文件读取各个数据点允许的偏差值,偏差范围以内的不同认为是正常4. API中的数据点提供的是Data ID, 而用户希望错误日志以UI上的Data Name进行... 阅读全文

posted @ 2015-07-10 14:48 张缤分 阅读(315) 评论(0) 推荐(0)

摘要:把 def holder = groovyUtils.getXmlHolder("Get Token#Response") 改为def holder = groovyUtils.getXmlHolder( "Get Token#ResponseAsXml" ),即加了AsXml就可以了 阅读全文

posted @ 2015-07-07 18:13 张缤分 阅读(642) 评论(0) 推荐(0)

摘要:如果文件已经存在,先删除,然后向文件中追加失败信息if(maxRecordFail>0){ def testResultFile = new File(projectDir+"\\TestResult\\PA_Integration Testing\\"+ currentStepName+".... 阅读全文

posted @ 2015-07-07 10:41 张缤分 阅读(910) 评论(0) 推荐(0)

摘要:context.expand 和 groovyUtils.getXmlHolder 有什么不一样?互相之间怎么转换import com.eviware.soapui.support.GroovyUtilsdef groovyUtils = new GroovyUtils( context )def ... 阅读全文

posted @ 2015-07-07 10:22 张缤分 阅读(1105) 评论(0) 推荐(0)

摘要:import com.eviware.soapui.support.GroovyUtilsdef groovyUtils = new GroovyUtils( context )def projectDir = groovyUtils.projectPathString xmlMapping = p... 阅读全文

posted @ 2015-07-07 09:34 张缤分 阅读(412) 评论(0) 推荐(0)

摘要:import com.eviware.soapui.support.types.StringToStringMap //Get all th cookies in the response , here the test step name is provideddef cookiesList = ... 阅读全文

posted @ 2015-07-06 09:48 张缤分 阅读(933) 评论(0) 推荐(0)

摘要:import org.custommonkey.xmlunit.*def responseTP=context.expand( '${Intraday Table_TP#Response}' )def responseLive=context.expand( '${Intraday Table_Li... 阅读全文

posted @ 2015-07-01 15:23 张缤分 阅读(289) 评论(0) 推荐(0)

摘要:testRunner.testCase.testSuite.project.setActiveEnvironment("Live") 阅读全文

posted @ 2015-07-01 11:38 张缤分 阅读(297) 评论(0) 推荐(0)

摘要:有一个网站 :http://jsonviewer.stack.hu/将Response的文本贴进去,如果是标准的JSON格式,就可以以JSON的view显示出来 阅读全文

posted @ 2015-06-26 17:28 张缤分 阅读(386) 评论(0) 推荐(0)

摘要:通过SoapUI发送POST请求,请求的body是JSON格式的数据:data={"currentDate":"2015-06-19","reset":true}而且通过Fiddler抓取页面报文Content-Type是application/x-www-form-urlencoded一开始我将C... 阅读全文

posted @ 2015-06-26 16:17 张缤分 阅读(15482) 评论(0) 推荐(0)

摘要:import com.eviware.soapui.support.types.StringToStringMap //Get cookie's value from the project level propertiesString cookie = context.expand( '${#Pr... 阅读全文

posted @ 2015-06-26 12:31 张缤分 阅读(1074) 评论(0) 推荐(0)

摘要:获取当前测试用例下所有Groovy Script类型的测试步骤def testStepList = testRunner.testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestSt... 阅读全文

posted @ 2015-06-26 12:19 张缤分 阅读(449) 评论(0) 推荐(0)

摘要:To continue tests executing after failed test step you need disable "Abort on error" option in TestCase options.To control test execution flow you can... 阅读全文

posted @ 2015-06-24 17:45 张缤分 阅读(355) 评论(0) 推荐(0)

摘要:http://tool.chinaz.com/Tools/URLEncode.aspx解码:编码: 阅读全文

posted @ 2015-06-24 14:58 张缤分 阅读(643) 评论(0) 推荐(0)

摘要:import com.eviware.soapui.support.GroovyUtils def groovyUtils = new GroovyUtils( context )def holder = groovyUtils.getXmlHolder( "Get Token#Response" ... 阅读全文

posted @ 2015-06-24 10:53 张缤分 阅读(1872) 评论(0) 推荐(0)

摘要:import com.eviware.soapui.support.GroovyUtilsimport com.eviware.soapui.support.XmlHolderimport org.w3c.dom.Nodeimport org.apache.commons.lang.StringUt... 阅读全文

posted @ 2015-06-24 10:01 张缤分 阅读(524) 评论(0) 推荐(0)

摘要:import com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport def myCookies = testRunner.testCase.testSuite.project.testSuites['Login'].getTestCa... 阅读全文

posted @ 2015-06-23 17:57 张缤分 阅读(498) 评论(0) 推荐(0)

上一页 1 2 3 4 5 下一页

导航