Transactions in QTP, Start Insert
Transaction Points in Quick Test Professional
Let's learn the uses of transactions in
QTP
- With the help of Defining Transactions we can measure our test run section, How long it takes to run.
- Defining the Transactions: Enclosing the proper sections to the test with proper Start transaction statements and the end translations statements into the usable test, this is called defining the transactions..
- As a example – You want to calculate the time taken by the book a railway coach.
- You required to select the proper statements where you like to use the transactions in QTP.
- First Use the Insert Start Transaction.
- Now Dialog box will opens related to Start Transaction.
- Provide or assign the suitable name, like “Time Of Booking” to Transaction.
- Now this start transaction statement has been added to this test.
- Now need to select that statement where you like to transaction end.
- Now Click Insert → End Transaction
- Now Dialog Box will open for End Transaction with the all available transactions list\
- Now click on OK, End Transaction Statement has been added.
- Now just run the test.
- This End transaction statement provide the taken time to input the order as a result.
- Anywhere in the script, Transactions can be used or inserted.
- No limitations on Transactions, we can use multiple transactions wherever we required for transactions.
- We can use nested transactions also mean transactions into the transactions.
Start Transactions in QTP
No comments:
Post a Comment