Performance Test article: Jmeter HTTP proxy record pressure script

Source: Internet
Author: User
Tags http cookie

Reprint: Http://www.cnblogs.com/chengtch/p/6067915.html from LoadRunner to JMeter, recording stress test script seems to only support IE, only recently know JMeter also has its own recording script element, and support a variety of browsers such as IE, Chrome and Firefox. Here's a record of the process of recording test scripts by JMeter HTTP proxy server.

1. Add an HTTP proxy server component to the JMeter Workbench

2. Test Plan total Add thread Group and HTTP request default, and set the server IP and port

3. Configure the Proxy server

4, configure the browser (FIREFOX) proxy Server

Open Firefox---> Open menu---> Options---> Advanced---> Network---> Settings: Select Manually configure proxy, set proxy server to native, port 8888

(The port is consistent with the settings in the JMeter proxy server)

5. Starting the proxy server in JMeter to start recording test scripts

6, according to the process to add a record in the test URL

7, viewing the recording results, the recorded script has a lot of CSS, JS, jpg and other static files, these files are not recorded. So when you set up a proxy recording,

You can exclude files in these formats to streamline the script.

8. Reconfigure the JMeter proxy server

9. Re-record the business script and get the following streamlined script:

10. Add Listener: View the result tree, play back the script, verify that the record is added successfully

The playback was not successful and the script stopped at the login screen.

11. To resolve this issue, add the HTTP COOKIE Manager management device, which will save the server to the client's SessionID into the cookie, and

Automatically loaded into the next request, so that all requests are in the same session, as follows

12. Replay again, add record successfully

13, configure the CSV data Set Config, parameterized new records (script the same directory under the new file Test.csv, the value of the configuration parameters, the parameters are separated by commas)

14. Execute the parameterized script, get the test result, cycle three times, add three records successfully

15, set the number of threads, cycles, collection points, transactions, assertions, associations and so on can perform stress testing ...

Performance Test article: Jmeter HTTP proxy record pressure script

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.