How to use Transactions in QTP?

Answer

You can measure how long it takes to run a section of your test by defining Transactions. You define transactions within your test by enclosing the appropriate sections of the test with start and end transaction statements.

Transactions can be inserted anywhere in the script

There is no limit to the number of transactions that can be added to a test.

 

For example, you may want to note the time taken to book a flight.  In QTP , select the appropriate statement where you want to start your transaction .

 

elect Insert Start Transaction. Start Transaction Dialog Box opens

Give the transaction a suitable name, say "Booking Time"

A start transaction statement is added in the test

Select the statement where you want to end the transaction

Click Insert > End Transaction

End Transaction Dialog Box Opens with the list of all available transactions

Click Okay. An end transaction statement is added

Lets run the test

In results , the end transaction statement gives the time taken to insert the order 

All qtp Questions

Ask your interview questions on qtp

Write Your comment or Questions if you want the answers on qtp from qtp Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---