Jmeter combat notes finishing

1. jdbbc request of jmeter

Database domain name: rm-uf665r5id03a3i41oo.mysql.rds.aliyuncs.com

Database Url:jdbc:mysql://ip:3306/onlyhitest
username:@
password:@@

jdbc request:select*from @ where send_phone = '@'

 

2. Badboy parameterization
1) Enter at Badboy's TRL: www.sogou.com
2) Next, process the data, add assertions, select Xiaoqiang software test, and then Tools—>Add Assertion for Selection
3) Right-click on the blank space Add Variable, add a variable
Variable name: searchtxt
Current value Enter Xiaoqiang software test Xiaoqiang
4) Change some parameter values ​​garbled
characters appear , the encoding is inconsistent, you need to change the encoding ie=utf-8 to ie=gbk
Right-click on the query, and then select properties , the value is changed to: ${searchtxt}
5) Set the number of cycles
Step1, right-click properties, select For each value of vari
6) check for text parameterization
7) Right-click Step1 –> play all, and then automatically search Xiaoqiang software test Xiaoqiang will appear
8) View test report
view –>report –>Summary report
view —> report —>Detail report
9) Finally export File->Export to Jmeter, save the script to get search.jmx

 

 

3. Analysis of csv, user-defined variables and Query Type of
Jmeter

2.variable Names (comma-delimited): variable name, this variable name is written according to the "user-defined variable", for example, the txt document contains "name, gender, age", then you can fill in the name here , sex, age. like this~

3.Delimiter (Use '\t' for tab): what to use to separate, "," means to separate with comma

4.Allow quoted data?: Default False to allow quoted data values

5.Recycle on EOF?:Ture means to cycle the value, assuming that the TXT document has only 3 pieces of data, but I want to insert 4 pieces of data, then whether to fetch these data in a loop after fetching

6.Stop thread in EOF?:False Whether to stop adding no data



When the type selects callable , it doesn't matter whether the addition, deletion and modification statements are placed in the front, or the query statement is placed in the front. data

If the type selects select (query) or update (addition, deletion and modification),
then auto also needs to select ture; selecting false in jmeter shows that the execution is successful, but no data will be added to the database, but it will occupy a row. ID location

 

If the query statement in the query is in the first line, then the type should select select;
if the addition, deletion and modification statement in the query is in the first line, then the type should select update;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324781170&siteId=291194637