当前位置:网站首页>day14--postman接口测试
day14--postman接口测试
2022-08-05 00:53:00 【宁氓】
1.普通的GET类型接口
2. 参数为k=v的POST接口
3.参数为json的POST接口
4. 参数为k=json的POST接口
5. 断言
6. 动态参数
{
{$timestamp}}:生成当前时间的时间戳
{
{$randomInt}}:生成0~1000的随机数
{
{$guid}}:生成随机的guid字符串
7. 用例的批量执行
8.数据驱动
1)创建一个.txt文件,填充参数
2) 在postman中, 将key-value中的value变为{ {文件中的变量名}}格式, 在后置处理器tests中,在断言里面取数据文件的值使用:data.字段名
3) 运用批量运行
4) 运行查看结果
9. 接口的加密和解密
1) 对称加密方式:Base64,不常用DES和AES(已经淘汰了)
2) 非对称加密方式(双钥):RSA加密
介绍:由一个密码生成的双钥,公钥加密,私钥解密
3) 只加密不解密:MD5,SHA1,SHA2,SHAN...
10. 接口MOCK
1)第一步:
2) 第二步:
3) 点击该网址进入mock接口的页面
4) 点击send, 得到返回体
边栏推荐
- Memory Forensics Series 1
- 2022 Hangzhou Electric Multi-School 1004 Ball
- Software testing interview questions: What are the seven-layer network protocols?
- Interview summary: Why do interviewers in large factories always ask about the underlying principles of Framework?
- 软件测试面试题:BIOS, Fat, IDE, Sata, SCSI, Ntfs windows NT?
- 2022 Nioke Multi-School Training Session 2 J Question Link with Arithmetic Progression
- ora-01105 ora-03175
- 软件测试面试题:软件都有多少种分类?
- tiup telemetry
- DHCP的工作过程
猜你喜欢
测试工作这么难找吗?今年32,失业2个月,大龄测试工程师接下来该拿什么养家?
If capturable=False, state_steps should not be CUDA tensors
VOC格式数据集转COCO格式数据集
matlab 采用描点法进行数据模拟和仿真
[230] Execute command error after connecting to Redis MISCONF Redis is configured to save RDB snapshots
Gartner Hype Cycle:超融合技术将在2年内到达“生产力成熟期”
Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!
【FreeRTOS】FreeRTOS与stm32内置堆栈的占用情况
Inter-process communication and inter-thread communication
执掌图表
随机推荐
sqlite--nested exception is org.apache.ibatis.exceptions.PersistenceException:
硬实力和软实力,哪个对测试人来说更重要?
Jin Jiu Yin Shi Interview and Job-hopping Season; Are You Ready?
4. PCIe 接口时序
Inter-process communication and inter-thread communication
从一次数据库误操作开始了解MySQL日志【bin log、redo log、undo log】
QSunSync Qiniu cloud file synchronization tool, batch upload
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?
10年测试经验,在35岁的生理年龄面前,一文不值
gorm joint table query - actual combat
3. pcie.v file
EL定时刷新页面中的皕杰报表实例
D - I Hate Non-integer Number (count of selected number dp
2022杭电多校第三场 K题 Taxi
2022 Multi-school Second Session K Question Link with Bracket Sequence I
Memory Forensics Series 1
多线程涉及的其它知识(死锁(等待唤醒机制),内存可见性问题以及定时器)
2022牛客多校第三场 J题 Journey
LiveVideoStackCon 2022 上海站明日开幕!
阶段性测试完成后,你进行缺陷分析了么?