当前位置:网站首页>[postman] collections - run the imported data file of the configuration
[postman] collections - run the imported data file of the configuration
2022-07-06 06:09:00 【lichong951】
You can use data file transfer Postman Value set for use in the collection run . By means of Collection Runner Choose from JSON or CSV Data files , You can test your request with multiple different values in one run .
Use data files to run collections
When you start the collection run , You will see an option to select a data file . choice Postman Right lower corner Runner .
Select your collection , Then select select file next to data on the right to select your data file .
Before you start running , You will see a preview of the data in the file data.json The option to .
[{
"path": "post",
"value": "1"
}, {
"path": "post",
"value": "2"
}, {
"path": "post",
"value": "3"
}, {
"path": "post",
"value": "4"
}]

Select run with data file to start running with the values in the file .
Collection Runner The collection request will be run for each iteration in the data file . The output you see will indicate the results of any tests you defined in the collection request .
Accessing data file values
You can reference the values defined in the data file throughout the request , But access them in the script , You need to use different technologies . To use values in data files in test or pre request script code , Please use iterationData, It provides access to the current data file record used to run the request .
//get the 'value' field from the data file for this request run
pm.iterationData.get("value")
Any data you define in the request will be used by the collection runtime , And your request data can reference the value defined in the data file .
Error reading data file
When Postman When trying to read your data file during the collection run , You may encounter errors . If this happens , You can take the following steps .
Make sure your data file format is correct , by CSV or JSON.
By opening the data file in a text editor and saving the file in a different format , Make sure your data file is encoded correctly .
边栏推荐
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- Function of contenttype
- 授予渔,从0开始搭建一个自己想要的网页
- J'ai un chaton.
- 数学三大核心领域概述:代数
- Query the standard text code corresponding to a work center (s) in the production order
- Eigen稀疏矩阵操作
- Buuctf-[bjdctf2020]zjctf, but so (xiaoyute detailed explanation)
- Is it difficult for an information system project manager?
- How to use the container reflection method encapsulated by thinkphp5.1 in business code
猜你喜欢

Practice sharing: how to safely and quickly migrate from CentOS to openeuler
![Buuctf-[gxyctf2019] no dolls (xiaoyute detailed explanation)](/img/0a/054b994b29d4c50ede8b23514cf4ee.jpg)
Buuctf-[gxyctf2019] no dolls (xiaoyute detailed explanation)

(5) Explanation of yolo-v3 core source code (3)
![[paper reading] nflowjs: synthetic negative data intensive anomaly detection based on robust learning](/img/9c/2753f68ecec3555aaca23800dada1e.png)
[paper reading] nflowjs: synthetic negative data intensive anomaly detection based on robust learning

ICLR 2022 spotlight | analog transformer: time series anomaly detection method based on correlation difference

The difference and usage between continue and break

关于 PHP 启动 MongoDb 找不到指定模块问题

Hongliao Technology: how to quickly improve Tiktok store

GTSAM中李群的运用
![Buuctf-[bjdctf2020]zjctf, but so (xiaoyute detailed explanation)](/img/c9/56fba6054c91f090de31463a8b4705.jpg)
Buuctf-[bjdctf2020]zjctf, but so (xiaoyute detailed explanation)
随机推荐
Usage of test macro of GTEST
leaflet 地图
误差的基本知识
High quality coding tool clion
LeetCode 729. 我的日程安排表 I
Hongliao Technology: Liu qiangdong's "heavy hand"
J'ai un chaton.
公司视频加速播放
Luogu p1460 [usaco2.1] healthy Holstein cows
VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator
Expose the serial fraudster Liu Qing in the currency circle, and default hundreds of millions of Cheng Laolai
局域网同一个网段通信过程
【Postman】动态变量(也称Mock函数)
IPv6 comprehensive experiment
Report on the competition status and investment decision recommendations of Guangxi hospital industry in China from 2022 to 2028
Leetcode 701 insertion operation in binary search tree -- recursive method and iterative method
[web security] nodejs prototype chain pollution analysis
曼哈顿距离与曼哈顿矩形-打印回字型矩阵
[C language syntax] the difference between typedef struct and struct
异常检测方法总结