摘要:SoapUI--the use of Script Library 有两种方法在soapUI中引用自己的groovy脚本库。 方法一:把自己的script folder放到soapUI installation location ->scripts(step1 in screenshot1), 然后
阅读全文
摘要:正则表达式的学习网站: https://regexone.com/
阅读全文
摘要: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支持test suite, test case级别的并发,合理使用这个功能,可以让自动化脚本短时间内跑完,为release省下时间。 1. 如何开启并发模式 图示,click project name, you will see the parallet icon on right, c
阅读全文
摘要:After upgrade readyAPI 1.9 to the higher version, pop up error "java.lang.NoClassDefFoundError:org/openxmlformats/schemas/spreadsheetml/x2006/main/CTE
阅读全文
摘要:在当前test step的Script Assertion里添加
阅读全文
摘要:在当前的TestSuite/TestCase的Setup Script里面写上这段代码:
阅读全文
摘要:在eclipse中安装groovy插件详细步骤: step 1:检查自己的eclipse版本:在help->About Eclipse中查看: step 2:进入 https://github.com/groovy/groovy-eclipse/wiki查找和自己eclipse对应版本的groovy
阅读全文
摘要:更改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
阅读全文
摘要:用Window Authentication的方式去连接SQLServer Connection String: jdbc:sqlserver://${serverName};databaseName=${tableName};IntegratedSecurity=true 还需要把sqljdbc_
阅读全文
摘要:Reference DOC: http://sothatsit.com/computers-software/soapui/groovy-scripting-soapui/disable-setdisabled/
阅读全文
摘要: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...
阅读全文
摘要://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(); ...
阅读全文
摘要:// 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...
阅读全文
摘要:import com.eviware.soapui.support.GroovyUtils import groovy.util.XmlParser def groovyUtils = new GroovyUtils( context ) def xmlFilePath = groovyUtils.getProjectPath()+"\\Properties.xml" def testA...
阅读全文
摘要:// Get the current selected Environment def activeEnv = testRunner.testCase.testSuite.project.getActiveEnvironment().getName()
阅读全文
摘要:用soapUI进行webservice测试过程中,必不可少的要用到soapUI封装的代码。我们一起学习吧:) SoapUI 5.1.2 API:http://www.soapui.org/apidocs/index.html SoapUI中我们经常会用到Groovy script,想不起来groov
阅读全文
摘要:import com.eviware.soapui.support.types.StringToStringMap //Get all the cookies in the response def cookiesList = testRunner.testCase.getTestStepByName("Login").testRequest.response.responseHeader...
阅读全文
摘要:def projectDir = ${projectDir}
阅读全文