当前位置:网站首页>Postman core function analysis - parameterization and test report
Postman core function analysis - parameterization and test report
2022-07-05 22:19:00 【TEST_ Two black】
1. Parametric processing
A parameterized : For an interface , There are a large number of test data that need to be verified in batch , Changing request parameters one by one is too time-consuming and labor-consuming , It is more efficient to use parameterized batch data processing , The general implementation is through document parameterization .
create a file Format CSV

The first line of information in the file It needs to match the parameter variable
Batch execution 




Add assertion data 
2. Postman Generate test reports
Postman Use runner Runtime , The generated report can only be in Postman Inside view , It's not very convenient . So you can generate a HTML The report , Open it through the browser
Postman Need generation HTML Reports need to use newman, With the help of newman Tool generation .
2.1 install newman
newman It's using node.js Development , Specially for postman A tool plug-in for generating test reports . We need to install node.js、newman、newman plug-in unit :newman-reporter-html
download node.js:https://nodejs.org/en/ Proposed installation 15 perhaps 16 edition
npm install -g cnpm –
registry=https://registry.npm.taobao.org install newman: open cmd, Input npm install -g newman
install newman-reporter-html open cmd, Input npm install -g newman-reporter-html
2.2newman The command runs the use case
newman run Use case set .json -e Environmental documents .json -d Data files .json -r html --repoter-html-export report.html
newman run Use case set .json The meaning of running a use case set
-e Environmental documents .json Specify the running environment
-d Data files .json Specify the data to run
-r html Generate html The report
–reporter-html-export report.html Appoint html Report name is report.html
You need to export the script before execution / Data files / Environment files such as :
After execution, the directory generates a report file

边栏推荐
- Basic grammar of interview (Part 1)
- QT creator 7 beta release
- Business learning of mall order module
- A long's perception
- 科技云报道:算力网络,还需跨越几道坎?
- AD637使用筆記
- [groovy] groovy dynamic language features (automatic type inference of function arguments in groovy | precautions for function dynamic parameters)
- MySQL服务莫名宕机的解决方案
- Microservice link risk analysis
- Promql demo service
猜你喜欢

Search: Future Vision (moving sword)

Overview of concurrency control

Depth first DFS and breadth first BFS -- traversing adjacency tables

Promql demo service

ESP32 hosted

Interview questions for famous enterprises: Coins represent a given value

IIC bus realizes client device

Talking about MySQL index

AD637使用筆記

Decorator learning 01
随机推荐
微服務鏈路風險分析
Go语言学习教程(十五)
[error record] file search strategy in groovy project (src/main/groovy/script.groovy needs to be used in the main function | groovy script directly uses the relative path of code)
如何向mongoDB中添加新的字段附代码(全)
A long's perception
IIC bus realizes client device
Leetcode simple question: find the nearest point with the same X or Y coordinate
What if win11 is missing a DLL file? Win11 system cannot find DLL file repair method
Ad637 notes d'utilisation
等到产业互联网时代真正发展成熟,我们将会看待一系列的新产业巨头的出现
航海日答题小程序之航海知识竞赛初赛
Stored procedures and stored functions
Interview questions for famous enterprises: Coins represent a given value
元宇宙中的三大“派系”
[Yugong series] go teaching course in July 2022 004 go code Notes
Interprocess communication in the "Chris Richardson microservice series" microservice architecture
Leetcode simple question check whether all characters appear the same number of times
New 3D particle function in QT 6.3
Postman核心功能解析-参数化和测试报告
Index optimization of performance tuning methodology