Header Ads

how we can meausre the time required for each component to execute in QTP

Recently i got a question on how we can meausre the time required for each component to execute...



In the head of the script...

Dim StartTime, EndTime
StartTime = Timer

....your code

EndTime = Timer


In the last line of the script component...

TimeIt = EndTime - StartTime

This "TimeIt" will give you the time required to execute the particular component.This is applicable to any script not only to component.
Powered by Blogger.