Friday, 24 July 2015

INSERTING MEASURING TRANSACTION POINTS & PROGRAMMATIC STATEMENTS


                  Inserting the transaction points for measuring the transaction: -

                        It is a concept introduced in QTP which is used for calculating the time taken by an application to perform a specific task or the execution time of a block of statement

            To do the same QTP has provided two options

                  1.Start transaction
                  2.End transaction

            Navigation for inserting transaction points:

·       Keep the cursor in the desired location
·       Activate the menu item insert
·       Select the option start transaction
·       Specify the transaction name
·       Select one of the following option
o  Before currant step
o  After currant step
§  Click on ok







                        To avoid the above navigation one can directly type the following statements manually in the desired location
            Services.start transaction ”transaction name”
            -----------------------------------
            -----------------------------------
            ------------------------------------
            Services.end transaction ”transaction name”

            Inserting the Programmatic statements: -
                 
There are five types of programmatic statements in the V.B script
                  1.Normal statements (or) Object calls
                  2.Conditional statements
                  3.Looping statements
                  4.Comments
                  5.Utility statements

No comments:

Post a Comment