- JMeter Introduction
- Script recording
- Run JMeter for testing
- JMeter Main Components Introduction
- Parameterized settings
- Dynamic Data Association
- To run a jmeter script using the command line
- Parsing jmeter results files with XSLT
1:jmeter, a 100% pure Java desktop application, is the Apache organization's Open source project, which is a tool for functional and performance testing. JMeter can be used to test the performance of static or dynamic resources (files, Servlets, Perl scripts, Java objects, databases and queries, FTP servers, or other resources). The original Jmemer was designed for web/http testing, but it has been extended to support a wide variety of test modules. It is shipped with modules for HTTP and SQL databases (using JDBC). It can be used to test the operation of a static database or a server in an active database, which can be used to simulate a heavy load on a server or network system to test its resistance, or to analyze all operating conditions under different load types. It also provides a replaceable interface for customizing data display, test synchronization, and test creation and execution. JMeter: http://jakarta.apache.org/jmeter/usermanual/index.html jmeter Features: a) ability to perform stress and performance testing on HTTP and FTP servers, You can also perform the same test (through JDBC) for any database. b) Full portability and 100% pure java. c) Full Swing and lightweight components support (precompiled jar using javax.swing.*) package. D) A fully multithreaded framework allows concurrent sampling through multiple threads and simultaneous sampling of different functions through separate thread groups. E) Careful GUI design allows for fast operation and more accurate timing. f) Caching and offline analysis/playback of test results. g) High scalability: h) A linked sampler allows unrestricted test capability. i) a variety of load tables and a number of linked timers to choose from. j) data analysis and visualization plugins provide good scalability and personalization. K) has the ability to provide dynamic input to the test (including javascrīpt). L) support for scripts to become sampler (support BeanShell in 1.9.2 and later versions).
2: script recording with Badboy
Download the latest version of Badboy via Badboy's official website (http://www.badboy.com.au); Install Badboy. The installation process is no different from the general Windows application, you can see the corresponding shortcut in the Desktop and Windows Start menu after installation--if you can't find it, you can find the Badboy.exe file in the Badboy installation directory, and double-click the boot badboy directly; Start Badboy and you can see the following interface.
Select the file-, export to JMeter menu, fill in the filename "baidu.jmx", and export the recorded script to the JMeter script format. You can also choose the File-by-save menu to save as a Badboy script, start JMeter and open the test script you just generated, and test it with JMeter.
Run JMeter for testing (1)
Once the script has been recorded, you can run JMeter to perform our tests. Go to JMeter's website http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi Download the latest version of JMeter, unzip the zip file to D:/jmeter, run d:/ Jmeter/bin under the Jmeter.bat can be.
Open JMeter will have a default test plan, click File-Open, select the recorded script file such as: WEBXSAMPLE_ADDUSER.JMX, open the script to test. Add listeners on the thread Group-aggregate reports (for analyzing test results), click Run-Start, start the test, and in the aggregated report you will see the results of the test when the test is finished. A simple test plan is complete.
Web Testing with JMeter