Tracking Transaction Response Time in GUI Vuser

Posted: February 22nd, 2010 | Author: TnT Admin | Filed under: How-Tos | Tags: , , , | No Comments »

In our earlier post, we’ve mentioned that Quick Test Professional (QTP) scripts can be used in load testing in LoadRunner.  The scripts are developed in QTP and port into LoadRunner for usage where they are called GUI Vuser.  Executing GUI Vuser in a load test requires the GUI Vuser protocol.  One of the key features of LoadRunner scripts is the ability to track the timing of your individual transaction in the script and generally, you will want to perform the same tracking in the GUI Vuser script.

Now, if you are proficient in LoadRunner, you may miss out on the details of how to go creating the start-stop transaction for the GUI Vuser script as the details are actually found in the QTP User Manual under the section, “Measuring Transaction” of HP Quick Test Professional User Guide – Volume 2 instead of LoadRunner manual.  In anyway, this is possible and only achievable via amending the scripts in QTP because Vugen will not be able open (read) QTP scripts.

Two ways you can insert a transaction.

  • Via Keyword View – You can use Start Transaction icon > Insert Transaction at the step that you want the transaction to start measuring.   Subsequently, you will use Stop Transaction icon to stop the measurement.
  • Via Expert View – You can use Services.StartTransaction “Transaction Name” and Services.EndTransaction “Transaction Name” to encapsulate where the start and end measurement.  “Transaction Name” is the name you give to defined for the transaction and this will appear when you run the GUI Vuser script in LoadRunner.

With the above information, you should be slightly more familiar with Quick Test Professional (QTP) integrating with LoadRunner.  However, again there may be more things that need to be considered and I may have left out.  Do feel free to feedback and experiences and anything that I missed out when using QTP in load testing!

Related Posts



Leave a Reply