Forum Discussion
HP-Plano-TX-Soa
11 years agoOccasional Contributor
Hi Rao,
The links you provided help somewhat, but I am still stuck on the steps needed to actually create the correct JAR file for Groovy scripts. These scripts are defined as classes with static methods, and all the Groovy classes are declared as belonging to the package "customScripts". Everything works perfectly in SoapUI Pro - I simply place the "customScripts" folder in the ..../bin/scripts/ dir and SoapUI Pro sees the scripts and executes them.
Now - I just need to create the correct JAR file containing the same Groovy scripts so I can place this in the ..../bin/ext/ dir of SoapUI Free so it too will be able to invoke the scripts.
Right now I am stuck at the point where Eclipse Kepler demands that I set the Package for my Groovy project to something from a drop-down list - and I have little idea which choice from the list would be the right one. Also - I want to keep the "customScripts" package name, but Eclipse seems to be uncooperative. I know I am a real junior Eclipse and JAR file beginner. I just need some guidance on how to choose the right package for my Eclipse Groovy project, generate the right kind of JAR file, and then I can test it out on SoapUI Free.
My Groovy scripts use the testRunner, testCase, log and context objects in SoapUI, and some of the methods take a parameter or two. They are pretty simple. I just need to understand how to generate a JAR file that has all the right dependencies for Groovy, SoapUI, etc.
The links you provided help somewhat, but I am still stuck on the steps needed to actually create the correct JAR file for Groovy scripts. These scripts are defined as classes with static methods, and all the Groovy classes are declared as belonging to the package "customScripts". Everything works perfectly in SoapUI Pro - I simply place the "customScripts" folder in the ..../bin/scripts/ dir and SoapUI Pro sees the scripts and executes them.
Now - I just need to create the correct JAR file containing the same Groovy scripts so I can place this in the ..../bin/ext/ dir of SoapUI Free so it too will be able to invoke the scripts.
Right now I am stuck at the point where Eclipse Kepler demands that I set the Package for my Groovy project to something from a drop-down list - and I have little idea which choice from the list would be the right one. Also - I want to keep the "customScripts" package name, but Eclipse seems to be uncooperative. I know I am a real junior Eclipse and JAR file beginner. I just need some guidance on how to choose the right package for my Eclipse Groovy project, generate the right kind of JAR file, and then I can test it out on SoapUI Free.
My Groovy scripts use the testRunner, testCase, log and context objects in SoapUI, and some of the methods take a parameter or two. They are pretty simple. I just need to understand how to generate a JAR file that has all the right dependencies for Groovy, SoapUI, etc.
Related Content
- 5 years agohenil_shah
- 9 years agojeffgaer
Recent Discussions
- 8 days agoemoya