Thursday 1 August 2013

Explain the Timer Function with Example in QTP.

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.

No comments:

Post a Comment

Please Leave your reply. We value your feedback and inputs

Best QTP Books

Everything About QTP

Hello Friends,
You can find QTP study material, Multiple choice questions (mcq), QTP question bank, QTP question papers, QTP notes, QTP questionnaire, scenario based QTP interview questions, QTP tutorial and QTP training on this site.

If you are a fresher or experienced QTP professional with (1/2/3/4) years of experience, this blog is just for you.