随笔分类 -  SoapUI

1 2 3 4 5 下一页

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

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

摘要://获取保存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 张缤分 阅读(360) 评论(0) 推荐(0)

摘要: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 张缤分 阅读(172) 评论(0) 推荐(0)

摘要:自动保存 控制测试套件,测试用例,测试步骤的执行 控制测试数据的执行 阅读全文

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

摘要:SoapUI 支持引入多个package:Global Script library : 在SoapUI工具File->Preference中设置Project Script Library: 在项目的Project Properties中设置Script Library为${projectDir} 阅读全文

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

摘要: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 张缤分 阅读(256) 评论(0) 推荐(0)

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

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

摘要:读取内容存为String 读取内容存为JSONObject 阅读全文

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

摘要:https://support.smartbear.com/readyapi/docs/index.html 阅读全文

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

摘要: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 张缤分 阅读(380) 评论(0) 推荐(0)

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

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

摘要: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 张缤分 阅读(1617) 评论(0) 推荐(0)

摘要: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 张缤分 阅读(1210) 评论(0) 推荐(0)

摘要:def keysToRemoveForBoss = ["RequestIdBmk", "RequestIdTest"] def extraInfoMapForBoss = extraInfoMap.findAll({!keysToRemoveForBoss.contains(it.key)}) 阅读全文

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

摘要://杀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 张缤分 阅读(181) 评论(0) 推荐(0)

摘要: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 张缤分 阅读(203) 评论(0) 推荐(0)

摘要:https://www.soapui.org/apidocs/overview-summary.html 阅读全文

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

摘要:https://support.smartbear.com/readyapi/docs/testing/data-driven/types/groovy.html 从官网拷贝code到SoapUI里面,result那里一直报错,仔细看发现result的颜色不对,正常应该是黑色,显示却是紫色。 后来猜 阅读全文

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

摘要:SoapUI 里面进行调用: 阅读全文

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

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

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

1 2 3 4 5 下一页

导航