Forum Discussion
plaidshirt
Contributor
I copied these jars: https://mvnrepository.com/artifact/com.opencsv/opencsv/4.4 , https://mvnrepository.com/artifact/com.xlson.groovycsv/groovycsv/1.3 .
Groovy script:
@Grab('com.xlson.groovycsv:groovycsv:1.3') import static com.xlson.groovycsv.CsvParser.parseCsv def csv = '''ID,Product 3,Shoe 1,Table''' def data = parseCsv("C:\\_privat\\myfile.csv") for(line in data) { println "ID=$line.ID, Product=$line.Product" }
nmrao
6 years agoChampion Level 3
Very strange.
So, did a test with below jar files under SOAPUI_HOME/bin/ext directory
1. groovycsv 1.0 jar file
2. opencsv 3.0 jar file
you should be able to get both jars online
Here is script
First data refers to string data and second one from file reading (column names must match both cases)
Hope this helps!