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