木吟

导航

随笔分类 -  SoapUI

1

SoapUI--the use of Script Library
摘要:SoapUI--the use of Script Library 有两种方法在soapUI中引用自己的groovy脚本库。 方法一:把自己的script folder放到soapUI installation location ->scripts(step1 in screenshot1), 然后 阅读全文

posted @ 2019-03-18 16:33 木吟 阅读(195) 评论(0) 推荐(0)

正则表达式的学习网站
摘要:正则表达式的学习网站: https://regexone.com/ 阅读全文

posted @ 2019-03-18 14:13 木吟 阅读(274) 评论(0) 推荐(0)

Get teststep of specific type
摘要: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-15 13:06 木吟 阅读(174) 评论(0) 推荐(0)

SoapUI并发模式
摘要:soapUI支持test suite, test case级别的并发,合理使用这个功能,可以让自动化脚本短时间内跑完,为release省下时间。 1. 如何开启并发模式 图示,click project name, you will see the parallet icon on right, c 阅读全文

posted @ 2019-03-12 16:56 木吟 阅读(401) 评论(0) 推荐(1)

Error "java.lang.NoClassDefFoundError:org/openxmlformats/schemas/spreadsheetml/x2006/main/CTExtensionList" in SoapUI
摘要:After upgrade readyAPI 1.9 to the higher version, pop up error "java.lang.NoClassDefFoundError:org/openxmlformats/schemas/spreadsheetml/x2006/main/CTE 阅读全文

posted @ 2019-02-13 11:38 木吟 阅读(3476) 评论(0) 推荐(0)

获取当前TestStep发送的request信息
摘要:在当前test step的Script Assertion里添加 阅读全文

posted @ 2018-12-07 17:10 木吟 阅读(233) 评论(0) 推荐(0)

在当前TestSuite/TestCase run之前先run另一个TestSuite/TestCase
摘要:在当前的TestSuite/TestCase的Setup Script里面写上这段代码: 阅读全文

posted @ 2018-03-27 11:46 木吟 阅读(285) 评论(0) 推荐(0)

在eclipse中安装groovy插件
摘要:在eclipse中安装groovy插件详细步骤: step 1:检查自己的eclipse版本:在help->About Eclipse中查看: step 2:进入 https://github.com/groovy/groovy-eclipse/wiki查找和自己eclipse对应版本的groovy 阅读全文

posted @ 2018-01-05 16:27 木吟 阅读(7196) 评论(0) 推荐(2)

更改TestStep的request header和获取TestStep的response header
摘要:更改TestStep的request header for example 获取TestStep的response header 1. get the response header of the current test step 2. get the response header of whi 阅读全文

posted @ 2017-05-22 15:33 木吟 阅读(257) 评论(0) 推荐(0)

用Window Authentication的方式去连接SQLServer
摘要:用Window Authentication的方式去连接SQLServer Connection String: jdbc:sqlserver://${serverName};databaseName=${tableName};IntegratedSecurity=true 还需要把sqljdbc_ 阅读全文

posted @ 2016-09-27 11:37 木吟 阅读(947) 评论(0) 推荐(0)

Disable testSuite and testCase on some environment
摘要:Reference DOC: http://sothatsit.com/computers-software/soapui/groovy-scripting-soapui/disable-setdisabled/ 阅读全文

posted @ 2016-09-05 11:17 木吟 阅读(268) 评论(0) 推荐(0)

Parse xml/json[xpath/jpath]
摘要:import groovy.util.XmlSlurper import groovy.util.XmlParser import com.eviware.soapui.support.GroovyUtils import com.jayway.jsonpath.* def xmlStr = 'Some text!' def rootNode // use XmlSlurper to par... 阅读全文

posted @ 2016-06-01 16:45 木吟 阅读(422) 评论(0) 推荐(0)

Read excel and put cell data into HashMap
摘要://Read excel row by row, put cell name and cell value to a map for each row. HashMap getExpectedResult(int rowNum, String filePath, String sheetName){ HashMap map = new HashMap(); ... 阅读全文

posted @ 2016-05-23 17:26 木吟 阅读(347) 评论(0) 推荐(0)

常用的CSS定位,XPath定位和JPath定位
摘要:CSS定位 XPath定位 JPath定位 阅读全文

posted @ 2016-01-13 11:24 木吟 阅读(2663) 评论(0) 推荐(0)

移除project,testsuite,testcase级别所有的custom properties
摘要:// Remove all custom properties on Project level. If removed, custom properties cannnot be injected to Project in new environment except default env def removeProjectProperties(){ def propertyNam... 阅读全文

posted @ 2015-12-03 17:04 木吟 阅读(486) 评论(0) 推荐(0)

Groovy解析xml并且注入Project,TestSuite,TestCase级别的custom properties
摘要:import com.eviware.soapui.support.GroovyUtils import groovy.util.XmlParser def groovyUtils = new GroovyUtils( context ) def xmlFilePath = groovyUtils.getProjectPath()+"\\Properties.xml" def testA... 阅读全文

posted @ 2015-12-03 16:46 木吟 阅读(868) 评论(0) 推荐(0)

SoapUI中如何获取当前active环境
摘要:// Get the current selected Environment def activeEnv = testRunner.testCase.testSuite.project.getActiveEnvironment().getName() 阅读全文

posted @ 2015-12-03 16:09 木吟 阅读(319) 评论(0) 推荐(0)

SoapUI API + Groovy API + Difference with Java
摘要:用soapUI进行webservice测试过程中,必不可少的要用到soapUI封装的代码。我们一起学习吧:) SoapUI 5.1.2 API:http://www.soapui.org/apidocs/index.html SoapUI中我们经常会用到Groovy script,想不起来groov 阅读全文

posted @ 2015-11-13 14:10 木吟 阅读(613) 评论(0) 推荐(0)

SoapUI中如何传递cookie
摘要:import com.eviware.soapui.support.types.StringToStringMap //Get all the cookies in the response def cookiesList = testRunner.testCase.getTestStepByName("Login").testRequest.response.responseHeader... 阅读全文

posted @ 2015-10-27 11:44 木吟 阅读(3716) 评论(0) 推荐(0)

获取本地soapUI项目路径
摘要:def projectDir = ${projectDir} 阅读全文

posted @ 2015-10-27 11:21 木吟 阅读(874) 评论(0) 推荐(0)

1