"Go" manufacturing test data with JMeter

Source: Internet
Author: User

In the usual test process, there will be a large number of data to meet the situation, if the data itself does not have too many requirements, or the need is relatively simple, can be achieved by simple parameterization, recommend the use of Jmeter to build data.

Limit:

JMeter can only support the Java language.

JMeter itself can record scripts, but it is very cumbersome, it is recommended to record with Badboy.

1) The recording process is simple, after the recording is successful, save the script supported by JMeter, 1

Figure-1

2) then open the script with JMeter,-2

Figure-2

3) then part of the optimization of the script, remove some useless requests, leaving the footsteps of landing and new data, the script to do some parameterization, 3

Figure-3

4) ID parameter can be used counter,-4

Figure-4

5) setting of the counter,-5

Figure-5

6) JMeter can control the number of threads and cycles. The number of threads here is to increase the speed, but can not be arbitrarily added too high, too high a possibility to have problems, there will be failure things. -6, number of threads 5, Loop 20 times, 100 records will be generated.

Figure-6

7) This time the script can run, in order to be able to monitor the results of the operation, JMeter has a lot of monitors, here only one of the most common aggregation report, 7, you can see 100 executions.

Figure-7

8) run normally, check whether the record is generated, OK, generated.

9) Finally, when the HttpRequest, in the request parameters in the Chinese language when inserted into the database may be garbled, can be set with the same encoding as the database, in the HTTP request set:

"Go" manufacturing test data with JMeter

Related Article

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.