当前位置:网站首页>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
边栏推荐
- Activity Recommendation | Kuaishou StreamLake Brand Launch Conference, witness together on August 10!
- Software testing interview questions: What is the difference between load testing, capacity testing, and strength testing?
- Software Testing Interview Questions: What Are the Types of Software Testing?
- Interview summary: Why do interviewers in large factories always ask about the underlying principles of Framework?
- ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExcep
- 创意代码表白
- oracle create user
- Zombie and orphan processes
- SV class virtual method of polymorphism
- Software testing interview questions: test life cycle, the test process is divided into several stages, and the meaning of each stage and the method used?
猜你喜欢
【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
[230] Execute command error after connecting to Redis MISCONF Redis is configured to save RDB snapshots
day14--postman接口测试
从一次数据库误操作开始了解MySQL日志【bin log、redo log、undo log】
Memory Forensics Series 1
硬实力和软实力,哪个对测试人来说更重要?
Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!
详细全面的postman接口测试实战教程
linux(centOs7)部署mysql(8.0.20)数据库
Helm Chart
随机推荐
软件测试技术之最有效的七大性能测试技术
【Redis】Linux下Redis安装
oracle create user
行业现状?互联网公司为什么宁愿花20k招人,也不愿涨薪留住老员工~
【FreeRTOS】FreeRTOS与stm32内置堆栈的占用情况
4. PCIe 接口时序
linux(centOs7)部署mysql(8.0.20)数据库
Software testing interview questions: How many types of software are there?
JUC thread pool (1): FutureTask use
主库预警日志报错ORA-00270
第十一章 开关级建模
LiveVideoStackCon 2022 上海站明日开幕!
跨域解决方案
Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!
Activity Recommendation | Kuaishou StreamLake Brand Launch Conference, witness together on August 10!
Dynamic Programming/Knapsack Problem Summary/Summary - 01 Knapsack, Complete Knapsack
QSunSync Qiniu cloud file synchronization tool, batch upload
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExcep
GCC: Shield dependencies between dynamic libraries
How DHCP works