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

三、返回参数
返回参数是发送请求后,才会有响应的,查看返回的参数,看raw下的数据,主要看返回code,以及data,以及data的结构
边栏推荐
- X Book 6.89 shield unidbg calling method
- Redis high concurrency distributed locks (learning summary)
- Redis中的Hash设计和节省内存数据结构设计
- [summary of skimming questions] database questions are summarized by knowledge points (continuous update / simple and medium questions have been completed)
- 【常见问题】页面跨域和接口跨域
- 声网自研传输层协议 AUT 的落地实践丨Dev for Dev 专栏
- (03).NET MAUI实战 基础控件
- yarn的安装和使用
- Analysis of similarities and differences of various merged features (Union, merge, append, resolve) in ArcGIS
- unity input system 使用记录(实例版)
猜你喜欢

【笔记】2022.6.7 数据分析概论

解决navicat连接数据库遇到的问题
![[punch in - Blue Bridge Cup] day 3 --- slice in reverse order list[: -1]](/img/c2/13693dcb51aab565957b6c5e686b7c.jpg)
[punch in - Blue Bridge Cup] day 3 --- slice in reverse order list[: -1]

声网自研传输层协议 AUT 的落地实践丨Dev for Dev 专栏
![[ten minutes] manim installation 2022](/img/54/7b895d785c7866271f06ff49cb20aa.png)
[ten minutes] manim installation 2022

【笔记】AB测试和方差分析

dbt产品初体验

A GPU approach to particle physics
![[note] on May 27, 2022, MySQL is operated through pychart](/img/34/36a3765683b2af485ca7c3e366da59.png)
[note] on May 27, 2022, MySQL is operated through pychart

Tidb 6.0: making Tso more efficient tidb Book rush
随机推荐
[punch in - Blue Bridge Cup] day 3 --- slice in reverse order list[: -1]
Neo4j--- performance optimization
[operation] MySQL query operation 2 on May 25, 2022
Usage record of unity input system (instance version)
C#【高级篇】 C# 多线程
Implementation of property management system with ssm+ wechat applet
SDS understanding in redis
巧用 Bitmap 实现亿级海量数据统计
Radiant energy, irradiance and radiance
【笔记】2022.5.23 MySQL
【作业】2022.5.28 将CSV写入数据库
[operation] MySQL query on May 24, 2022
【笔记】2022.5.28 从网页获取数据并写入数据库
[Note] ab Test and Variance Analysis
Ubuntu20.04 PostgreSQL 14 installation configuration record
Is the largest layoff and salary cut on the internet coming?
[punch in - Blue Bridge Cup] day 5 --- lower() small
ThingsBoard教程(二三):在规则链中计算二个设备的温度差
Version correspondence table of tensorflow, CUDA and bazel
(03).NET MAUI实战 基础控件