📄 get-started.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>JMeter - User's Manual: Getting Started</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#525D76">
<table border="0" cellspacing="0">
<tr>
<td colspan="2">
<a href="http://jakarta.apache.org"><img width="505" height="48" src="../../docs/images/jakarta-logo.gif" align="left" border="0"></a>
</td>
</tr>
</table>
<table border="0" cellspacing="4">
<tr><td>
<hr noshade size="1">
</td></tr>
<tr>
<td align="left" valign="top">
<table>
<tr>
<td bgcolor="#525D76">
<div align="right"><a href="index.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Index</font></a></div>
</td>
<td bgcolor="#525D76">
<div align="right"><a href="build-test-plan.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Next</font></a></div>
</td>
<td bgcolor="#525D76">
<div align="right"><a href="intro.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Prev</font></a></div>
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="get_started"><strong>2. Getting Started</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
The easiest way to begin using JMeter is to first
<a href="http://jakarta.apache.org/site/downloads/index.html">
download the latest production release
</a>
and install it.
The release contains all of the files you need to build and run most types of tests,
e.g. Web (HTTP/HTTPS), FTP, JDBC, LDAP, Java, and JUnit.
</p>
<p>
If you want to perform JDBC testing,
then you will, of course, need the appropriate JDBC driver from your vendor. JMeter does not come with
any JDBC drivers.
</p>
<p>
Other software that you may need to download:
<ul>
<li>
<a href="http://www.beanshell.org/">
BeanShell
</a>
- needed for the BeanShell function and test elements
</li>
<li>
<a href="http://java.sun.com/products/javabeans/glasgow/jaf.html">
Java Activation Framework
</a>
- needed for JavaMail
</li>
<li>
<a href="http://java.sun.com/products/javamail/index.jsp">
Java Mail
</a>
- needed for Mail Visualiser, Mail Reader and WebService(SOAP) sampler
</li>
<li>
<a href="http://java.sun.com/products/jms/docs.html">
JMS
</a>
- for JMS samplers
</li>
<li>
<a href="http://java.sun.com/downloads/">
General Java download page
</a>
</li>
</ul>
</p>
<p><table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
See the
<a href="#classpath">
JMeter Classpath
</a>
section for details on installing additional jars.
</td></tr>
</table></p>
<p>
Next, start JMeter and go through the
<a href="build-test-plan.html">
Building a Test Plan
</a>
section
of the User Guide to familiarize yourself with JMeter basics (for example, adding and removing elements).
</p>
<p>
Finally, go through the appropriate section on how to build a specific type of Test Plan.
For example, if you are interested in testing a Web application, then see the section
<a href="build-web-test-plan.html">
Building a Web Test Plan
</a>
.
The other specific Test Plan sections are:
<ul>
<li>
<a href="build-adv-web-test-plan.html">
Advanced Web Test Plan
</a>
</li>
<li>
<a href="build-db-test-plan.html">
JDBC
</a>
</li>
<li>
<a href="build-ftp-test-plan.html">
FTP
</a>
</li>
<li>
<a href="build-jms-point-to-point-test-plan.html">
JMS Point-to-Point
</a>
</li>
<li>
<a href="build-jms-topic-test-plan.html">
JMS Topic
</a>
</li>
<li>
<a href="build-ldap-test-plan.html">
LDAP
</a>
</li>
<li>
<a href="build-ldapext-test-plan.html">
LDAP Extended
</a>
</li>
<li>
<a href="build-ws-test-plan.html">
WebServices (SOAP)
</a>
</li>
<li>
</li>
</ul>
</p>
<p>
Once you are comfortable with building and running JMeter Test Plans, you can look into the
various configuration elements (timers, listeners, assertions, and others) which give you more control
over your Test Plans.
</p>
</blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="requirements"><strong>2.1 Requirements</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
JMeter requires your computing environment meets some minimum requirements.
</p>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="java_versions"><strong>2.1.1 Java Version</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p><table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>JMeter requires a fully compliant JVM 1.4 or higher.
<br>
</br>
Version 2.2 and later no longer support Java 1.3.
</td></tr>
</table></p>
<p>
Because JMeter uses only standard Java APIs, please do not file bug reports if your JRE fails to run
JMeter because of JRE implementation issues.
</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="os"><strong>2.1.2 Operating Systems</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
JMeter is a 100% Java application and should run correctly on any system
that has a compliant Java implementation.
<br>
</br>
JMeter has been tested and works under:
</p>
<ul>
<li>
Unix (Solaris, Linux, etc)
</li>
<li>
Windows (98, NT, XP, etc)
</li>
<li>
OpenVMS Alpha 7.3+
</li>
</ul>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
</blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="optional"><strong>2.2 Optional</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
If you plan on doing JMeter development or want to use Sun's Java Standard Extension packages, then you will need one or more optional packages listed below.
</p>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="opt_compiler"><strong>2.2.1 Java Compiler</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
If you want to build the JMeter source or develop JMeter plugins, then you will need a fully compliant JDK 1.4 or higher.
</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="opt_sax"><strong>2.2.2 SAX XML Parser</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
JMeter comes with Apache's
<a href="http://xml.apache.org/">
Xerces XML parser
</a>
. You have the option of telling JMeter
to use a different XML parser. To do so, include the classes for the third-party parser in JMeter's
<a href="#classpath">
classpath
</a>
,
and update the
<a href="#configuring_jmeter">
jmeter.properties
</a>
file with the full classname of the parser
implementation.
</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="opt_email"><strong>2.2.3 Email Support</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
JMeter has limited Email capabilities. It can send email based on test results, and has a POP/IMAP sampler.
It does not currently support SMTP sampling.
To enable Email support, add Sun's JavaMail packages and the activation packages to JMeter's
<a href="#classpath">
classpath
</a>
.
</p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="opt_ssl"><strong>2.2.4 SSL Encryption</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
To test a web server using SSL encryption (HTTPS), JMeter requires that an
implementation of SSL be provided, as is the case with Sun Java 1.4 and above.
If your version of Java does not include SSL support, then it is possible to add an external implementation.
Include the necessary encryption packages in JMeter's
<a href="#classpath">
classpath
</a>
.
Also, update
<a href="#configuring_jmeter">
system.properties
</a>
to register the SSL Provider.
</p>
<p>
JMeter defaults to protocol level TLS. This can be changed by editting the JMeter property
"https.default.protocol" in jmeter.properties or user.properties.
</p>
<p>
<b>
JMeter is configured to accept all certificates,
whether trusted or not, regardless of validity periods etc.
</b>
This is to allow the maximum flexibility in testing servers.
</p>
<p>
If the server requires a client certificate, this can be provided.
</p>
<p>
There is also the
<a href="../usermanual/component_reference.html#SSL_Manager">SSL Manager</a>
, for greater control of certificates.
</p>
<p><table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The JMeter proxy server (see below) does not support recording SSL (https).
</td></tr>
</table></p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="opt_jdbc"><strong>2.2.5 JDBC Driver</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
You will need to add your database vendor's JDBC driver to the
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -