Full response ----------------------------------------------------------------------------------------------------------------------------- Full Groovy // SDM-Activate Input file: 302330000006120,12313140097 import java.text.SimpleDateFormat def date = new Date() def file_date = new SimpleDateFormat("dd_MM_yyyy_HH_mm_ss") def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) def csvFilePath = "C:\\G-Groovy\\SDM-IMSI-MSISDN.csv" def reportFile = "C:\\G-Groovy\\Reports\\SDM-Activate_"+file_date.format(date)+".log" testRunner.testCase.setPropertyValue( "TARGET-1", "" ) testRunner.testCase.setPropertyValue( "TARGET-2", "" ) context.fileReader = new BufferedReader(new FileReader(csvFilePath)) File report = new File(reportFile) rowsData = context.fileReader.readLines() int rowsize = rowsData.size() report.text = "SDM-Activate Start: "+file_date.format(date) report << "\n" for(int i =0; i < rowsize; i++) { def log_date = new Date() def sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss") rowdata = rowsData[i] String[] data = rowdata.split(",") testRunner.testCase.setPropertyValue( "TARGET-1", data[0] ) testRunner.testCase.setPropertyValue( "TARGET-2", data[1] ) testRunner.runTestStepByName( "PT-SDM-Activate") tStep = testRunner.testCase.getTestStepByName("PT-SDM-Activate") def xmlResponse = tStep.getPropertyValue("Response") def holder = groovyUtils.getXmlHolder(xmlResponse) def xml = new XmlSlurper().parseText(xmlResponse) // log.info " Seq="+i+" "+data[0]+", "+data[1] //Assuming you have data array, variable i, and xmlString //Apart from that you can remove everything from the script def line = ["Seq=${i}", data[0], data[1] ] line << new XmlSlurper().parseText(xmlResponse).'**'.findAll {it.name() == 'sdmDataResponse' }.collectMany{ ["FlowId=${it.@flowId}", "Status=${it.children()[0].@resultCode}" ]} log.info line.flatten() report << line sleep(300) } ----------------------------------------------------------------------------------------------------------------------------------------------------- Log.info Fri Jun 25 09:58:32 EDT 2021:INFO:[Seq=0, 302330000006120, 13313140097, FlowId=1, Status=0, FlowId=2, Status=0, FlowId=3, Status=0, FlowId=4, Status=0, FlowId=5, Status=0, FlowId=6, Status=0, FlowId=7, Status=0, FlowId=8, Status=0] Fri Jun 25 09:58:33 EDT 2021:INFO:[Seq=1, 302330000007120, 13313140097, FlowId=1, Status=0, FlowId=2, Status=0, FlowId=3, Status=0, FlowId=4, Status=0, FlowId=5, Status=0, FlowId=6, Status=0, FlowId=7, Status=0, FlowId=8, Status=0] ----------------------------------------------------------------------------------------------------------------------------------------------------- Report log file SDM-Activate Start: 25_06_2021_09_58_32 [Seq=0, 302130000006120, 14313140097, [FlowId=1, Status=0, FlowId=2, Status=0, FlowId=3, Status=0, FlowId=4, Status=0, FlowId=5, Status=0, FlowId=6, Status=0, FlowId=7, Status=0, FlowId=8, Status=0]][Seq=1, 302130000006120, 14313140097, [FlowId=1, Status=0, FlowId=2, Status=0, FlowId=3, Status=0, FlowId=4, Status=0, FlowId=5, Status=0, FlowId=6, Status=0, FlowId=7, Status=0, FlowId=8, Status=0]]