1
我想打印我的測試套件爲文件了SoapUI寫測試包名到文件
def fileDir = new File("C:\\SoapUIResults");
if(!fileDir .exists()) {
fileDir .mkdirs();
} def myFile= new File(fileDir , "myFile.txt"); //If the file does not already exist, we want to create it, otherwise we want to append
if(!myFile.exists()) { myFile.createNewFile(); }
myFile.append(testRunner.testSuite.name +'\n'); //Test suite Name