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.
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.
相关文章推荐
- Run Test Case on Spark
- How to compile and run a simple java file in jenkins on Windows
- run simple pageRank on Hadoop
- Run Test Case on Spark
- FreeRTOS run on eclipse
- The specified child already has a parent. You must call removeView() on the child's parent first.
- Install and run DB Query Analyzer 6.04 on Microsoft Windows 10
- Android 开发 Tip 4 -- You must call removeView() on the child's parent first
- SUMO使用:Vehicle '**' is not allowed to depart on any lane of its first edge.
- git rebase master First, rewinding head to replay your work on top of it... error: The following unt
- [bzoj1742][Usaco2005 nov][DP]Grazing on the Run 边跑边吃草
- Ubuntu14.04增加右键菜单=>“run_on_sh”
- UVA - 590 Always on the run
- uvaoj 10285 - Longest Run on a Snowboard 记忆化搜索
- How should I run fsck on a Linux file system
- Run Redis On Windows
- How to Install and Run a node.js App on Centos 6.4 64bit
- UVa10285 Longest Run on a Snowboard
- uva 590 Always on the run 跑路
- Howto: run several robinhood instances on multiple filesystems