AppScan SDK : Does it provide API to monitor the progress( % scan complete) of a scan?

61 views
Skip to first unread message

dg

unread,
Feb 7, 2009, 5:51:58 AM2/7/09
to AXF - General Discussion
Hello Everybody,

I guess this is my 4th post in this forum after a hiatus of almost 10
months now. So far i was busy trying to build an extension for scan
submission using the SDK among other things. So far so good. But there
is a major blocker in this project which is monitoring the scan
progress.

Simply put I intend to monitor % scan completed of an in progress
scan.
Does the SDK provide any API which returns the in progress scan %
complete?

I'm aware of the API in the SDK which returns the state of AppScan (ie
TESTING/EXPLORING/IDLE/RUNNING).

These state information are not helpful in providing the % of the scan
complete( by a scan event i mean composition of exploration phase
followed by testing phase followed by second level of exploration &
testing and so on till it completes).

Please help me out. Like i mentioned earlier this has been a major
blocker so far in developing this extension.

Thanks for all your invaluable suggestions & support so far.

cheers
dibyajyoti
Message has been deleted

Watchfire AXF

unread,
Feb 8, 2009, 4:10:22 AM2/8/09
to AXF - General Discussion
Hi,

We don't have a specific API that returns the percentage but using
AppScan.Scan.ScanData you can retrieve information needed in order to
calculate percentage.

So for example to retrieve the test percentage you would do the
following:

void ScanData_TestsCountersChanged(object sender,
TestCountersEventArgs args)
{
int percent = 0;
long CurrentPhaseTests = scan.ScanData.CurrentPhaseTests;
if (CurrentPhaseTests> 0)
{
percent = (int)((scan.ScanData.CurrentPhaseTested *
100) / CurrentPhaseTests );
}
}

Hope this helps.
Reply all
Reply to author
Forward
0 new messages