Web test of JMeter (i)

Source: Internet
Author: User

Jmeter 's download address: http://jakarta.apache.org/jmeter/usermanual/index.html

Features of the JMeter:

A) ability to perform stress and performance tests on HTTP and FTP servers, as well as test any database (via JDBC).

b) Full portability and 100% pure java.

c) Full Swing and lightweight component support (precompiled jar with 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) can be linked to the sampler allows unrestricted testing 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).

Above excerpt from: http://www.ltesting.net/ceshi/open/kyxncsgj/jmeter/2013/0517/206265.html

(1) Script recording:

Script recording with Badboy, the official website (http://www.badboy.com.au) Download the latest version of Badboy;

To start Badboy, you can see the following interface:

In the Address bar (the section labeled red in the figure), enter the url--of the Web app you want to record here we take http://www.baidu.com as an example;

The recorded script is not a line of code, but a Web object--a bit like the tree view in LoadRunner's Vugen;

When the recording is complete, click the Stop Recording button in the toolbar (the section marked in the Purple box in the figure) to complete the recording of the script;
Select the file-, export to JMeter menu, fill in the filename "script.jmx", and export the recorded script to the JMeter script format. You can also choose the "File--Save" menu to save as a badboy script;

(2) test with JMeter:

Start JMeter and open the test script you just generated, you can test it with jmeter;

Open JMeter will have a default test plan, click File-Open, select the recorded script file such as: LOGIN.JMX (reused Badboy software to record a company's web system, save the script), 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.

The aggregation report shows the test results: Label: Each JMeter element (for example, HTTP Request) has a name attribute, which shows the value of the Name property
#Samples: Indicates how many requests you have made in this test, and if the test plan simulates 10 users, each user iterates 10 times, this will show 100
Average: Average response time-by default is the average response time for a single Request, and when a transaction controller is used, the average response time can also be displayed in transaction units
Median: Median, which is 50 user response time
90% line:90% User response time
Min: Minimum response time
Max: Maximum response time
error%: Error rate, number of requests with errors in this test/total number of requests
Throughput: Throughput--By default, indicates the number of requests completed per second (request per Second)
Kb/sec: The amount of data received from the server side per second

Web test of JMeter (i)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.