Forum Discussion
JHunt
6 years agoCommunity Hero
Hi lauravachon
You were having problems with loading a JAR file at runtime in Groovy (same as this thread).
You can add the following code to your project's Load Script:
import com.eviware.soapui.support.ClasspathHacker ClasspathHacker.addFile('/myproject/my.jar')
When you run this script (or reload your project), then from the next script that you run, you will be able to import classes from the JAR. So first run the above script, then make use of the classes in any other script, such as a GroovyScriptTestStep, TestSuite Setup Script, etc.
Related Content
- 6 months ago