mcs-lite-jmeter-test
所属分类:collect
开发工具:XSLT
文件大小:0KB
下载次数:0
上传日期:2017-11-02 08:46:08
上 传 者:
sh-1993
说明: 使用Jmeter脚本进行API功能测试和服务器负载稳定性测试,
(User Jmeter script to do API functional testing and server load stability testing,)
文件列表:
.travis.yml (3973, 2017-11-02)
LICENSE (1058, 2017-11-02)
PerformanceTest_lite.jmx (225081, 2017-11-02)
PerformanceTest_lite_readonly.jmx (168789, 2017-11-02)
PerformanceTest_lite_ws.jmx (176852, 2017-11-02)
PerformanceTest_lite_ws_2.jmx (158976, 2017-11-02)
PerformanceTest_websocket_write_jmeter3.jmx (124032, 2017-11-02)
SmokeTest_lite.jmx (219019, 2017-11-02)
build.xml (6851, 2017-11-02)
clean.sh (38, 2017-11-02)
jmeter-results-detail-report_3.xsl (14129, 2017-11-02)
jmeter.properties (47765, 2017-11-02)
parse_result.sh (743, 2017-11-02)
# mcs-lite-jmeter-test
Use JMeter script to do API functional testing and server load/stability testing
## Setup Environment
1. To install [JMeter 2.13](https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-2.13.zip).
2. To install the following JMeter plugins
* [Throughput Shaping Timer](https://jmeter-plugins.org/wiki/ThroughputShapingTimer/)
* [3 Basic Graphs](https://jmeter-plugins.org/wiki/TransactionsPerSecond/)
* [Servers Performance Monitoring](https://jmeter-plugins.org/wiki/PerfMon/)
* [WebSocket Sampler by Maciej Zaleski](https://github.com/maciejzaleski/JMeter-WebSocketSampler/wiki)
All the plugins can all be managed by [Jmeter Plugins Manager](https://jmeter-plugins.org/wiki/PluginsManager/).
3. To extend JMeter library support for JSON by adding 3 minimal-json-0.9.4*.jar files from [minimal-json](https://github.com/ralfstx/minimal-json/releases) to ${JMeterRoot}/lib/ext folder.
## Get Started
1. Launch ApacheJMeter.jar, which is under ${JMeterRoot}/bin folder.
2. Open the test script in JMeter and modify the user variable, **envVariables_local**, to fit your test environment.
### Functional Testing
The test cases are in **SmokeTest_lite.jmx**.
You can see the test result in **View Results Tress**.
### Load/Capacity Testing
The test cases are in **PerformanceTest_lite.jmx**.
You can see the test result in **Transaction per Second** and **PerfMon Metric Collector**.
Suggest to execute this performance test script in non-GUI mode with command
```
${JMeterRoot}/bin/jmeter -n -t PerformanceTest_lite.jmx -l LogFile.jtl
```
Here are some userful practices while doing performance testing via JMeter: [9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure](https://www.blazemeter.com/blog/9-easy-solutions-jmeter-load-test-%E2%80%9Cout-memory%E2%80%9D-failure)
近期下载者:
相关文件:
收藏者: