dataSource with Groovy
来源:互联网 发布:360全景效果图软件 编辑:程序博客网 时间:2024/06/05 18:01
1. New Datasource -> choose Groovy :
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext
import com.eviware.soapui.support.XmlHolder
def project_level= testRunner.testCase.testSuite.project
def tStep = project_level.testSuites['TestSuite'].testCases['GetUserListCases'].testSteps['GetUserList']
def testStepContext = new WsdlTestRunContext(tStep)
//get response
def response = testStepContext.expand('${GetUserList#response}')
// Transfer to xml
def xml = new XmlHolder(response)
/*get the value of data-id
<ul id="list-items" class="dropdown-menu" aria-labelledby="dropdownMenu-list">
<li>
<a href="#" data-id="d3f7ce5c-03d3-4169-aa37-03b967722435">Conversion_operation1</a>
</li>
*/
def investIDs = xml.getNodeValues("//li/a/@data-id")
//count the size of the data-id
def counts = investIDs.size()
// the current Row of the datasource
def i =testRunner.testCase.testSteps["DataSource"].currentRow
// set the data-id to the parm investIDs one by one
if(i<counts)
{
result["investIDs"]= investIDs[i]
}
- dataSource with Groovy
- grails datasource.groovy
- Getting Groovy with XML
- Parse CSV file with Groovy
- SoapUI自动化--Groovy脚本实现随机抽取DataSource(Excel)
- grails 中DataSource.groovy引入外部properties的设置
- The DataSource with the JNDI name.txt
- datasource with some sql parameters in ()
- csharp:A Custom CheckedListBox with Datasource
- csharp:A Custom CheckedListBox with Datasource
- Groovy Goodness: Using ConfigSlurper with Configuration Scripts Groovy读取配置文件
- Groovy Differences with Java(Groovy不同于java的地方)
- Creating RESTful services with Jersey and Groovy
- Grassroots Groovy: Configuration with ConfigSlurper JAVA读取groovy配置文件(Config.groovy)
- DataSource
- DataSource
- datasource
- dataSource
- 一致性性哈希
- [转]易语言 360免杀方法心得总结
- 【MVC5】2.添加控制器
- Github blog
- uva 11584 Partitioning by Palindromes 回文+dp
- dataSource with Groovy
- 一个HTML文件,找出里面的链接
- 通过有名管道实现两个进程单向通讯
- time
- 协方差矩阵
- 常见聚类算法
- Android快速开发系列 10个常用工具类
- hdu1160 FatMouse's Speed
- navicat 连接数据库报错 2003 cannot connect mysql on .......