cancel
Showing results for 
Search instead for 
Did you mean: 

Scripts library redefine

Highlighted
Not applicable

Scripts library redefine

Hello!
Can you help me with one question?
How can i redefine scripts library from groovy script? Or how to define scripts library with soapui startup except settings-file?
Thank you.
2 REPLIES 2
Highlighted
Occasional Contributor

Re: Scripts library redefine

I echo Kiril's question.  Specifically, how can I set the Script Library directory when calling the SoapUI test runner (testrunner.bat)?  I don't have the option of setting it via the ReadyAPI IDE.

 

The alternative to redefining the Script Library directory is to copy our own scripts into the ReadyAPI bin/scripts folder, which then becomes a maintenance issue as those scripts should be cleaned up at the end of the run without deleting any of the SmartBear-provided script files there.

 

So it is best to set the Script Library on each call to testrunner.bat.  How can this be done?

Highlighted
Occasional Contributor

Re: Scripts library redefine

Solved via two other posts.

https://community.smartbear.com/t5/SoapUI-Pro/Setting-script-library-path-for-command-line-execution...

which pointed to:

https://community.smartbear.com/t5/SoapUI-Pro/script-lib-location-into-testrunner-bat-file/td-p/2336...

 

SmartBear Support provided the answer in the second post above:

-Dsoapui.scripting.library=<your script library path>

 

Adding that to the arguments to testrunner.bat called from my Gradle build file worked.  Note that the path should be an absolute path, as a path relative to the directory from which testrunner.bat was invoked did not work.  Absolute path worked though.  Cased closed (for me anyway).

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors