Record pressure scripts with JMeter Proxy server and get rid of badboy that only supports IE

Source: Internet
Author: User
Tags http cookie

From LoadRunner to JMeter, the recording stress test script seems to support IE only recently, only to know that JMeter also has its own recording script element, and supports 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. View the recording results, there are many. js,. gif files in the recorded script, these files are not needed and are not recorded. So when you set up a proxy recording,

Files in these formats can be excluded to streamline the script and facilitate debugging

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 solve this problem, add the HTTP COOKIE Manager manager and the HTTP CACHE manager two components, 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 ...

Record pressure scripts with JMeter Proxy server and get rid of badboy that only supports IE

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.