Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to track the execution time?
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
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.
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi Ravi,

You can do this using Transaction in QTP.
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
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.
Reply
#4
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi Ravi,

You can use the following code to get the time taken to perform the functionality.

Quote:StartTime = Timer
---Your Code Here
EndTime = Timer
TimeDiff = EndTime - StartTime
DataTable("TimeTaken",dtLocalSheet) = TimeDiff

I have put the time difference in the Data Table. I hope you know how a value is stored in an external excel sheet.
Reply
#5
Solved: 11 Years, 4 Months, 4 Weeks ago
As an alternative to the above mentioned we tend to use the following coding:
Code:
Services.StartTransaction "Title"
Services.EndTransaction "Title"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  cross browser testing - am I on the right track? rerosenb 3 3,741 01-07-2011, 08:55 AM
Last Post: nandu
  How to skip the execution of Script lines in run time azeem 5 12,082 02-01-2010, 03:14 PM
Last Post: Saket
  execution time elsekra 2 3,133 11-28-2008, 07:43 PM
Last Post: elsekra

Forum Jump:


Users browsing this thread: 1 Guest(s)