How to track the execution time?

Answers were Sorted based on User's Feedback



How to track the execution time?..

Answer / sonal.pagare

StartTime = Timer
EndTime = Timer
TimeDiff = EndTime - StartTime
DataTable("TimeTaken",dtLocalSheet) = TimeDiff

Services.StartTransaction "Title"
Services.EndTransaction "Title"

Is This Answer Correct ?    3 Yes 0 No

How to track the execution time?..

Answer / uday

You can view your test execution time in the Test Results
without writing any code.
In test results, you can see how much time it took to
execute the whole test(start time and end time).
You can also view how much time it took to execute each
action aswell.

If you want to programatically, see the time difference, use
the below code:
time1=time
'put all your code here
time2=time
msgbox(time2-time1)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

what is difference between Mandatrary proparties and Assistive proparties? Explain

4 Answers  


User defined function in QTP

2 Answers   Lehman Brothers,


How is UFT 11.5 version different from UFT 12.0?

0 Answers  


What is different command used in command Prompt while using QTP?

0 Answers  


How to capture text from image to word

2 Answers  


can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function

5 Answers  


How to execute a WinRunner Script in QTP?

1 Answers   Crea,


Hello Everybody, Can anyone tell me that in QTP how to count the number of webelements from the object repository. Please provide the code. Thanks in advance, Gaytri

3 Answers  


how many maximum number of virtual users we can create?

0 Answers  


difference Between LowLevel and Normal Recording Modes?

4 Answers  


How can i initiate the objects to find uniquely in OR

0 Answers   IBM, Livetek,


a title of first page is "LKO- microsoft internet explorer", of the second page is "PPM- microsoft internet explorer" , of Third page is "TTS- microsoft internet explorer" and same changing title on the fourth page. How can we use regular expression for this feature what should we do on script part on and Object repository part so that we can get successful run result. Kindly explain the steps script.

2 Answers  


Categories