摘要:在同一个Suite里import com.eviware.soapui.support.types.StringToStringMapdef headers = testRunner.testCase.testSuite.getTestCaseByName("LoginTest").getTestS...
阅读全文
摘要:Car c= new Car(log);c.print()class Car{ def log public Car(log){ this.log=log } public void print(){ log.info "hello world" }}
阅读全文
摘要:package com.file.properties;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import...
阅读全文
摘要:读取以下两种格式的Excel : *.xls and *.xlsx用Apache POI API来实现,需要用到 HSSF 和 XSSF 的类库HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) (.x...
阅读全文
摘要:package com.file.properties;import java.io.FileInputStream;import java.util.Properties;public class ReadProperties { Properties prop; public ReadPro...
阅读全文
摘要:Reading Properties file :Properties prop = new Properties()def path = "D:\\SoapUIStudy\\application.properties"FileInputStream fs = new FileInputStrea...
阅读全文
摘要:Hashset:HashSet set = new HashSet()set.add("India")set.add("USA")set.add("China")log.info "Set size is : " + set.size()set.add("China")log.info "Set s...
阅读全文
摘要:Array:def x = new String[5]x[0] = "India"x[1] = "USA"x[2] = "Korea"x[3] = "Japan"x[4] = "China"log.info "Size of list is " + x.size()log.info "The fir...
阅读全文
摘要:def x="I like to read books before bed"def temp = x.split(" ")log.info "Size of array is : "+temp.lengthlog.info temp[0]log.info temp[1]log.info x.sub...
阅读全文
摘要:Code example :package com.file.properties;import java.io.FileInputStream;import java.util.Properties;public class ReadProperties { Properties prop; ...
阅读全文