In QTP, i have used Services.StartTransaction("login")
and Services.EndTransaction("login") to get the duration for login...
In results , i see Services.EndTransaction("login") with details as 'Transaction "login" ended with "Pass" status (Total Duration: 2.6984 sec Wasted Time: 2.3330 sec).'
Here i am confused...what is wasted time and when i note the total duration for login , do i need to subtract Total Duration: 2.6984 sec and Wasted Time: 2.3330 sec?
Please let me know?
just add to your code:
wait(3)...and stop worring about
I believe "wasted time" is the time QTP spent waiting on the system to process the next instruction either due to cpu cycles or waiting for webpages to render, etc.
A good rule of thumb is to never measure with your thumb.