当前位置:网站首页>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
边栏推荐
- AD637 usage notes
- Learning of mall permission module
- 2022-07-05:给定一个数组,想随时查询任何范围上的最大值。 如果只是根据初始数组建立、并且以后没有修改, 那么RMQ方法比线段树方法好实现,时间复杂度O(N*logN),额外空间复杂度O(N*
- When the industrial Internet era is truly mature, we will look at the emergence of a series of new industrial giants
- Nacos installation and service registration
- 科技云报道:算力网络,还需跨越几道坎?
- Damn, window in ie open()
- Common interview questions of redis factory
- FBO and RBO disappeared in webgpu
- [Chongqing Guangdong education] National Open University autumn 2018 0088-21t Insurance Introduction reference questions
猜你喜欢
Livelocks and deadlocks of concurrency control
Technology cloud report won the special contribution award for the 10th anniversary of 2013-2022 of the "cloud Ding Award" of the global cloud computing conference
The difference between MVVM and MVC
Talking about MySQL index
How to quickly experience oneos
Pl/sql basic case
A substring with a length of three and different characters in the leetcode simple question
Damn, window in ie open()
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
opencv 判断点在多边形内外
随机推荐
实战:fabric 用户证书吊销操作流程
New 3D particle function in QT 6.3
Oracle triggers
Hcip day 16
Ad637 notes d'utilisation
[agc009e] eternal average - conclusion, DP
数据泄露怎么办?'华生·K'7招消灭安全威胁
"Chris Richardson microservices series" uses API gateway to build microservices
Kubernetes Administrator certification (CKA) exam notes (IV)
Lightweight dynamic monitorable thread pool based on configuration center - dynamictp
Overview of database recovery
Recovery technology with checkpoints
[error record] groovy function parameter dynamic type error (guess: groovy.lang.missingmethodexception: no signature of method)
Database tuning solution
Oracle hint understanding
FBO and RBO disappeared in webgpu
Pl/sql basic syntax
MySQL服务莫名宕机的解决方案
如何向mongoDB中添加新的字段附代码(全)
QT creator 7-cmake update