Highlighted
Absent Member.
Absent Member.
182 views

LR - Total Hits vs Total Transactions

When reviewing the analysis summary, there is usually a close correlation between Total Hits and Total Transactions (almost 1 to 1). I have a test where the Total Hits is 80,000 and the Total Transactions is 5,000. Does anyone know why I would have such a huge discrepancy>
The number of Failed & Stopped transactions is minor as is the count of non http 200 responses
0 Likes
6 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: LR - Total Hits vs Total Transactions

Hi,

What is the response time for the above transactions ?
hits/sec is measured as the number of request made to the webserver.

Is the transaction giving rise to multiple requests to the server ?
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: LR - Total Hits vs Total Transactions

Respnse time is 40 secs.
I am trying to determine if any of the lr_transactions are generating multiple hits but I am not knowledgeable enough (yet) to know which commands in the scripts correspond to a hit (http response). Is there a document that we clearly state which commands relate to hits? (I will review the manuals).
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: LR - Total Hits vs Total Transactions

I would say its worth checking with the development team to understand how exactly the business process works.

Hits is generally associated with transaction response time....

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: LR - Total Hits vs Total Transactions

The following is one on the transactions in the script. The basis question would be How many Hits (or http responses) this would equate to:

lr_start_transaction("Login");


web_submit_data("Login",
"Action=https://abc.xyz.com/abc/UI/Login?.....,
"Method=POST",
"RecContentType=text/html",
"Referer=https://abc.xyz.com/abc/UI/Login?.....,
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=IDToken0", "Value=", ENDITEM,
LAST);

web_add_cookie("vvvvvvvv");

web_reg_find("Text=xxxxxxx",
LAST);

web_url("login",
"URL=https://bc.xyz.com/abc/UI/Login?.....,
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=../gc/en_US/images/menu_pop.gif", "Referer=https://bc.xyz.com/xxx/yyy.....", ENDITEM,
"Url=../gc/en_US/images/pop.gif", "Referer=https://bc.xyz.com/xxx/yyy.....", ENDITEM,
"Url=../desktop/gcimages/Internal_Link_Orange_Icon.gif", "Referer=https://bc.xyz.com/xxx/yyy.....", ENDITEM,
"Url=../gc/en_US/images/pop2.gif", "Referer=https://bc.xyz.com/xxx/yyy.....", ENDITEM,
"Url=../gc/en_US/images/i-multi-h.gif", "Referer=https://bc.xyz.com/xxx/yyy.....", ENDITEM,
"Url=../gc/en_US/images/i-multi.gif", "Referer=https://bc.xyz.com/xxx/yyy.....", ENDITEM,
"Url=../gc/en_US/images/i-edit-h.gif", "Referer=https://bc.xyz.com/xxx/yyy.....", ENDITEM,
"Url=../gc/en_US/images/i-edit.gif", "Referer=https://bc.xyz.com/xxx/yyy.....", ENDITEM,
"Url=../gc/en_US/images/i-logout.gif", "Referer=https://bc.xyz.com/xxx/yyy.....", ENDITEM,
"Url=../gc/en_US/images/i-logout-h.gif", "Referer=https://bc.xyz.com/xxx/yyy.....", ENDITEM,
LAST);


lr_end_transaction("Login", LR_AUTO);

Assuming it accounts for multiple hits, then I potentially have a bigger headache as the list of URLs after the EXTRARES, statement could actually be from another applications webserver and I have looking at the Hits per Second as applying against the webserver of the application that I am doing testing for.

If this is true, it adds complexity to the analysis of the results of PT
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: LR - Total Hits vs Total Transactions

To verify hits/sec,you may want to run the test with a single user and record the count.
If for a single user + single transaction the count is high then should be discussed with your developement team on the configuration and function call of the application
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: LR - Total Hits vs Total Transactions

Total hits per second will be always higher than the Total transactions. For eg. If you are trying to execute a function which is generated for a particular functionality, there may be more no. of hits per second to execute the function.
You can remove the Extrares in your script and it doesnt impacts the execution at all.

If you want to know how many no. of hits does the function listed in your query equate is you need http watch in order to find out the no. of hits. Just open http watch and move to the particular functionality where your function gets generated, start the watch execute it and then stop. It gives the hits count and the method type. Hope this helps.
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.