importau.com.bytecode.opencsv.CSVReader;deffilename=testRunner.testCase.getPropertyValue("filename")log.info("[load data] CSV File Path and Name: "+filename)log.info("[load data] Reading the CSV...")CSVReaderreader=newCSVReader(newFileReader(filename));defisHeader=trueListapprovalList=[]while((nextLine=reader.readNext())!=null){if(isHeader){isHeader=false}else{approvalList.addnextLine}}//set property to test case context defloopCount=0log.info("[load data] Number of Approval: "+approvalList.size())context.setProperty("approvalList",approvalList)context.setProperty("loopCount",loopCount);// get propertylog.info("[loop start] Current Loop Count: "+context.loopCount);defmsg=context.approvalList.remove(0)testRunner.testCase.testSuite.getTestCaseByName("Approval").setPropertyValue("userid",msg[0])testRunner.testCase.testSuite.getTestCaseByName("Approval").setPropertyValue("password",msg[1])testRunner.testCase.testSuite.getTestCaseByName("Approval").setPropertyValue("key",msg[2])testRunner.testCase.testSuite.getTestCaseByName("Approval").setPropertyValue("body","<![CDATA["+msg[3].trim()+"]]>")context.setProperty("loopCount",++context.loopCount);