Highlighted
Absent Member.
Absent Member.
5194 views

LoadRunner Actions vs. Transactions

Jump to solution
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?
0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.. Absent Member..
Absent Member..
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.

Alan

View solution in original post

2 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..
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.

Alan

View solution in original post

Highlighted
Absent Member.
Absent Member.

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.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.