您的位置:首页 > 其它

Run first simple case on Jmeter

2012-12-18 11:42 309 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: