摘要:如何在SoapUI中实现双重循环? 场景运用举例: 通过3个不同的账号登录,每个账号都分别创建2个Account 解决办法: 增加两对DataSource,DataSourceLoop,设置DataSourceLoop里面的两个参数(DataSource Step,Target Step)来控制它和
阅读全文
摘要://获取保存response的文件路径和名称 def testSuiteName = context.testCase.testSuite.name def testCaseName = context.testCase.name def fileName = context.expand( '${projectDir}' )+"/TestData/"+testSuiteName+"/"+ te...
阅读全文
摘要: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
阅读全文
摘要:自动保存 控制测试套件,测试用例,测试步骤的执行 控制测试数据的执行
阅读全文
摘要:SoapUI 支持引入多个package:Global Script library : 在SoapUI工具File->Preference中设置Project Script Library: 在项目的Project Properties中设置Script Library为${projectDir}
阅读全文
摘要:1. Property Expansion in soapUI SoapUI provides a common syntax to dynamically insert ("expand") property values during processing. The syntax is as f
阅读全文
摘要:https://www.tutorialspoint.com/groovy/index.htm
阅读全文
摘要:读取内容存为String 读取内容存为JSONObject
阅读全文
摘要:https://support.smartbear.com/readyapi/docs/index.html
阅读全文
摘要: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
阅读全文
摘要:出处:https://www.jianshu.com/p/ce6f8a1f66f4 一、一些内部元件的访问 testRunner.testCase开头 1、向下访问 testRunner.testCase.testSteps[testStepName] testRunner.testCase.get
阅读全文
摘要:package ScriptLibrary; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.skyscreamer.jsonassert.JSONCompareMode; import org.skyscreamer.jsonassert.JSON...
阅读全文
摘要:package ScriptLibrary import java.awt.Color import java.awt.GraphicsConfiguration.DefaultBufferCapabilities; import java.io.File; import java.io.FileOutputStream; import java.io.FileInputStream; imp...
阅读全文
摘要:def keysToRemoveForBoss = ["RequestIdBmk", "RequestIdTest"] def extraInfoMapForBoss = extraInfoMap.findAll({!keysToRemoveForBoss.contains(it.key)})
阅读全文
摘要://杀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} ...
阅读全文
摘要:def excelName = "AllTests-Fails" String projectPath = context.expand( '${projectDir}' ) String filePath = projectPath+ "/TestResult/" + excelName + ".xlsx" //删除已存在的错误报告 File testResultFile = new Fi...
阅读全文
摘要:https://www.soapui.org/apidocs/overview-summary.html
阅读全文
摘要:https://support.smartbear.com/readyapi/docs/testing/data-driven/types/groovy.html 从官网拷贝code到SoapUI里面,result那里一直报错,仔细看发现result的颜色不对,正常应该是黑色,显示却是紫色。 后来猜
阅读全文
摘要:def value = messageExchange.responseHeaders["#status#"] def httpResponseHeaders = context.testCase.testSteps["MarketsWidget"].testRequest.response.responseHeaders def httpStatus = httpResponseHe...
阅读全文