当前位置:网站首页>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, 得到返回体
边栏推荐
- 【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
- 深度学习原理学习小结 - Self-Attention/Transformer
- Zombie and orphan processes
- 2022 Hangzhou Electric Multi-School Training Session 3 1009 Package Delivery
- MongoDB搭建及基础操作
- Software testing interview questions: the difference and connection between black box testing, white box testing, and unit testing, integration testing, system testing, and acceptance testing?
- LiveVideoStackCon 2022 Shanghai Station opens tomorrow!
- Bit rate vs. resolution, which one is more important?
- Activity Recommendation | Kuaishou StreamLake Brand Launch Conference, witness together on August 10!
- node uses redis
猜你喜欢
深度学习训练前快速批量修改数据集中的图片名
Theory of Software Fundamentals
DHCP的工作过程
执掌图表
创意代码表白
2022 Hangzhou Electric Power Multi-School Session 3 K Question Taxi
LiveVideoStackCon 2022 上海站明日开幕!
硬实力和软实力,哪个对测试人来说更重要?
JUC thread pool (1): FutureTask use
"WEB Security Penetration Testing" (28) Burp Collaborator-dnslog out-band technology
随机推荐
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
3. pcie.v 文件
软件测试技术之最有效的七大性能测试技术
Pytorch usage and tricks
leetcode: 267. Palindromic permutations II
Software testing interview questions: Please draw the seven-layer network structure diagram of OSI and the four-layer structure diagram of TCP/IP?
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 1)
Matlab uses plotting method for data simulation and simulation
软件测试面试题:测试生命周期,测试过程分为几个阶段,以及各阶段的含义及使用的方法?
2022牛客多校第三场 J题 Journey
2021年11月网络规划设计师上午题知识点(下)
如何用 Solidity 创建一个“Hello World”智能合约
CNI(Container Network Plugin)
Jin Jiu Yin Shi Interview and Job-hopping Season; Are You Ready?
硬实力和软实力,哪个对测试人来说更重要?
阶段性测试完成后,你进行缺陷分析了么?
僵尸进程和孤儿进程
2022 Multi-school Second Session K Question Link with Bracket Sequence I
快速批量修改VOC格式数据集标签的文件名,即快速批量修改.xml文件名
Software testing interview questions: What are the strategies for system testing?