首页 > 代码库 > [SoapUI] Groovy在SoapUI里获取Text文本第一行数据

[SoapUI] Groovy在SoapUI里获取Text文本第一行数据

// get external txt file data
def groovyUtils =new com.eviware.soapui.support.GroovyUtils(context)
def csvFilePath =context.expand(‘${projectDir}/TestData/data.txt‘)
context.fileReader= new BufferedReader(new FileReader(csvFilePath))
rowsData =http://www.mamicode.com/context.fileReader.readLines()
String rowdata = http://www.mamicode.com/rowsData[0]

[SoapUI] Groovy在SoapUI里获取Text文本第一行数据