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.
how we can meausre the time required for each component to execute in QTP how we can meausre the time required for each component to execute in QTP Reviewed by Animesh Chatterjee on September 19, 2009 Rating: 5

No comments:

Powered by Blogger.