Create a Cross-Vuser Transaction

Cross-Vuser transactions are transactions that allow you to measure the duration of a process that involves multiple Vusers.

  1. Open the Steps Toolbox (from VuGen's View menu) and manually add lr_start_cross_vuser_transaction functions at the beginning of the transactions.

  2. Drag in lr_end_cross_vuser_transaction functions to your script to mark the end of the transactions.
  3. Fill in the Transaction name and Transaction ID fields. Make sure you create a unique ID for your transaction. For guidelines, see the Cross-Vuser Transaction Overview. Note that you can parameterize the transaction ID as any other standard parameter. For details, see Create Parameters.
  4. Replay the script in VuGen to check its functionality. Check the Output log for any error messages.
  5. To run the script in the Controller, configure the post-collation settings:
    1. In the Controller, select Tools > Options and click the Execution tab.
    2. In the Post Collate Command area, enter the following string: CrossVuserTransProcess.exe "%ResultDir%". For details, see Options > Execution Tab.
  6. Run the script in the Controller. Check the Errors tab for errors.
  7. Open the results in LoadRunner Analysis. Note that the Vuser ID shown in the Analysis, is not related to the transaction ID you assigned to the cross-Vuser transaction.
  8. If you need to debug the test, refer to the crossvusertrans_error_report.txt file in the results folder. If your results folder does not contain the crossvusertrans_error_report.txt, CrossVuserTrans.exe, and files, make sure that the Post Collate Command is set properly on the machine (described above).

Back to top

See also:

Got it!
Welcome to the help center for LoadRunner Professional, formerly known as LoadRunner. LoadRunner Professional is part of the new Micro Focus LoadRunner family of performance testing products.