当前位置:网站首页>Day Fourteen & Postman
Day Fourteen & Postman
2022-08-05 00:58:00 【xbxbgk】
1. Batch operation of the interface & data drive
First create a collection, create the interface that needs to be run in the collection, and click run
Check the interface to be run
The left side is the batch running settings, such as the number of iterations, the interval between iterations, the selected file (Save the test data locally and run it at one timeThe data file value in the parameter is the same as the global variable, use{{}}, use the value of the data file in the assertion:data.Field name)
Select the format of the selected file
Use the corresponding { in the interface{}} corresponds to the data in the external link text, and the assertion uses data.quote
Run and get the result
2. Encryption and decryption of the interface
Encryption method base64
var username = CryptoJS.enc.Utf8.parse("admin")var base64_username = CryptoJS.enc.Base64.stringify(username)console.log(base64_username) //encryptionvar username = CryptoJS.enc.Base64.parse("YWRtaW4=")var new_username = username.toString(CryptoJS.enc.Utf8)console.log(new_username)//decryption
Encrypt the file
Decrypt the file
Encryption method that only encrypts without decryption:MD5,SHA1,SHA2,SHAN...
3. Dynamic parameters
{{$timestamp}}: Generate timestamp of current time{{$randomInt}}: Generate random numbers from 0 to 1000{{$guid}}: Generate random guid string
4.MOCK interface

Next enter the interface name
Get the return value interface
Authentication interface
Import and export
边栏推荐
- 深度学习:使用nanodet训练自己制作的数据集并测试模型,通俗易懂,适合小白
- 从一次数据库误操作开始了解MySQL日志【bin log、redo log、undo log】
- After the staged testing is complete, have you performed defect analysis?
- Kubernetes 网络入门
- JVM类加载简介
- 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
- If capturable=False, state_steps should not be CUDA tensors
- 内存取证系列1
- 3. pcie.v file
- 新唐NUC980使用记录:在用户应用中使用GPIO
猜你喜欢
随机推荐
pytorch的使用:卷积神经网络模块
执掌图表
MongoDB construction and basic operations
金九银十面试跳槽季;你准备好了吗?
GCC: compile-time library path and runtime library path
ORA-00257
自定义线程池
2022 Nioke Multi-School Training Session H Question H Take the Elevator
tiup telemetry
C# const readonly static 关键字区别
MBps与Mbps区别
软件测试面试题:软件测试类型都有哪些?
2022杭电多校训练第三场 1009 Package Delivery
torch.autograd.grad finds the second derivative
创意代码表白
Pytorch usage and tricks
蓝牙Mesh系统开发五 ble mesh设备增加与移除
深度学习原理学习小结 - Self-Attention/Transformer
如何用 Solidity 创建一个“Hello World”智能合约
pytorch的使用:使用神经网络进行气温预测