zsousa
9 years agoContributor
Can Groovy run an extral program
I have a third part executable that accepts parameters. I want to call this program and pass in those parameters through Groovy. but its not executing the file.
I found this cool utility called "node-csvtojson" it accepts a csv file and returns a nice thirft/json string like so
[1,"getLatePersonPeriodSubmissionsForProgram",1,1,{"1":{"i64":593},"2":{"i64":10101},"3":{"i64":20202}}]
I tried running this from Groovy but nothing happens. so then I created a .sh file that contains the following
#! /bin/sh
csvtojson csvdata_csv.csv
and I tried calling that from Groovy and nothing happened.
Then I installed Groovy outside of SoapUI and tried running the script and that worked.