Re: How to load Jar inside Groovy Script dyanmically ? I don't have the access to "../bin/ext&
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2019
02:02 PM
08-22-2019
02:02 PM
Re: How to load Jar inside Groovy Script dyanmically ? I don't have the access to "../bin/ext&
@santanu33 Did you ever figure this out? I am having the exact same problem.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2019
01:12 AM
08-23-2019
01:12 AM
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.
