cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How to load Jar inside Groovy Script dyanmically ? I don't have the access to "../bin/ext&

Contributor

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
Highlighted
Community Hero

Re: How to load Jar inside Groovy Script dyanmically ? I don't have the access to "../bin/ext&

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.

New Here?
Join us and watch the welcome video:
Join the exciting event
SeptemberHubBub
Top Kudoed Authors
Join the September Hub-bub to show off, learn and win