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


边栏推荐
- 2022 Nioke Multi-School Training Session 2 J Question Link with Arithmetic Progression
- 10年测试经验,在35岁的生理年龄面前,一文不值
- Theory of Software Fundamentals
- node uses redis
- Software testing interview questions: What are the seven-layer network protocols?
- 软件测试技术之最有效的七大性能测试技术
- 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?
- 【七夕如何根据情侣倾听的音乐进行薅羊毛】背景音乐是否会影响情侣对酒的选择
- 2022杭电多校训练第三场 1009 Package Delivery
- Software Testing Interview Questions: What Are the Types of Software Testing?
猜你喜欢

Matlab uses plotting method for data simulation and simulation

MongoDB construction and basic operations

阶段性测试完成后,你进行缺陷分析了么?

动态规划/背包问题总结/小结——01背包、完全背包
![[FreeRTOS] FreeRTOS and stm32 built-in stack occupancy](/img/33/3177b4c3de34d4920d741fed7526ee.png)
[FreeRTOS] FreeRTOS and stm32 built-in stack occupancy

方法重写与Object类

仅3w报价B站up主竟带来1200w播放!品牌高性价比B站投放标杆!

【七夕如何根据情侣倾听的音乐进行薅羊毛】背景音乐是否会影响情侣对酒的选择

Memory Forensics Series 1

sqlite--nested exception is org.apache.ibatis.exceptions.PersistenceException:
随机推荐
Software Testing Interview Questions: What's the Key to a Good Test Plan?
GCC:头文件和库文件的路径
Lattice PCIe Learning 1
软件测试面试题:测试生命周期,测试过程分为几个阶段,以及各阶段的含义及使用的方法?
2022 Nioke Multi-School Training Session H Question H Take the Elevator
创意代码表白
Software Testing Interview Questions: What's the Difference Between Manual Testing and Automated Testing?
工具类总结
BC(转)[js]js计算两个时间相差天数
Dynamic Programming/Knapsack Problem Summary/Summary - 01 Knapsack, Complete Knapsack
If capturable=False, state_steps should not be CUDA tensors
Memory Forensics Series 1
2022牛客多校训练第二场 H题 Take the Elevator
Software Testing Interview Questions: Qualifying Criteria for Software Acceptance Testing?
【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
Kubernetes 网络入门
安装oracle11的时候为什么会报这个问题
tensor.nozero(),面具,面具
硬实力和软实力,哪个对测试人来说更重要?
pytorch的使用:卷积神经网络模块