Issue in Loading external custom lib in script assertion
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Issue in Loading external custom lib in script assertion
Ready API Version- 3.9.0
I have created few external groovy files for common assertions. to use those external script files have created a custom lib folder on local machine -
For Ex- /Users/<User-Name>/SoapUI_Projects/lib
And also updated the path of the folder in the Script library under Preferences and saved preferences+ restarted Ready API as well.
Now when I am using this lib in Assertion. It is still looking for the Ready API installation folder instead of my custom lib path.
It looks for dir- "/Application/ReadyAPI 3.9.0.app/Content/Java/app/bin/lib(No such file directory)" instead of my custom lib path.
can anyone please help me here if I am doing something wrong?
- Labels:
-
Assertions
-
Scripting
-
Tags
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is the documentation for the same. Please refer if not already.
https://support.smartbear.com/readyapi/docs/testing/scripts/libs/groovy-lib.html
Ensure the groovy files placed under above directory are classes not scripts.
As per your screen shot, the file is not found in the given location. Ensure the path is correct.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi @lavnyaup ,
ReadyAPI project would bind a script library in project level (in project properties). you just need to fill in your script lib path (i.e. ${projectDir}/xxx/xxx).
for instance:
your project path is: C:\Users\<User name>\ReadyAPIProject
your script lib path would be: ${projectDir}\ScriptLib
Thanks,
/Aaron
