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

Which property do you use to retrieve or assign data into a cell in a Data Table object?

1 Answers  


how u track bugs using Test director in manual testing.

2 Answers   Accenture, FCG,


I Scheduled a QTP Script on remote desktop. Script is going to failure,when remote desktop connection fails.I have to open my remote desktop untile the scripts exection completes. If I disconnect my remote desktop connection, script is going to fail.?

1 Answers   TCS,


What is wrong in my code?

3 Answers  


how can you describe the basic flow of automation with conditional and programmatic logic?

1 Answers   Ordain Solutions,






Are Shared ORs read-only?

0 Answers  


Excepton Handling?

0 Answers   Wipro,


How to handle dynamic objects in quicktest professional (qtp)?

0 Answers  


How to identify the objects using descriptive programming when the object property values are same, i mean in a page 10 objects are there i want to click the 6th object but all the object property values are same? using descriptive programming

2 Answers   Genpact,


The hybrid framework can be implemented for any application. Is it true?

0 Answers  


difference between multiple parameterization and data driven wizard in QTP?

1 Answers  


How do I get the QTP scripts result in xml format by using vb script function?

0 Answers  


Categories