Run first simple case on Jmeter

Part I:  How Jmeter do testing?

Jmeter records the web visiting informatin include request numbers, request data, request sequeue and responses information from server.

When we run it, Jmeter send the request include the recorded data to simulate user's work flow and check the response data with the recorded ones.

last give feedback to user.


Part II: How to run it?

1: Start jmeter.bat under \bin

2: Add a "Thread Group" by Right-Click "TestPlan"->"Add"->"Threads(users)"->"Thread Group"

Then, we can set Thread Property here, like how to run this group and how many users [in Jmeter, one thread represent one user]

3: Add "Transaction Controller" by Right-click "Thread Group"->"Add"->"Logic Controller"-> "Transaction Controller"

4: Add "HTTP request defaults" and "HTTP cookies manager" by Right-click  "Thread Group"->"Add"->"Config Element"->"HTTP request defaults"/"HTTP cookies manager" 

5. Go to WorkBench

Add "HTTP Proxy Server"

Config it:

set #3 controller as "Target Controller". 

[the target is the place the record request are added to.]

6. Start IE and check "Intert Options"->"Connections"->"LAN Settings"->"Proxy Server" and set local machine IP in address and make the port number same with the settings in #5.

7. Click "Start" in WorkBench->Proxy Server

8. Visit WebServer, do some actions on Web and close IE.

9. Stop Proxy Server under WorkBench.

10. Save the thread group and xx.jmx

Then, we can run it.

After this, we can not know what's the result. Why? Because it did not offer the result report.

Let use add "view result tree" by Right-click "thread Group"->"Add"->"Listener"->"view result tree".

Ok. It is done.

Run it again, then ,we can get the result in "view result tree" here.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值