How to calculate the execution time for few steps without scripting in UFT?
Sometimes we want to find out time consumed by certain number of steps while executing in test automation scripts and we end up either by adding up time for each step or scripting using the date and time feature.
But QTP/UFT has provided a functionality called as "Transaction" which can be used to calculate the time spent between those steps.
We need to start the transaction before the first step and need to end the transaction after the last step of the set of steps which we want to analyse. Either you can write the below lines or you can insert using the QTP tool bar.
Services.StartTransaction "<user defined name>"
Services.EndTransaction "<Same name as given in start transaction>"
Below image shows how the transaction details shows in the results.
Comments
Post a Comment