, which is used in conjunction with sampler to simulate complex request sequences.
Sampler (Sampler)-used to send various requests and perform performance tests on the basis of that request.
3. Simple exampleLet's take a simple performance test using JMeter as an example of concurrent access for a single URL.1) Set up thread groupsAfter setting up the test plan, we first set up a thread group and s
JMeter Introduction: A very good open source performance testing tool.
Advantage: You use it will find that it's a lot of advantages, of course, the point will also appear.
From the principle of the Performance tool Division:
The JMeter tool and other performance tools are completely consistent in principle, and the tool contains 4 parts:
(1) Load generators: Used to generate load, usually in a multi-th
communication between the default RMI port number, but found in the test, set to 1644 run unsuccessful, changed to 1099 after the run. Also pay attention to whether the agent's machine opened the firewall, etc. (must be turned off).
(4) Start the controller machine on the%jmeter_home%/bin/directory Jmeter.bat, select the menu "Run"-> "remote Boot" to start the agent separately, you can also directly select "Remote all start" to all the agent to start.
At this point, for
JMeter can be used to do interface, performance testing, the principle is to simulate the client to send a request to the server, the request contains two different conditions of the parameters, one is included in the URL, one is the request to send the parameters.The parameters contained in the URL, for example: Http://blog.imyalost.com/index.php/2016/11/11/jmeter
Running the JMeter test script in a non-GUI mode, the command-line mode, can significantly reduce the required system resources. Using commandsJmeter-n-T Here are some of the commands we can use when running test scripts in non-GUI mode:
-H help print out useful information and exit
-N Non-GUI mode run JMeter in non-GUI mode
-t test file, JMeter
under Test Plan. If you don't see the element and then "expand" the test plan for the tree by clicking on the test plan element.Next, you need to modify the default properties. Select the Thread Group element in the tree and if you have not already selected it. You should now see the Thread Group Control Panel in the right section of the JMeter window.Start by providing a to descriptive name for our Thread Group. In the Name field, enter
If you want to override the APDEX satisfaction threshold.jmeter.reportgenerator.apdex_satisfied_threshold=1500# parameter If you want to override the APDEX tolerance threshold.jmeter.reportgenerator.apdex_tolerated_threshold=3000# Sets the destination directory for generated HTML pages, it's better to change it for every generation# This would override the value set through-o command line option# Jmeter.reportgenerator.exporter.html.property.output_dir=/tmp/test-report# indicates which graph se
, andkey is the name of the parameter, which is the value you take in the script. Value is the exact number. When taking the parameterized value, use ${name} to get the value, name is the name of the variable you are taking. The first stepStep TwoStep Three2. Function GeneratorThe function generator can generate data with reference to certain rules, such as generating some random numbersFunction generators are commonly used in three of casesA. random number _ranmdom, you can take a random num
, the test case is of course to write our own implementation; Setuptest (Javasamplercontext context) initialization method, The Setup () Teardowntest (Javasamplercontext context) in LR-like Init and JUnit is similar to the LR End and teardown () in JUnit.
With so much to say, it's time to use the example on the Internet (http://download.csdn.net/detail/u012049463/6338227) to illustrate, create a new Java project (preferably a MAVEN project, so it's ea
tools are all done in the JMeter tool, followed by the usual steps to create an HTTP interface test.For example, right-click on "Test Plan"-"add"-"Threads (Users)" and "Thread group".For example, to set up a thread group, the thread group consists of three parameters: the number of threads, the length of preparation (ramp-up Period (in seconds)), and the number
Apachejmeter.jar to start:Second, add the HTTP interface TestOur tools are all done in the JMeter tool, followed by the usual steps to create an HTTP interface test.For example, right-click on "Test Plan"-"add"-"Threads (Users)" and "Thread group".For example, to set up a thread group, the thread group consists of three parameters: the number of threads, the len
://www.linuxeye.com/Linux/Linux-install-JDK.htmlWindowns installation JDK is similar to Linux under installation, this is not described here.2. Start JMeterHere is under win, the graphical interface is more convenientUnder directory Apache-jmeter-2.9\bin you can see a jmeter.bat file, double-click the file, and see the JMeter Control Panel.3. Run pre-preparationNow to stress test the linuxeye, the pressure
course, you can also set additional parameters as required. A test case example:
Package Com.example.tests;import Com.thoughtworks.selenium.*;import Org.junit.before;import org.junit.Test;import Org.junit.after;public class Selenium extends Selenesetestcase {@Beforepublic void SetUp () throws Exception {...} @Testpublic void Testselenium_test () throws Exception {...} @Afterpublic void TearDown () throws Exception {Selenium.stop ();}}
continue to see below.JMeter not a lot of Chinese information, I Google a bit, I found that basically did not introduce how to use the information step-by-step. I'll tidy it up first.is probably the following aspects:
Recording scripts
Using user-defined parameters
Using the Controller
Using timers
Using a front-facing post processor
Using listeners
I am also just the entry level, so the writing out of things may be relatively simple, suitable for novice refere
interface Test our tools will be in the The Jmeter tool is completed, followed by the general steps to create an HTTP Interface Test. for example, Right-click on "test plan"-"add"-"Threads (Users) " - "thread group". For example, to set up a thread group, the thread group consists of three parameters: the number of threads, the length of preparation (ramp-up Pe
LoadRunner monitor+. Third, the test program is the client APIBecause the JMeter run consumes a large amount of resources, it is not clear whether the client API itself has short-term objects or memory leaks.After confirming that the client API itself has no concurrency problems, memory leaks, short-term object problems,The client API can add some metric data output to Excel + combine JMeter to get more a
Reprint http://www.cnblogs.com/chengtch/p/6145867.htmlJMeter is a stress test, interface test tool, Ant is a Java-based build tool that has a cross-platform role, and Jenkins is a continuous integration tool. Combine these three to build a set of WebService interface test continuous build environment.1. Install JDK, configure Java environment variables (skip) 2, install JMeter, the version used here is 2.12 (theinstallation process skipped)3. Install
large, the human judgment is inefficient, and adding "response assertion" can improve the efficiency (multiple assertions may be added when the Datum has multiple judgments).
7. View the result treeUsed to view test results.
8. Other components(1) Regular expression extractorSome of the information in a response return data can be extracted and used for subsequent operations.(2) Debug SamplerFor debugging the entire test(3) CSV Data Set ConfigA component that is parameterized by a file. (4) Sta
Jmeter is a powerful graphic interface stress testing tool. It is fully written in Java. There are many articles on the Internet about jmeter. I didn't want to write similar articles again, however, I found that some of the most critical settings and operations we will use in our tests are rarely written clearly. For example, there is a common problem: how do I p
the URL of the Web application you want to record in the address bar (marked in the red box in the figure) -- here we take the http://www.yahoo.com as an example and click the go button to start recording. If you have used commercial tools such as LoadRunner, you will not be unfamiliar with this operation. ^_^
4. after recording, you can directly operate the tested application in the embedded Badboy browser (on the right of the main interface, all op
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.