Micro Focus QTP (UFT) Forums
Can QTP test the overall turnaround 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: Can QTP test the overall turnaround time? (/Thread-Can-QTP-test-the-overall-turnaround-time)



Can QTP test the overall turnaround time? - charmieaka - 05-14-2010

Hi,

I would like to ask if QTP can test/capture the overall turnaround time of one process? For instance: How long will it take (loading time) to
- click a links/buttons
- shift from one menu/tab
- save data
- retrieve data from database (database checkpoint and output values)
- searching for a specific data in the application
- etc...
Or if you have any other scenarios, please free to share it with me.

Thank you very much in advance! Smile
Armie


RE: Can QTP test the overall turnaround time? - basanth27 - 05-14-2010

Yes. But wouldnt be as efficient as any Performance tool.


RE: Can QTP test the overall turnaround time? - charmieaka - 05-14-2010

Hi Basanth,

Yes, you're correct. Thanks! Can you help me identify what steps/scripts to do to perform this kind of testing? I already change some options in Tools > Options..

Thanks in advance! Smile


RE: Can QTP test the overall turnaround time? - basanth27 - 05-14-2010

This indeed is a herculean task. It takes some time and effort to first finalize the most basic situations you want to verify. There are several other components which get added up when you try to obtain the time given. For eg : syncronization time, QTP loading the required files if any, response from the server related to the application etc etc.

What you can do here is, do a very simple and basic try catch which should be like,

starttime= timer
do whatever you want to..
..
,.
..
Endtime = timer

So a difference should give you the time taken. Now this is the most basic one. There is something called Transactions in QTP. you can begin transactions and end transactions. See if you can get the time from there. QTP 10.0 has a performance monitor. Not very accurate but average enough to show the management you got something here.

Also, would you give me one single case for which you want to find the time taken ? Please paste the code..it makes my life easier to understand Smile


RE: Can QTP test the overall turnaround time? - charmieaka - 05-14-2010

oh sorry..i only have the qtp scrpts...
Here's the case:
I have an employee record with personal info but with no Address info yet. Now, i added the address info, saved and stored in the database thru QTP. In QTP, i inserted a database output value step (then displayed in data table - global sheet).
I want to determine the time "from the point of invoking the db output value step to the point of retrieving the data (form the db) and displaying it in the data table."

scripts from qtp:
Code:
Browser("Pension 2010").Page("Pension 2010_2").WebElement("WebTable").Click
Browser("Pension 2010").Page("Pension 2010_2").Link("Add").Click
Browser("Pension 2010").Page("Pension 2010_2").WebEdit("_ctl5:S_PERSON_ADDRESS:dgSPersonAdd").Click
Browser("Pension 2010").Page("Pension 2010_2").WebEdit("_ctl5:S_PERSON_ADDRESS:dgSPersonAdd").Set "222220003"
Browser("Pension 2010").Page("Pension 2010_2").WebList("_ctl5:S_PERSON_ADDRESS:dgSPersonAdd").Select "Home"
Browser("Pension 2010").Page("Pension 2010_2").WebEdit("_ctl5:S_PERSON_ADDRESS:dgSPersonAdd_2").Set "2010 QA DRIVES"
Browser("Pension 2010").Page("Pension 2010_2").WebEdit("_ctl5:S_PERSON_ADDRESS:dgSPersonAdd_3").Set "LEXINGTON"
Browser("Pension 2010").Page("Pension 2010_2").WebEdit("_ctl5:S_PERSON_ADDRESS:dgSPersonAdd_4").Set "NC"
Browser("Pension 2010").Page("Pension 2010_2").WebEdit("_ctl5:S_PERSON_ADDRESS:dgSPersonAdd_5").Set "27295"
Browser("Pension 2010").Page("Pension 2010_2").WebList("_ctl5:S_PERSON_ADDRESS:dgSPersonAdd_2").Click
Browser("Pension 2010").Page("Pension 2010_2").WebList("_ctl5:S_PERSON_ADDRESS:dgSPersonAdd_2").Select "United States"
Browser("Pension 2010").Page("Pension 2010_2").WebList("_ctl5:S_PERSON_ADDRESS:dgSPersonAdd_3").Select "Update/Insert"
Browser("Pension 2010").Page("Pension 2010_2").Link("Save").Click
DbTable("DbTable_5").Output CheckPoint("DbTable_2")


Thanks!


RE: Can QTP test the overall turnaround time? - basanth27 - 05-14-2010

Did you try what i suggested with the timer function ?