AnsweredAssumed Answered

Debugging Groovy Script

Question asked by John Gilmour on Sep 17, 2018
Latest reply on Sep 17, 2018 by Busby

Hello,

Is there a way that I can use the API to return either for a particular asset or all assets the contents of variables mentioned within a Groovy Script. E.g

 

\\CODE:

if(asset.getAssetType()!=Asset.AssetType.HOST) return false;
threshold_minutes=3
host_scan_time=asset.resultsForQid(45038);
host_scan_time=host_scan_time.substring(15,host_scan_time.indexOf(' Seconds'));

 

 

\\

I would like to see the raw data for the variable host_scan_time.

 

The end goal will be to use the output as part of a Groovy Script within the Qualys Interface.    

Outcomes