VuGen RTE Protocol: Autogenerate Transactions

This custom RTE function will auto generate a transaction timing
for every TE_wait_text. Paste this code into the top of your script,
or use as an include file.
Replace TE_wait_text with this function called TE_custom_wait_text
using the search and replace tool. 
int TE_custom_wait_text ( char * text, int timeout)
  int rtnCode = 0;
  char myTransName[24];
  char spacelessText[24];
  char * spacePointer; 
  memset ( spacelessText, '\0', sizeof(spacelessText)); 
    * spacePointer = '_';
  sprintf (myTransName, "Trans_%s", spacelessText); 
  lr_start_transaction( myTransName ); 
  rtnCode = TE_wait_text(text, 90); 
  lr_end_transaction (myTransName, rtnCode);

What's Next?

Did you enjoy this article? Help spread the word by sharing:

Join the Northway Navigator Club today and get access to restricted content including our best tips and tricks. Membership is free! You will also receive free email updates by registering.

Engage in the conversation and leave a comment:

Scott Moore

About Scott Moore (153 articles)

With over 20 years of IT experience with various platforms and technologies, Scott has tested some of the largest applications and infrastructures in the world. He is a Certified Instructor and Certified Product Consultant in HP’s LoadRunner and Performance Center products. He currently holds HP certifications for ASE, ASC, and CI. A thought leader in the APM space, he speaks regularly at IT conferences and events