How to use transactions in QTP


Transactions are used to find the speed of test script execution between the start and end point  means how much time it is taken to execute particular block of script.

In QTP having two Transactions

1.Start Transaction
2.End Transaction


Service.start Transaction<"Click Link">
Browser("Software Testing Tutorials").page("Software Testing Tutorials").link("text:2015").Click
Service.End Transaction<"Load Page">


1.Go to Insert-->Start Transaction
2.Enter Transaction Name

1.Go to Insert-->End Transaction
2.Enter END transaction name.

No comments:

Post a Comment