appScan = __main__.appScan
However, I am not clear the code needed to access the
ReportFactory.CreateSecurityReport method (or if I can access this
through Python). I would like to use this method to generate scan
reports directly from Python.
Any hints?
Thank you!
-Jeffrey
There's a simple example of how to generate a PDF report in the Mail-E-
Vent eXtension. I used that code to quickly generate a PDF report from
Pyscan. Here it is:
>>> scanData = appScan.Scan.ScanData;
>>> securityReport = Watchfire.AppScan.Reporting.ReportFactory.CreateSecurityReport(scanData);
>>> securityReport.Config.Advisories = True;
>>> securityReport.Export(Watchfire.AppScan.Reporting.ReportFileType.Pdf, "C:\\Report.pdf");
Hope this helps,
-Ory
One last note on this subject -
Since Pyscan is using the SDK (just like the eXtensions), you can
basically use the SDK documentation to find out the different APIs.
The documentation is available in the /Docs directory of your AppScan
installation, and can also be downloaded from the AXF web site.
Thanks,
-Ory