最近需要做测试,以前也没有怎么系统地去学习过这个测试方法,所以,最近下了把狠劲,去学习了一个自动化的测试框架:Jmeter,学完之后,才发现,原来以前自己白活了,原来测试可以这么简单,高效,而且准确率还大大提高。下面我们先简要介绍一下Jmeter这个框架。
Jmeter是一个100%用java编写的自动化测试平台,它主要特点是:
Apache JMeter features include:
-
Can load and performance test many different server types:
-
Web - HTTP, HTTPS
-
SOAP
-
Database via JDBC
-
LDAP
-
JMS
-
Mail - SMTP(S), POP3(S) and IMAP(S)
-
Native commands or shell scripts
-
Complete portability and
100% Java purity
.
-
Full
multithreading
framework allows concurrent sampling by many threads and
simultaneous sampling of different functions by separate thread groups.
-
Careful
GUI
design allows faster operation and more precise timings.
-
Caching and offline analysis/replaying of test results.
-
Highly Extensible:
-
Pluggable Samplers allow unlimited testing capabilities.
-
Several load statistics may be choosen with
pluggable timers
.
-
Data analysis and
visualization plugins
allow great extensibility
as well as personalization.
-
Functions can be used to provide dynamic input to a test or provide data manipulation.
-
Scriptable Samplers (BeanShell is fully supported; and there is a sampler which supports BSF-compatible languages)
简单来说,就是Jmeter既能做功能测试,又能做压力测试,在自动化测试工具里面,还有一个鼎鼎有名的loadrunner,这个要收钱的,但是它能做的,大部分Jmeter也是能够完成的。
网上有关Jmeter的中文资料其实并不多,对Jmeter的一些具体的操作也是语焉不详,笔者也是在无数次google,baidu中滚爬,最近突然间有点灵感,决定把一些实际操作中的案例给展示出来,再接下来的博客中,笔者会以案例的形式将jmeter的使用过程写出来,供大家一起学习讨论。
阅读(15917) | 评论(0) | 转发(1) |