当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Software testing interview questions: What stages should a complete set of tests consist of?
CNI(Container Network Plugin)
Lattice PCIe 学习 1
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
2022 Multi-school Second Session K Question Link with Bracket Sequence I
The principle of NMS and its code realization
sqlite--nested exception is org.apache.ibatis.exceptions.PersistenceException:
GCC:屏蔽动态库之间的依赖
"WEB Security Penetration Testing" (28) Burp Collaborator-dnslog out-band technology
MBps与Mbps区别
torch.autograd.grad求二阶导数
如何用 Solidity 创建一个“Hello World”智能合约
linux(centOs7)部署mysql(8.0.20)数据库
ORA-00257
(十七)51单片机——AD/DA转换
5. PCIe official example
Dynamic Programming/Knapsack Problem Summary/Summary - 01 Knapsack, Complete Knapsack
第十一章 开关级建模
内存取证系列1
oracle create tablespace