//def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) //read data from the text file and pass into the parameter File listDocumentPath = new File("C:/DM_LoadTests/InputParameters/DocumentPath.txt") File listDocumentName = new File("C:/DM_LoadTests/InputParameters/DocumentName.txt") //read lines List lineDocumentPath = listDocumentPath.readLines() List lineDocumentName = listDocumentName.readLines() //calculate the length of the line //int pathrowsize = lineDocumentPath.size() //int namerowsize = lineDocumentName.size() def randDocPath = Math.abs(new Random().nextInt() % 20) def randDocName = Math.abs(new Random().nextInt() % 100) log.info lineDocumentPath.getAt(randDocPath) log.info lineDocumentName.getAt(randDocName) testRunner.testCase.testSteps["Properties"].setPropertyValue("DocumentPath", lineDocumentPath.getAt(randDocPath)) testRunner.testCase.testSteps["Properties"].setPropertyValue("DocumentName", lineDocumentName.getAt(randDocName))