Timer function is used to get the number of seconds that have passed since midnight.
You can use this to calculate execution time of the QTP script.
Example -
ExecutionStarted = timer
'your script code goes here
ExecutionEnded = timer
ExecutionTime = ExecutionEnded - ExecutionStarted
Print ExecutionTime
'This will print the execution time in seconds.
To get the time in minutes use below code.
Print ExecutionTime / 60
Please give your inputs, suggestions, feedback to Us. We value your thoughts.
You can use this to calculate execution time of the QTP script.
Example -
ExecutionStarted = timer
'your script code goes here
ExecutionEnded = timer
ExecutionTime = ExecutionEnded - ExecutionStarted
Print ExecutionTime
'This will print the execution time in seconds.
To get the time in minutes use below code.
Print ExecutionTime / 60
Please give your inputs, suggestions, feedback to Us. We value your thoughts.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs