随笔分类 -  SoapUI

上一页 1 2 3 4 5 下一页

[SoapUI] 设置HTTP Request的Header
摘要:import com.eviware.soapui.support.types.StringToStringMap def hearderMap = new StringToStringMap() def apiKey = '${#Project#ApiKey}' def productId='${#Project#X-API-ProductId}' def requestId='${#Pr... 阅读全文

posted @ 2017-05-24 09:50 张缤分 阅读(6048) 评论(0) 推荐(0) 编辑

[SoapUI] 在Jenkins上传递project级别的参数给case
摘要: 阅读全文

posted @ 2017-05-10 12:42 张缤分 阅读(280) 评论(0) 推荐(0) 编辑

[SoapUI] Datasink怎么显示每次循环的结果
摘要:https://www.soapui.org/reporting/the-report-datasink.html 阅读全文

posted @ 2017-05-10 10:35 张缤分 阅读(216) 评论(0) 推荐(0) 编辑

[SoapUI] 设置最大等待时间,不断重复的去发送一个request,每次从response中获取一个status,直到这个status从一种状态变成另外一种状态
摘要:import com.eviware.soapui.support.GroovyUtils def groovyUtils = new GroovyUtils( context ) def holder = groovyUtils.getXmlHolder( "checkProgressOfRunExport#ResponseAsXml" ) //Check whether the data... 阅读全文

posted @ 2017-04-07 10:19 张缤分 阅读(700) 评论(0) 推荐(0) 编辑

[SoapUI] 获取当前时间包括年月日时分秒来作为命名
摘要:import java.text.SimpleDateFormat GregorianCalendar calendar = new GregorianCalendar() def dateFormat = new SimpleDateFormat("yyyyMMddhhmmss") def currentTime = dateFormat.format(calendar.getTime()... 阅读全文

posted @ 2017-04-06 10:13 张缤分 阅读(665) 评论(0) 推荐(0) 编辑

[SoapUI] 通过正则表达式从xml格式的response中提取ID
摘要:import com.eviware.soapui.support.GroovyUtils import java.util.regex.* //Get response def groovyUtils = new GroovyUtils( context ) def holder = groovyUtils.getXmlHolder( "addSecurity#ResponseAsX... 阅读全文

posted @ 2017-04-05 15:26 张缤分 阅读(1618) 评论(0) 推荐(0) 编辑

[SoapUI] Tips and Tricks(提示和技巧)
摘要:https://www.soapui.org/scripting-properties/tips-tricks.html 阅读全文

posted @ 2017-03-15 15:12 张缤分 阅读(143) 评论(0) 推荐(0) 编辑

[SoapUI]获取Project,Test Suite,Test Case各个级别参数的值
摘要:String testResultPath = testRunner.testCase.testSuite.project.getPropertyValue( "testResultPath" ) def clientName = testRunner.testCase.testSuite.getP 阅读全文

posted @ 2017-03-10 14:57 张缤分 阅读(491) 评论(0) 推荐(0) 编辑

[SoapUI] 如何让gzip和chunked的response显示出来 [设置Accept-Encoding为deflate]
摘要:如果response的Content-Encoding是gzip或者Transfer-Encoding是chunked,在SoapUI里面是无法显示出来的。 解决办法:在Request的Header里面设置Accept-Encoding为deflate 阅读全文

posted @ 2017-03-09 14:52 张缤分 阅读(1343) 评论(0) 推荐(0) 编辑

[SoapUI] EndPoint不需要在配置文件中设置不同环境的值,SoapUI自带此参数的设置
摘要:在Environments里面设置就好了 阅读全文

posted @ 2017-03-06 14:37 张缤分 阅读(747) 评论(0) 推荐(0) 编辑

[SoapUI] Mock Service
摘要:https://www.soapui.org/getting-started/mock-services.html 阅读全文

posted @ 2016-04-29 13:52 张缤分 阅读(224) 评论(0) 推荐(0) 编辑

[SoapUI] 通过Groovy脚本获取project所在的路径或者直接用${projectDir}
摘要:import com.eviware.soapui.support.GroovyUtilsdef groovyUtils = new GroovyUtils( context )def projectDir = groovyUtils.getProjectPath()log.info "The pr... 阅读全文

posted @ 2015-12-17 15:34 张缤分 阅读(1990) 评论(0) 推荐(0) 编辑

[SoapUI] 通过Groovy Script获取当前运行的是哪套Environment
摘要:log.info testRunner.testCase.testSuite.project.getActiveEnvironment().getName() 阅读全文

posted @ 2015-12-03 09:06 张缤分 阅读(242) 评论(0) 推荐(0) 编辑

[Jenkins] Jenkins 执行 Composite 模式的 SoapUI Project
摘要:cd %WORKSPACE%cmd /c call "D:\Program Files\SmartBear\ReadyAPI-1.3.1\bin\testrunner.bat" -a -j -sLogin -PprojectPath="%WORKSPACE%" -f"%WORKSPACE%\resu... 阅读全文

posted @ 2015-09-11 16:34 张缤分 阅读(254) 评论(0) 推荐(0) 编辑

[SoapUI] JsonPath 语法 与 XPath 对比
摘要:JSONPath expressions can use the dot–notation $.store.book[0].title or the bracket–notation $['store']['book'][0]['title'] The following XPath express 阅读全文

posted @ 2015-08-31 13:44 张缤分 阅读(2891) 评论(0) 推荐(0) 编辑

[Jenkins] 执行SoapUI的task,设置邮件内容为HTML+CSS
摘要:设置邮件内容:Default ContentProject : PA_Regression_Accuracy_Static Build Status : ${BUILD_STATUS} Automation Tool : SoapUI TP vs Live Test Results : TP ... 阅读全文

posted @ 2015-07-28 10:54 张缤分 阅读(563) 评论(0) 推荐(0) 编辑

[SoapUI] SOAP UI-Groovy Useful Commands
摘要:Hi All,I have posted the SOAPUI and Groovy useful commands that may help you in your testing. Below are the commands collected from various websites a... 阅读全文

posted @ 2015-07-27 13:46 张缤分 阅读(2227) 评论(1) 推荐(0) 编辑

[SoapUI] SoapUI命令行方式运行
摘要:https://www.soapui.org/test-automation/running-from-command-line/functional-tests.html TestRunner Command-Line Arguments To run functional tests from 阅读全文

posted @ 2015-07-23 15:52 张缤分 阅读(1063) 评论(0) 推荐(0) 编辑

[SoapUI] 在Test Step 下加Script Assertion,用 messageExchange 获取当前步骤的response content
摘要://Get response content of the current requestdef response = messageExchange.getResponseContent()//Check dataassert response.contains("uaL5ist"), "FAIL... 阅读全文

posted @ 2015-07-17 17:21 张缤分 阅读(870) 评论(0) 推荐(0) 编辑

[SoapUI] 通过Groovy调用批处理文件.bat
摘要:import com.eviware.soapui.support.GroovyUtilsdef groovyUtils = new GroovyUtils( context )def projectDir = groovyUtils.projectPathdef proc = [ 'cmd', '... 阅读全文

posted @ 2015-07-16 14:30 张缤分 阅读(1000) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 下一页

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示