当前位置:网站首页>day14--postman interface test
day14--postman interface test
2022-08-05 00:58:00 【Ning Mang】
1. Ordinary GET type interface

2. POST interface with parameter k=v

3. POST interface with json parameter

4. POST interface with parameter k=json

5. Assertion
6. Dynamic parameters
{{$timestamp}}: Generate timestamp of current time{{$randomInt}}: Generate random numbers from 0 to 1000{{$guid}}: Generate random guid string
7. Batch execution of use cases

8. Data driven
1) Create a .txt file and fill in the parameters

2) In postman, change the value in key-value to {{variable name in the file}} format, in the post-processor tests, use the value of the data file in the assertion: data.field name


3) Use batch run

4) Run to see the results

9. Encryption and decryption of interfaces
1) Symmetric encryption method: Base64, DES and AES are not commonly used (already eliminated) 

2) Asymmetric encryption method (dual key): RSA encryption
Introduction: Double key generated by a password, public key encryption, private key decryption
3) Only encrypt but not decrypt: MD5,SHA1,SHA2,SHAN...
10. Interface MOCK
1) The first step:

2) Step 2:

3) Click the URL to enter the mock interface page
4) Click send to get the returned body

边栏推荐
- Software Testing Interview Questions: What do test cases usually include?
- 【FreeRTOS】FreeRTOS与stm32内置堆栈的占用情况
- GCC:编译时库路径和运行时库路径
- Software testing interview questions: What is the difference between load testing, capacity testing, and strength testing?
- B站7月榜单丨飞瓜数据B站UP主排行榜发布!
- Pytorch usage and tricks
- 软件测试面试题:软件测试类型都有哪些?
- canvas Gaussian blur effect
- 2021年11月网络规划设计师上午题知识点(下)
- ORA-01105 ORA-03175
猜你喜欢

硬实力和软实力,哪个对测试人来说更重要?

JUC线程池(一): FutureTask使用

动态规划/背包问题总结/小结——01背包、完全背包

深度学习原理学习小结 - Self-Attention/Transformer

linux(centOs7)部署mysql(8.0.20)数据库

自定义线程池

Inter-process communication and inter-thread communication

QSunSync Qiniu cloud file synchronization tool, batch upload

Helm Chart

Gartner Hype Cycle:超融合技术将在2年内到达“生产力成熟期”
随机推荐
tiup telemetry
从一次数据库误操作开始了解MySQL日志【bin log、redo log、undo log】
行业现状?互联网公司为什么宁愿花20k招人,也不愿涨薪留住老员工~
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
面试汇总:为何大厂面试官总问 Framework 的底层原理?
How DHCP works
2022 Hangzhou Electric Power Multi-School Session 3 K Question Taxi
JWT简单介绍
PCIe 核配置
"WEB Security Penetration Testing" (28) Burp Collaborator-dnslog out-band technology
(十七)51单片机——AD/DA转换
torch.autograd.grad finds the second derivative
BC(转)[js]js计算两个时间相差天数
Software Testing Interview Questions: What aspects should be considered when designing test cases, i.e. what aspects should different test cases test against?
MongoDB搭建及基础操作
Pytorch使用和技巧
linux(centOs7)部署mysql(8.0.20)数据库
Jin Jiu Yin Shi Interview and Job-hopping Season; Are You Ready?
GCC:头文件和库文件的路径
软件测试面试题:BIOS, Fat, IDE, Sata, SCSI, Ntfs windows NT?
