05-14-2010, 09:49 AM
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
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
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.