当前位置:网站首页>day14--postman接口测试
day14--postman接口测试
2022-08-05 00:53:00 【宁氓】
1.普通的GET类型接口

2. 参数为k=v的POST接口

3.参数为json的POST接口

4. 参数为k=json的POST接口

5. 断言
6. 动态参数
{
{$timestamp}}:生成当前时间的时间戳
{
{$randomInt}}:生成0~1000的随机数
{
{$guid}}:生成随机的guid字符串

7. 用例的批量执行

8.数据驱动
1)创建一个.txt文件,填充参数

2) 在postman中, 将key-value中的value变为{ {文件中的变量名}}格式, 在后置处理器tests中,在断言里面取数据文件的值使用:data.字段名


3) 运用批量运行

4) 运行查看结果

9. 接口的加密和解密
1) 对称加密方式:Base64,不常用DES和AES(已经淘汰了)

2) 非对称加密方式(双钥):RSA加密
介绍:由一个密码生成的双钥,公钥加密,私钥解密
3) 只加密不解密:MD5,SHA1,SHA2,SHAN...
10. 接口MOCK
1)第一步:

2) 第二步:

3) 点击该网址进入mock接口的页面
4) 点击send, 得到返回体

边栏推荐
猜你喜欢
![[230] Execute command error after connecting to Redis MISCONF Redis is configured to save RDB snapshots](/img/fa/5bdc81b1ebfc22d31f42da34427f3e.png)
[230] Execute command error after connecting to Redis MISCONF Redis is configured to save RDB snapshots

After the staged testing is complete, have you performed defect analysis?

深度学习:使用nanodet训练自己制作的数据集并测试模型,通俗易懂,适合小白

How DHCP works

Creative code confession

Lattice PCIe Learning 1

MongoDB搭建及基础操作

JVM类加载简介

Bit rate vs. resolution, which one is more important?

【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
随机推荐
软件测试面试题:测试生命周期,测试过程分为几个阶段,以及各阶段的含义及使用的方法?
进程间通信和线程间通信
测试工作这么难找吗?今年32,失业2个月,大龄测试工程师接下来该拿什么养家?
快速批量修改VOC格式数据集标签的文件名,即快速批量修改.xml文件名
Software testing interview questions: How many types of software are there?
活动推荐 | 快手StreamLake品牌发布会,8月10日一起见证!
EL定时刷新页面中的皕杰报表实例
4. PCIe 接口时序
If capturable=False, state_steps should not be CUDA tensors
gorm joint table query - actual combat
Software Testing Interview Questions: What do you think about software process improvement? Is there something that needs improvement in the enterprise you have worked for? What do you expect the idea
The principle of NMS and its code realization
torch.autograd.grad finds the second derivative
JUC线程池(一): FutureTask使用
2022 Multi-school Second Session K Question Link with Bracket Sequence I
Activity Recommendation | Kuaishou StreamLake Brand Launch Conference, witness together on August 10!
Bit rate vs. resolution, which one is more important?
Memory Forensics Series 1
Creative code confession
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 1)
