Jmter interface automation practice

Sorting interfaces according to the main business process to improve the efficiency of testing and creating data;

The idea is divided into 5 steps

1. Refer to the business interface document

2. The interface in charles package analysis business collection business

3. Transfer interface in postman

4. Configure thread group in jmeter

5. Thread group layering, parameter parameterization and other optimization

Key points

HTTP header manager

Randomly generate a phone number and send a verification code

JDBC Connection Configuration: connect to the database

JDBC Request: the use of parameters; connect to the database to query the latest mobile phone number for sending verification codes

 

 Use the unique value of the parameter in http; assign variables to log in

Regular expression extractor: extract token

 

BeanShell post-processing program ${__setProperty(newtoken,${token},)} global token variable

Refer to the global token

The thread group needs to import the jia package to connect to the database

According to the thread group delay time, the interface can be controlled to execute regularly every day

Guess you like

Origin blog.csdn.net/weixin_43886221/article/details/127389888
Recommended