随笔分类 -  SoapUI

1 2 3 4 5 下一页

如何在SoapUI中实现双重循环?
摘要:如何在SoapUI中实现双重循环? 场景运用举例: 通过3个不同的账号登录,每个账号都分别创建2个Account 解决办法: 增加两对DataSource,DataSourceLoop,设置DataSourceLoop里面的两个参数(DataSource Step,Target Step)来控制它和 阅读全文

posted @ 2020-01-03 11:37 张缤分 阅读(316) 评论(0) 推荐(0) 编辑

[SoapUI] 在SoapUI中,设置开关批量保存整个Response,作为期望结果进行校验
摘要://获取保存response的文件路径和名称 def testSuiteName = context.testCase.testSuite.name def testCaseName = context.testCase.name def fileName = context.expand( '${projectDir}' )+"/TestData/"+testSuiteName+"/"+ te... 阅读全文

posted @ 2019-03-19 13:26 张缤分 阅读(260) 评论(0) 推荐(0) 编辑

[SoapUI] 检查测试步骤的类型或者或者某种特定类型的步骤列表
摘要:SoapUI Groovy : Check if test step is of specific type, such as : Wsdl, Rest, Jdbc, HTTP, Groovy etc SoapUI Groovy: Get all test steps of specific typ 阅读全文

posted @ 2019-03-19 13:20 张缤分 阅读(161) 评论(0) 推荐(0) 编辑

[SoapUI] 从测试套件,测试用例,测试步骤,测试数据各个级别控制是否执行
摘要:自动保存 控制测试套件,测试用例,测试步骤的执行 控制测试数据的执行 阅读全文

posted @ 2019-03-19 13:16 张缤分 阅读(236) 评论(0) 推荐(0) 编辑

[SoapUI] 如何同时调用Global Script Library(放在SoapUI安装目录)和项目特有的Script Libary(放在项目代码下)
摘要:SoapUI 支持引入多个package:Global Script library : 在SoapUI工具File->Preference中设置Project Script Library: 在项目的Project Properties中设置Script Library为${projectDir} 阅读全文

posted @ 2019-03-19 13:13 张缤分 阅读(295) 评论(0) 推荐(0) 编辑

[SoapUI] Property Expansion in soapUI
摘要:1. Property Expansion in soapUI SoapUI provides a common syntax to dynamically insert ("expand") property values during processing. The syntax is as f 阅读全文

posted @ 2019-03-15 17:25 张缤分 阅读(242) 评论(0) 推荐(0) 编辑

[Groovy] Groovy Tutorial
摘要:https://www.tutorialspoint.com/groovy/index.htm 阅读全文

posted @ 2019-02-28 14:31 张缤分 阅读(180) 评论(0) 推荐(0) 编辑

从文本文件中读取内容
摘要:读取内容存为String 读取内容存为JSONObject 阅读全文

posted @ 2019-02-27 11:21 张缤分 阅读(164) 评论(0) 推荐(0) 编辑

[SoapUI] 官方文档
摘要:https://support.smartbear.com/readyapi/docs/index.html 阅读全文

posted @ 2019-02-26 18:30 张缤分 阅读(157) 评论(0) 推荐(0) 编辑

Common tasks that you can perform with the Groovy Script test step
摘要:To obtain the object which refers to the containing test case, use the following code snippet: Groovy def case = testRunner.testCase; By using the tes 阅读全文

posted @ 2019-02-26 18:27 张缤分 阅读(363) 评论(0) 推荐(0) 编辑

soapui groovy脚本汇总
摘要:出处:https://www.jianshu.com/p/ce6f8a1f66f4 一、一些内部元件的访问 testRunner.testCase开头 1、向下访问 testRunner.testCase.testSteps[testStepName] testRunner.testCase.get 阅读全文

posted @ 2019-02-26 14:27 张缤分 阅读(621) 评论(0) 推荐(0) 编辑

[SoapUI] 通过JSONAssert比较两个环境的JSON Response,定制化错误信息到Excel
摘要:package ScriptLibrary; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.skyscreamer.jsonassert.JSONCompareMode; import org.skyscreamer.jsonassert.JSON... 阅读全文

posted @ 2018-10-17 15:43 张缤分 阅读(1598) 评论(0) 推荐(0) 编辑

[Groovy] 创建Excel,追加Excel
摘要:package ScriptLibrary import java.awt.Color import java.awt.GraphicsConfiguration.DefaultBufferCapabilities; import java.io.File; import java.io.FileOutputStream; import java.io.FileInputStream; imp... 阅读全文

posted @ 2018-10-17 15:42 张缤分 阅读(1186) 评论(0) 推荐(0) 编辑

[SoapUI] 从Map里面不想要的键值对
摘要:def keysToRemoveForBoss = ["RequestIdBmk", "RequestIdTest"] def extraInfoMapForBoss = extraInfoMap.findAll({!keysToRemoveForBoss.contains(it.key)}) 阅读全文

posted @ 2018-10-17 15:41 张缤分 阅读(233) 评论(0) 推荐(0) 编辑

[SoapUI] 在SoapUI中通过Groovy脚本执行window命令杀掉进程
摘要://杀Excel进程 String line def p = "taskkill /F /IM EXCEL.exe".execute() def bri = new BufferedReader (new InputStreamReader(p.getInputStream())) while ((line = bri.readLine()) != null) {log.info line} ... 阅读全文

posted @ 2018-10-17 10:32 张缤分 阅读(173) 评论(0) 推荐(0) 编辑

[SoapUI] 判断工程下某个文件是否存在,存在就删除
摘要:def excelName = "AllTests-Fails" String projectPath = context.expand( '${projectDir}' ) String filePath = projectPath+ "/TestResult/" + excelName + ".xlsx" //删除已存在的错误报告 File testResultFile = new Fi... 阅读全文

posted @ 2018-10-17 10:31 张缤分 阅读(192) 评论(0) 推荐(0) 编辑

[SoapUI] SoapUI接口文档官方网址
摘要:https://www.soapui.org/apidocs/overview-summary.html 阅读全文

posted @ 2018-02-07 09:30 张缤分 阅读(239) 评论(0) 推荐(0) 编辑

[SoapUI] 从上一个测试步骤获取ID list,通过Groovy脚本动态生成 Data Source 供后面的步骤使用
摘要:https://support.smartbear.com/readyapi/docs/testing/data-driven/types/groovy.html 从官网拷贝code到SoapUI里面,result那里一直报错,仔细看发现result的颜色不对,正常应该是黑色,显示却是紫色。 后来猜 阅读全文

posted @ 2018-01-26 15:55 张缤分 阅读(315) 评论(0) 推荐(0) 编辑

【SoapUI】比较Json response
摘要:SoapUI 里面进行调用: 阅读全文

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

[SoapUI] Groovy获取HTTP Status
摘要:def value = messageExchange.responseHeaders["#status#"] def httpResponseHeaders = context.testCase.testSteps["MarketsWidget"].testRequest.response.responseHeaders def httpStatus = httpResponseHe... 阅读全文

posted @ 2017-10-17 16:40 张缤分 阅读(392) 评论(0) 推荐(0) 编辑

1 2 3 4 5 下一页

导航

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