Article From:https://www.cnblogs.com/yaoyuanecho/p/9080510.html

1. Interface test

 

 

Interface test, postman Jmeter function test, data from database.

The data returned by the interface are all JSON

Front end: Web page HTML css/app Android object-C page display
get Distinguish from post.
get   Browser default callgetRequest to use URL and cookie to transmit post data to body.
get   Obtain data post Get is idempotent, post is not
Transmission types, methods, common usage scenarios, advantages and disadvantages
get Only Baotou postHaving a complete request for Baotou
HTTP Request request header request body url:xxxx header transmit some additional information.
200 2The beginning of the access success 3003 is the beginning of the redirection
400 4At the beginning, it sends a request on behalf of the client with syntax errors, 403 no privileges, 404 no page.
500 5At the beginning, there are 500 exceptions on behalf of the server, 504 of the server internal exception, and the server timeout.
 
cookie  Local storage key value pair session server key value pair Cooke session:http://www.nnzhp.cn/archives/426 
By the way, Amway has a very good Jmeter plug-in.

Jmeter Install plug-in  http://www.nnzhp.cn/archives/322  

 

urlIt is displayed as the encoding format:
https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=0&rsv_idx=1&tn=baidu&wd=%E5%8D%9A%E5%AE%A2%E5%9B%AD&rsv_pq=ff8364cd0004bbcc&rsv_t=ae137%2FLDlhoX2c0nv3%2F8ELuN%2F9i3CKLWK%2B5FM6KZXBlEtEYsPt1QcQ1h8ug&rqlang=cn&rsv_enter=1&rsv_sug3=3&rsv_sug1=1&rsv_sug7=100
 
postman
cookie Administration

 

File upload

 

Two, Jmeter performance testing tools

JmeterWrite scripts

1、Modify JMeter to view the result tree random code problem:

Find the jmeter.properties file in the jmeter\bin directory and find the following sampleresult.default.encoding.

sampleresult.default.encoding=utf-8

Keeping the file and restarting JMeter can solve the problem of JMeter returning to solve the garbled problem.

Add thread group

 

Jmeter File upload

 

Timestamp: Jmeter to exactly milliseconds, how many seconds have passed from the day the computer was born?

 

User-defined variable parameterization

 

Function assistant –Rodom

 

CSV Parameterization is not written. Absolute path is read from the Jmeter bin directory by default.
HTTP CookieManager

 

Jmeter
The number of concurrent users TPS the number of processing requests per second per server response time.
Polymerization Report

 

Jmeter Connection database
Database URL : jdbc:mysql://****/jxz?characterEncoding=utf8&allowMultiQueries=true
JDBC Driver class : com.mysql.jdbc.Driver
The topic that can’t be wrapped around: About cookie and session, I have a dialogue with Baba.

There are many babies who do not understand the mechanism of token very much. I don’t know what it is.

Later knowledge points will be supplemented at any time. Welcome to our attention.

                                                                              ———Link: a handsome blogger: http://www.nnzhp.cn/’s grocery store.

 

Life is too short,do not live the same day twice    |      Always want to come, but it’s a pity that the world is impermanence

 

Link of this Article: Interface test essays

Leave a Reply

Your email address will not be published. Required fields are marked *