Hi Friends,
We have already see how to test single page in Jmeter in which we don't require HTTP Proxy server. But what if we have to test a process which include two or more click on a page and url are changing because of that.
Steps:
1 . Add :
Config Element > HTTP request default
Config Element > HTTP request default
Server Name: www.abc.com
Path: /
Timer > Guassian Random Timer
Deviation: 100
Constant Delay : 300
Listener > Summary Report
Logic Controller > Recording Controller
All the recording will come under this.
2. Workbench > Non Test Element > HTTP Proxy Server
Port :8080
Type: HTTP request
URL Patterns to exclude : .*\.jpg , .*\.png , .*\.js , .*\.jpeg etc
Donot start Http server right now.
3. Mozilla > Tools > Option > Networks > Setting
Set Manual proxy config :
HTTP Proxy:localhost port:8080
check : Use this proxy server for all products
4. Now open mozilla and go to website : www.abc.com
It shd not open as we have not started proxy server yet.
5. Now go to workbench > Http proxy server and click on START button.
Now all the http request will be captured by recorder. So simply click on few link for which you want to do load test eg Search some product name in website or go to home page and product page etc.
6. Stop the proxy server.
7. Clean the recording script means remove un necessary urls of third party etc.
8. Now go to thread group and run.
RESULT:
1. Normally we check Average load time of page as load increases.
2. Througput vs Load vs Error rate
Throughput in /sec shd increase in starting and get stable after some time and start decreasing rapidly.
In my case i searched a keyword in an ecommerce website eg "apple iphone" and got following result:
User/Sec Througput [/sec] Error Rate
1 ----------> 0.9 ----------> 0
2 ----------> 2.1 ----------> 0
4 ----------> 3.2 ----------> 0
5 ----------> 3.2 ----------> 0
6 ----------> 3 ----------> 0
7 ----------> 4.3 ----------> 0
8 ----------> 5.3 ----------> 0
10 ----------> 9.2 ----------> 0
12 ----------> 12.3 ----------> 0
16 ----------> 14.9 ----------> 0
24 ----------> 16.9 ----------> 0
40 ----------> 17.9 ----------> 0
60 ----------> 18 ----------> 0
62 ----------> 11.9 ----------> 0
64 ----------> 10.1 ----------> 0
66 ----------> 18 ----------> 0
76 ----------> 12 ----------> 0
80 ----------> 16 ----------> 0
90 ----------> 18 ----------> 0
100 ----------> 18 ----------> 0
110 ----------> 18 ----------> 0.4
120 ----------> 16 ----------> 8
130 ----------> 18 ----------> 19
200 ----------> 22 ----------> 48
400 ----------> 44 ----------> 70
800 ----------> 54 ----------> 85
So throughput keep on increasing from 0.9/sec till 54/sec but when user/sec rate is at 110 then at that point Error % start increasing means request start bouncing from server.
So i can say website is meant to handle 100 user/sec with 18/sec throughput and 0% Error rate.
Hope this blog clear few doubts!!!
Regards
Sheetal Singh
No comments:
Post a Comment