Micro Focus QTP (UFT) Forums

Full Version: Sript Timer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a function that times how long a script took to run and reports the results?
Use below code

Code:
StartTime = now
   'Your scripts
EndTime = now

TransactionTime = EndTime - StartTime
Msgbox TransactionTime

Or Simply use QTP-Insert-Start Transaction, End transaction