当前位置:网站首页>接口测试--如何分析一个接口?
接口测试--如何分析一个接口?
2022-06-30 03:41:00 【晚风吹儿】
前言
分析接口,如何入手?
首先了解接口的基本构成,一般接口的构成如下:
1、请求url
2、请求方法
3、请求参数
4、返回参数
一、请求地址
如下,我抓包了一个接口,来看请求地址部分,在fiddler里,这个位置的参数,就是接口的请求url,那么我们做接口测试的时候,直接复制这个url即可
二、请求参数
查看抓到的接口,先看请求方法,在请求url前面,再看传参的Content-Type: 如是application/json,则传入json类型,再看请求体的内容,也就是请求参数

三、返回参数
返回参数是发送请求后,才会有响应的,查看返回的参数,看raw下的数据,主要看返回code,以及data,以及data的结构
边栏推荐
- Learning cyclic redundancy CRC check
- What does the hyphen mean for a block in Twig like in {% block body -%}?
- Global and Chinese markets for advanced wound care 2022-2028: Research Report on technology, participants, trends, market size and share
- 【作业】2022.5.24 MySQL 查操作
- (04).NET MAUI实战 MVVM
- 4-4 beauty ranking (10 points)
- 巧用 Bitmap 实现亿级海量数据统计
- Analysis of similarities and differences of various merged features (Union, merge, append, resolve) in ArcGIS
- Buffer pool of MySQL notes
- The 5-year Android development interview took 20 days to join Alibaba
猜你喜欢
![[punch in - Blue Bridge Cup] day 4--------- split ('') cannot be used. There is a space after the last number of test cases. Split ()](/img/00/3793a236ee37085cb47dbfa1f0dbff.jpg)
[punch in - Blue Bridge Cup] day 4--------- split ('') cannot be used. There is a space after the last number of test cases. Split ()

Half a year after joining the company, I was promoted to a management post

1151_ Makefile learning_ Static matching pattern rules in makefile
![[note] Introduction to data analysis on June 7, 2022](/img/8b/9119bfdd10227f5c29ca2ece192880.png)
[note] Introduction to data analysis on June 7, 2022

Number of students from junior college to Senior College (III)

Mysql性能优化(5):主从同步原理与实现

Stc89c52/90c516rd/89c516rd ADC0832 ADC driver code

Buffer pool of MySQL notes

华为云原生——数据开发与DataFactory

关于智能视觉组上的机械臂
随机推荐
[Note] ab Test and Variance Analysis
Integrating viewbinding and viewholder with reflection
巧用 Bitmap 实现亿级海量数据统计
Are you a "social bull" or a "social terrorist" in the interview?
[summary of skimming questions] database questions are summarized by knowledge points (continuous update / simple and medium questions have been completed)
Utilisation de foreach en Qt
TiDB 6.0:讓 TSO 更高效丨TiDB Book Rush
What does the hyphen mean for a block in Twig like in {% block body -%}?
C#【高级篇】 C# 接口(Interface)
Redis在windows系统中使用
【笔记】2022.5.27 通过pycharm操作MySQL
共124篇!墨天轮“高可用架构”干货文档分享(含Oracle、MySQL、PG)
C#【高级篇】 C# 多线程
11: I came out at 11:04 after the interview. What I asked was really too
C [advanced] C interface
[note] on May 27, 2022, MySQL is operated through pychart
华为云原生——数据开发与DataFactory
解决navicat连接数据库遇到的问题
Learning cyclic redundancy CRC check
C#【高级篇】 C# 泛型(Generic)【需进一步补充:泛型接口、泛型事件的实例】