当前位置:网站首页>黑马程序员-接口测试-四天学习接口测试-第四天-Postman读取外部数据文件,读取数据文件数据,iHRM项目实战,员工管理模块,添加员工,批量运行测试用例,生成测试报告,
黑马程序员-接口测试-四天学习接口测试-第四天-Postman读取外部数据文件,读取数据文件数据,iHRM项目实战,员工管理模块,添加员工,批量运行测试用例,生成测试报告,
2022-07-24 00:48:00 【小白的学习笔记记录】
今日学习目标
使用Postman实现iHRM系统登录模块和员工管理模块接口测试
生产,开发测试环境
pm.environment.set(“env_age”,99);
Postman读取外部数据文件(参数化)
当 http请求,使用的 数据有较高相似度,相同的请求时,考虑使用参数化(将数据组织到数据文件中)。
数据文件简介
CSV:
- 优点:
- 数据组织形式简单,适用于大量数据的场合。
- 缺点:
- 不支持 bool类型数据。(数据被 postman读入后,自动添加 “” 包裹bool值。)
- 不支持 多参、少参、无参、错误参数 的接口测试。
- 不支持复杂数据类型。(如 嵌套字典、列表等)
pm.globals.set("![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-CbYD4Umn-1658540534917)(接口测试-第04天-课堂笔记.assets/image-20210711095615565.png)]](/img/3b/486eff3288373a0a93418c1404df50.png)
- 优点:
JSON:
边栏推荐
- Classic example of C language - print the input two digits in reverse order
- Inode, soft link, hard link
- JS determines whether the element scrolls to the top
- Selection method of geometric objects in Creo 9.0
- Interviewer: if the order is not paid within 30 minutes after it is generated, it will be automatically cancelled. How to realize it?
- This is a big problem
- Centernet target detection model and centerfusion fusion target detection model
- Solve the error: uncaught (in promise) navigationduplicated: avoided redundant navigation to current location:“
- The way to access global variables in multi-source file mode (extern usage)
- Reverse linked list drawing demonstration
猜你喜欢
随机推荐
Bean Validation使用篇----05
如何提升数据质量
PHP implements stripe subscription
Method of C language annotation
The way to access global variables in multi-source file mode (extern usage)
Small farmers also have big goals in the test, and the latest big bat interview summary (constantly updating...)
Unity metaverse (I). Ready player me & blender customize your Avatar
Gbase 8C access authority query function (V)
Testers who have been employed for 3 months are facing employment confirmation. Leaders: 1 year of work experience is packaged into 5 years, and the probation period is eliminated
Accelerating matrix vector multiplication of special matrices with FFT
What is the function of the select... For UPDATE statement? Can you lock tables or rows?
Simple implementation and analysis of binary search tree
Network system experiment: solve the problem of Ping failure
Selection method of geometric objects in Creo 9.0
Classic example of C language - commodity inspection code
Analysis of the advantages of the LAAS scheme of elephant swap led to strong performance of ETOKEN
Classic examples of C language switch case statement conversion date format
ES6 combines multiple class methods
Interviewer: if the order is not paid within 30 minutes after it is generated, it will be automatically cancelled. How to realize it?
MySQL common commands








