Hello,
the "context" variable is accessible to your script, but not to the external class. You can still use it, but you will have to manually pass it to the function you wish to call:
def compareFunction( String testResponseName, String xpathQuery, context ) {
//Code goes here
}
And call it using:
compareFunction("getAsset#Response" , "//se:getAssetResponse/getAssetResponse/AssetInfo/text/*", context)
If you wish to use other variables available to the script (the log object for example) you will have to do the same for them.
Regards,
Dain
eviware.com