Forum Discussion
plaidshirt
Contributor
Apache Ivy jar is imported, but groovycsv throws noclassdef error message.
Could you offer me a native solution please?
nmrao
6 years agoChampion Level 3
plaidshirt,
You can download the groovy-csv jar file (available in github) along with dependencies, then copy thenm under SOAPUI_HOME/bin/ext and restart soapUI.
Then try the given samples. You might have already observiced how simple to access the data from the sample.
You can download the groovy-csv jar file (available in github) along with dependencies, then copy thenm under SOAPUI_HOME/bin/ext and restart soapUI.
Then try the given samples. You might have already observiced how simple to access the data from the sample.
- plaidshirt6 years agoContributor
Sure, I try this, but got error message when executed: http://prntscr.com/m9xh9m
- nmrao6 years agoChampion Level 3What 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" }
Related Content
- 2 years ago
- 6 years ago
Recent Discussions
- 15 years ago