Download and install
: http://jmeter.apache.org/download_jmeter.cgi
Download release version directly, unzip to use
Run directly in MAC, Linux: JMeter file
Run: Jmeter.bat file in Windows
Environmental requirements
JVM6 or above
Operating system
Linux, MAC, Windows support, specific details please see: http://wiki.apache.org/jm
When we do the HTTP interface test, the returned data are JSON strings, JMeter itself does not support the direct processing of JSON strings, if you want to get to the value specified in the return result, it must be obtained through regular expressions, the regular expression is troublesome, the wrong way to get the value, We all know that JSON is key-value so to save value, that jmeter inside can be direc
number of 3 rows of data variables will be cleared.
You can use ${a_#}, ${a_1} ... To get the corresponding value
Example : We still use the above database, to find out all the data, test table has 3 fields, 5 records (forgotten can go back to the first step to see) 1. Add a JDBC request named "Parameter 4", add a "Debug Sampler" to view the output results, set variables name to COLUMN1,COLUMN2,COLUMN3: 2. Execution Result: Analytical: Co
, then manually execute the item under test. When the recording is complete, click the Black button next to the toolbar to end the recording. Note: The Badboy is recorded by default after startup, the red button, 2. Select "File"--export to Jmeter ... 3. Open the JMeter tool and select File--open to select the file (. JMX type) You just saved and import the file in. The recorded script must add the HTTP
the specified time, the test will be stopped.
Next to the thread group, add the sample component, we add an HTTP Request httpclient component, set the properties as follows:
Finally add the listener component: Aggregate.
Run:
Well, a simple stress test example is done. You can see some parameters of performance results from the middle of the show. Let's do a more complicated
I. Introduction of TOOLSApache JMeter is a Java-based stress testing tool developed by the Apache organization. For stress testing of software, it was originally designed for web application testing, but later extended to other test areas. It can be used to test static and dynamic resources, such as static files, Java applets, CGI scripts, Java objects, databases, FTP servers, and so on. JMeter can be used
After learning jmeter for a while, I have learned about the basic operations. Let's look back at the jmeter directory. This article gives a brief introduction to its directory.
1. Unzip jmeter and open the first-level directory, for example:
Bin: executable file directory
Docs: document directory
Extras: Ext
JmeterIntroduction
Jmeter is an open-source testing tool. Although it has many shortcomings compared with LoadRunner, for example, its result analysis capability is not detailed by LoadRunner. It also has many advantages:
Open-source: it is an open-source free software. You do not have to pay any fees to use it,
Relatively small, it is relatively large than LR (the latest lr11 is nearly 4 GB). It is very
Jmeteris a powerful graphical interfacepressure testTools, completely written in Java, about JMeter introduction, online actually have a lot ofarticle, I originally did not want to repeat the similar article, but I found that some very important, in our test will be used in some of the settings or operations rarely see the article written clearly, such as there is a common problem: how to stress test a site multiple links? Because normally, we are not
aggregate reports or Customize multiple monitoring data, you can:
Clear only clears data of the current node. Clear all data.
The test plan can be saved as follows:
As shown in the figure in this article, it is saved.
The file is an XML text file. The test plan script is stored in the file:
It can be saved and loaded. You can save a test plan and distribute it to multiple users to load the test plan script on different machines. Run the test at the same time.
Now we can customize the above a
http://eclipsesource.com/blogs/2014/06/12/parsing-json-responses-with-jmeter/Json is developed as a data interchange format in the network. In particular , Ajax and Restful architectures are used more and more widely. Apache 's JMeter is also one of the more popular stress testing tools, but it does not provide the Json Response processing of the data. In this article, if you need to extract some specific
Previous blogs have introduced the scope of components in JMeter, where the scope of the logical controller (logic Controllers) is only valid for sampler of its child nodes, and the logical controller's role is to control the order in which the samplers are executed.The JMeter provides 17 logic controllers, each of which can be divided into 2 types of use:①. Control the sequence of logical execution of the
can be used without filling in7 path: That is, the path of the page, we choose here/; The following redirection options can be checked as needed, where we keep the recording unchanged. 8 ) Parameters parameter: The parameters and files that are sent along with the path9 The following proxy server can be ignored and filled out as required. 7 , click Setup Threadgroup, modifying the number of threads and number of cycles650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8B/F5/wKiom1hc9fuT
I. What is a stress testStress testing: Test the efficiency of the system under different pressure conditions and the pressure conditions the system can withstand.Example: 5000 people at the same time to the curtain system to purchase curtains, the system speed or processing efficiency is slow or whether the system will crash.Two. Pressure test tools1. LoadRunnerLoadRunner is a load test tool that predicts the behavior and performance of the system. LoadRunner is able to test the entire enterpri
, this is obtained in the first request, and all need to add a post processor--and regular expression extractor to the first request.Now I go to Chrome to see the details of the 3rd request, and we can see that the URL of the third request becomes WS, and the parameter transport becomes websocket. And one more frames column. Frames as shown:Now we create a new WebSocket sampler to simulate the socket link. and send 2probe to the server:Add an observation tree, run to see the results of the reque
each field, please refer to the relevant instructions for the agreement)Location 3: Related settings for regular expression extraction
Reference name: The name of the variable that references the extracted value elsewhere, such as: STR, the specific reference is ${STR}
Regular expression: the regular expression for extracting content "a little attention: () means extraction, for you want to advance the content needs to be enclosed in parentheses"
Template: With $$ reference, if
and determines which element to execute by referring to the value of the subnode.
The second type is the name of the stator element, for example, the name of the sampler. If the specified name does not exist, no element is executed.
If the value is null, 1st subnode elements are executed by default.
Example:
1. The value selected by switch controller is login page.
2. Execution result:
VIII. throughpu
Add UserThe first step you want to do every JMeter test plan is to add a Thread Group element. The thread group tells JMeter the number of users you want to impersonate, how long the user should send the request, and how many requests they should send. continue adding Threadgroup elements first select the test plan, click your right mouse button Add a menu, then choose add a?? threadgroup . You should n
completed the installation of JMeter, and the following question is how to operate theis the JMeter open interface.· Add a test taskThe main example of this article is a load test scenario that simulates a multi-GET requestThe interface starts with a test plan added by default, and the following steps are also going to be built around this test plan.· Add a th
1. first go to the official website to download jmeter: http://jmeter.apache.org/download_jmeter.cgi
2. decompress the package to the directory \ apache-jmeter-5.0 \ bin find jmeter. Bat click to execute, the following interface appears:
3. then create an HTTP request to be tested to "http://www.baidu.com/s? For example
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.