这是一片翻译文章,非全文翻译,只是提取重要信息
来自jmeter的源码项目
这次总结提到前面来:
1.JMeter是一个接口工具,除了常规的接口验证,也提供多鲜橙并发验证,也就是性能了
2.支持多种协议
3.图形化界面,多种结果输出,还支持远程连接
4.也可以自定义定制jar工具包,直接开发jar包就完成了 :) (参考http://jingyan.baidu.com/article/e9fb46e17e35707520f76647.html?qq-pf-to=pcqq.c2c)
A P A C H E J M E T E R
What is it?
Apache JMeter is a 100% pure Java application designed to test
and measure performance. It may be used as a highly portable
server benchmark as well as multiclient load generator.
jmeter是100%纯java写的应用,用来做接口/性能测试的
Apache JMeter features include:
特性有:
Ability to load and performance test many different server/protocol types:
o Web - HTTP, HTTPS
o SOAP / REST
o FTP
o Database via JDBC
o LDAP
o Message-oriented Middleware (MOM) via JMS
o Mail - SMTP(S), POP3(S) and IMAP(S)
o Native commands or shell scripts
o TCP
支持不同的服务和协议类型,包括下面这些:
o Web - HTTP, HTTPS
o SOAP / REST
o FTP
o Database via JDBC
o LDAP
o Message-oriented Middleware (MOM) via JMS
o Mail - SMTP(S), POP3(S) and IMAP(S) 这条可以关注,可以发邮件是不 :)
o Native commands or shell scripts 这条重点关注
o TCP
Full multithreading framework allows concurrent sampling by many threads
and simultaneous sampling of different functions by separate thread groups.
Careful GUI design allows faster Test Plan building and debugging.
Caching and offline analysis/replaying of test results.
Highly Extensible core:
o Pluggable Samplers allow unlimited testing capabilities.
o Several load statistics may be chosen with pluggable timers .
o Data analysis and visualization plugins allow great extensibility as well as personalization.
o Functions can be used to provide dynamic input to a test or provide data manipulation.
o Scriptable Samplers (BeanShell, BSF- and JSR223- compatible languages)
多线程框架允许并发执行多任务,允许一次运行多个多线程的线程组(简单理解就是一起跑任务),采用图形界面,以便更好得去写用例和调试。运行完可以对结果进行分析和回放。
良好的扩展性:
o 插入配置单元去测试
o 不同类型的统计系统(这段有点看不懂)
o 数据分析和可视化的插件提供个性化的扩展性
o 一些函数提供动态输入测试文本或者数据伪造(这是fiddler?)
o 脚本化的用例 (BeanShell, BSF- and JSR223- compatible languages)
The Latest Version
Details of the latest version can be found on the Java Apache
Project web site (http://jmeter.apache.org/).
Requirements
The following requirements exist for running Apache JMeter:
o Java Interpreter:
A fully compliant Java 7 (or later) Runtime Environment is required
for Apache JMeter to execute.
o Optional jars:
Some jars are not included with JMeter.
If required, these should be downloaded and placed in the lib directory
JDBC - available from database supplier
JMS - available from the JMS provider
o Java Compiler [OPTIONAL]:
A Java compiler is not needed since the distribution includes a
precompiled Java binary archive. Note that a compiler is required
if you plan to build plugins for Apache JMeter.
Installation Instructions
Note that spaces in directory names can cause problems.
Release builds
Unpack the binary archive into a suitable directory structure.
Nightly builds (Be aware that these have not been reviewed or tested)
Unpack BOTH the _bin and _lib archives into the SAME directory structure
Running JMeter
运行jmeter
Change to the bin directory
Run the jmeter (Un*x) or jmeter.bat (Windows) file.
cd 到jmeter/bin目录,win直接运行.bat文件,linux直接运行jmeter
For Windows there are also some other scripts.
Drag-drop a JMX file onto one of them:
对于win环境还有几个扩展脚本:
jmeter-n.cmd - runs the file as a non-GUI test
jmeter-n-r.cmd - runs the file as a non-GUI remote (client-server) test
jmeter-t.cmd - loads the file ready to run it as a GUI test
jmeter-n.cmd - 非GUI模式运行
jmeter-n-r.cmd - 非GUI的远程模式执行
jmeter-t.cmd - GUI模式运行
Documentation
The documentation available as of the date of this release is
also included, in HTML format, in the printable_docs/ directory,
and it may be browsed starting from the file called index.html.
Build instructions
Release builds
Unpack the source archive into a suitable directory structure.
Most of the 3rd party library files can be extracted from the binary archive
by unpacking it into the same directory structure.
You can also use Ant to download the required library files:
ant download_jars
Nightly builds
Unpack the _src, _bin and _lib archives into the same directory structure.
Please note:
To avoid unnecessary duplication, the nightly source archives do not contain
the source files which are needed to run JMeter (for example properties files and scripts).
这里说的是为了避免不必要的构建,每日构建只会提供一些jar文件
Any optional jars (see above) should be placed in lib/opt and/or lib.
你只需要直接复制到lib或者lib/opt目录下就好了(是不是意味这核心源码在这里面呢,也就是二次改造的时候直接打包jar文件就ok了,待验证)
Jars in lib/opt will be used for building JMeter and running the unit test,
but won’t be used at run-time.
[This is useful for testing what happens if the optional jars are not
downloaded by other JMeter users].
JMeter is built using Ant.
Change to the top-level directory and issue the command:
ant download_jars ! only needs to be done once;
will download any missing 3rd party jars
ant
This will compile the application and enable you to run jmeter from the bin
directory.
ant test [-Djava.awt.headless=true]
This will compile and run the unit tests.
The optional property definition is required if the system
does not have a suitable GUI display.
Developer information
The code is maintained in SVN at https://svn.apache.org/repos/asf/jmeter/trunk
There is a read-only mirror at GitHub: https://github.com/apache/jmeter
Licensing and legal issues
For legal and licensing issues, please look the files:
LICENSE
NOTICE
This distribution may include software that has been designed for use
with cryptographic software. The country in which you currently reside
may have restrictions on the import, possession, use, and/or re-export
to another country, of encryption software. BEFORE using any encryption
software, please check your country’s laws, regulations and policies
concerning the import, possession, or use, and re-export of encryption
software, to see if this is permitted. See http://www.wassenaar.org/
for more information.
The U.S. Government Department of Commerce, Bureau of Industry and
Security (BIS), has classified this software as Export Commodity
Control Number (ECCN) 5D002.C.1, which includes information security
software using or performing cryptographic functions with asymmetric
algorithms. The form and manner of this Apache Software Foundation
distribution makes it eligible for export under the License Exception
ENC Technology Software Unrestricted (TSU) exception (see the BIS
Export Administration Regulations, Section 740.13) for both object
code and source code.
The following provides more details on the included software that
may be subject to export controls on cryptographic software:
Apache JMeter interfaces with the
Java Secure Socket Extension (JSSE) API to provide
- HTTPS support
Apache JMeter interfaces (via Apache HttpClient3) with the
Java Cryptography Extension (JCE) API to provide
- NTLM authentication
Apache JMeter does not include any implementation of JSSE or JCE.
Thank you for using Apache JMeter.