LoadRunner Practitioners Forum

LoadRunner Actions vs. Transactions

Go to solution
Testing Service
Super Contributor.

LoadRunner Actions vs. Transactions

I'm having some trouble wrapping my head around the difference between actions and transactions in LoadRunner. I realize that transactions exist within actions so that is one difference. Both can be used to measure the response time for a set of operations performed on the AUT. When should transactions be used instead of creating a new action?
Acclaimed Contributor.

Re: LoadRunner Actions vs. Transactions

I have always turned off "Automatic Transactions" "Define each action as a transaction" which on by default when a script is created.

At least as far as Web scripts go you want to time specific user actions like how long it takes to display a Web page, login, etc. So you put timers around each of these steps in your vuser_init, Action(s), vuser_end sections. If you do use actions as a transaction for some reason it is best to rename your Action section so that the times are not all lumped together in one timer named "Action_transaction" for multiple scripts.

I cannot think of a reason to use the automatic transaction. Maybe someone else has a good reason to use them.

As far as multiple Action sections that really depends on the application under test and if you want to break things out. There are some circumstances where I have used multiple but typically I only use one.

New Member.

Re: LoadRunner Actions vs. Transactions

Action is for different tasks like Login , Search . For different Page we can develop different actions and give meaningful name.

Transactions are given to measure Avergare Transaction Per Second and to find out other Key Performance Indicator (KPI)

In order to effective PT script , One should not put same transaction name in different actions.