Forum Discussion
plaidshirt
Contributor
Sure, I try this, but got error message when executed: http://prntscr.com/m9xh9m
nmrao
6 years agoChampion Level 3
What files did you copy under ext directory? And the script please
- plaidshirt6 years agoContributor
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" }
- nmrao6 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!
Related Content
- 5 years agoMarkus_F
Recent Discussions
- 22 hours agoruchisingh