Share this page

# Create a dynamic transaction name

Create a dynamic transaction name in a TruClient script.

1. Add an Evaluate JavaScript step. In the Arguments section enter the following code to create a start transaction:

   TC.startTransaction(“MyTRX_” + TC.getParam(“paramName”));

2. Add another Evaluate JavaScript step. In the Arguments section enter following code to end the transaction:

   TC.endTransaction(“MyTRX_” + TC.getParam(“paramName”), “Auto”);

3. Add steps you would like to measure between the start and end transaction steps. In this example, you navigate to advantageonlineshopping.com:

Note: Only transactions defined in the Transaction Editor can be used to define SLAs.

Back to top

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 26.1 All View Local Help Center View Online Help Center Version: