当前位置:网站首页>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

边栏推荐
猜你喜欢
随机推荐
JUC线程池(一): FutureTask使用
2021年11月网络规划设计师上午题知识点(下)
D - I Hate Non-integer Number (count of selected number dp
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
硬实力和软实力,哪个对测试人来说更重要?
僵尸进程和孤儿进程
【机器学习】21天挑战赛学习笔记(二)
pytorch的使用:使用神经网络进行气温预测
配置类总结
码率vs.分辨率,哪一个更重要?
仅3w报价B站up主竟带来1200w播放!品牌高性价比B站投放标杆!
2022 Nioke Multi-School Training Session 2 J Question Link with Arithmetic Progression
Software Testing Interview Questions: What do test cases usually include?
GCC:头文件和库文件的路径
oracle create tablespace
2022 Hangzhou Electric Multi-School 1004 Ball
ORA-00604 ORA-02429
matlab 采用描点法进行数据模拟和仿真
Zombie and orphan processes
CNI(Container Network Plugin)





![Binary tree [full solution] (C language)](/img/4d/2d81dc75433c23c5ba6b31453396f0.png)




