当前位置:网站首页>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)//decryptionEncrypt 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 string4.MOCK interface

Next enter the interface name

Get the return value interface

Authentication interface

Import and export


边栏推荐
- ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExcep
- 2022 Hangzhou Electric Power Multi-School Session 3 Question L Two Permutations
- 快速批量修改VOC格式数据集标签的文件名,即快速批量修改.xml文件名
- leetcode: 267. Palindromic permutations II
- OPENWIFI实践1:下载并编译SDRPi的HDL源码
- Difference between MBps and Mbps
- linux(centOs7)部署mysql(8.0.20)数据库
- Pytorch usage and tricks
- 2022 Hangzhou Electric Multi-School Training Session 3 1009 Package Delivery
- 测试工作这么难找吗?今年32,失业2个月,大龄测试工程师接下来该拿什么养家?
猜你喜欢
随机推荐
自定义线程池
内存取证系列1
第十一章 开关级建模
D - I Hate Non-integer Number (count of selected number dp
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 2)
oracle create tablespace
如何用 Solidity 创建一个“Hello World”智能合约
4. PCIe interface timing
BC(转)[js]js计算两个时间相差天数
(十七)51单片机——AD/DA转换
Inter-process communication and inter-thread communication
Creative code confession
QSunSync Qiniu cloud file synchronization tool, batch upload
活动推荐 | 快手StreamLake品牌发布会,8月10日一起见证!
"WEB Security Penetration Testing" (28) Burp Collaborator-dnslog out-band technology
2022杭电多校训练第三场 1009 Package Delivery
FSAWS 的全球基础设施和网络
创意代码表白
2021年11月网络规划设计师上午题知识点(下)
Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!









