![]() |
How to track the execution time? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How to track the execution time? (/Thread-How-to-track-the-execution-time) |
How to track the execution time? - Ravi_Chandra - 12-22-2010 Hi, As part of the testing.... we have a scenario where we have to track the exact time taken for the application to perform the functioanlity. Example, 1. When we login into the application, the page loads. I need the exact time of how much time it took the page to load. 2. When I am creating a record, I need the time it took to create the record. Like wise other functionalities as part of regression testing. I am using Business Components with Keyword driven scripting. Can anyone help on this? Thanks, Ravi. RE: How to track the execution time? - manishbhalshankar - 12-22-2010 Hi Ravi, You can do this using Transaction in QTP. RE: How to track the execution time? - Ravi_Chandra - 12-22-2010 Hi Manish, Thank you for instruction... Implemented it successfully. I am able to view the time in test results window. Can you please let me know how can we get that time into an excel sheet? Thanks, Ravi. RE: How to track the execution time? - PrabhatN - 12-22-2010 Hi Ravi, You can use the following code to get the time taken to perform the functionality. Quote:StartTime = Timer I have put the time difference in the Data Table. I hope you know how a value is stored in an external excel sheet. RE: How to track the execution time? - pufftmd - 02-08-2011 As an alternative to the above mentioned we tend to use the following coding: Code: Services.StartTransaction "Title" |