In Micro Focus UFT/QTP, 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.
You can also insert a transaction within a transaction
Following video takes you through the steps to insert a Transaction in HP UFT.
Click here if the video is not accessible
For example, you may want to note the time taken to book a flight.
- In QTP, select the appropriate state where you want to start your transaction.
- Select 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 state 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
- Let's run the test
- In results, the end transaction statement gives the time taken to insert the order