当前位置:网站首页>黑馬程序員-接口測試-四天學習接口測試-第四天-Postman讀取外部數據文件,讀取數據文件數據,iHRM項目實戰,員工管理模塊,添加員工,批量運行測試用例,生成測試報告,
黑馬程序員-接口測試-四天學習接口測試-第四天-Postman讀取外部數據文件,讀取數據文件數據,iHRM項目實戰,員工管理模塊,添加員工,批量運行測試用例,生成測試報告,
2022-07-24 00:49: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:
边栏推荐
- Gbase 8C system table information function (II)
- Redis cluster hash sharding algorithm (slot location algorithm)
- IDEA 热部署(热加载)
- Classic examples of C language - adding two scores
- Case error of MySQL branch statement
- [data mining engineer - written examination] Haier company in 2022
- Accelerating matrix vector multiplication of special matrices with FFT
- Starfish OS: create a new paradigm of the meta universe with reality as the link
- The most basic code interpretation of C language
- Bert article translation
猜你喜欢

Installation and use of appscan

Summary of polynomial commitment schemes

Classic examples of C language - adding two scores

Network system experiment: solve the problem of Ping failure

如何使用 SAP Intelligent Robotic Process Automation 自动操作 Excel

Unity metaverse (I). Ready player me & blender customize your Avatar

The prediction of domestic AI protein structure reproduced a breakthrough and solved the 3D structure with a single sequence. Peng Jian's team: "the last piece of puzzle since alphafold2 has been comp

数仓数据标准详解-2022

mysql 分支语句case报错

Centernet target detection model and centerfusion fusion target detection model
随机推荐
Creo 9.0 mouse button operation for model observation
数据标准详细概述-2022
Redis data structure
Summary of pit websocket
The high-quality digital collection of guochuang's "children's song line" is on sale, and you are invited to create a young martial arts Jianghu dream
数仓数据指标和标签体系区别
PayPal subscription process and API request
Solve the error: uncaught (in promise) navigationduplicated: avoided redundant navigation to current location:“
Network system experiment: solve the problem of Ping failure
AWS Part 4 one machine and one secret
There are various signs that apple is expected to support AV1
《天幕红尘》笔记与思考(五)强势文化与弱势文化
Image processing: Generation 3 × Window of 3
MySQL exercise: all employees reporting to the CEO
Intelligent OCR identification of express documents helps the logistics industry to upgrade Digitalization
Image processing 1:rgb888_ YCbCr444
Fpga:ov7725 camera displays images in rgb565 format through vga/hdmi
Notes and Thoughts on the red dust of the sky (VI) due to lack
Classic examples of C language - adding two scores
CA digital certificate