newman-reporter-execution-lite v3.0.5
newman-reporter-execution-lite
Newman reporter which mimics the built-in JSON reporter but only includes a few key items in the report.
Install
The installation should be global if newman is installed globally, local otherwise.
For global
install:
npm install -g npm i newman-reporter-execution-lite
For local
install:
npm install -S npm i newman-reporter-execution-lite
Usage
In order to enable this reporter, specify execution-lite
in Newman's -r
or --reporters
option , and --reporter-json-export
for json file export .
newman run https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv -r execution-lite --reporter-json-export test1.json
Options
With Newman CLI
newman run <collection-file-source> [options]
-e <source>
,--environment <source>
Specify an environment file path or URL. Environments provide a set of variables that one can use within collections. Read More-g <source>
,--globals <source>
Specify the file path or URL for global variables. Global variables are similar to environment variables but have a lower precedence and can be overridden by environment variables having the same name.
CLI Reporter
The built-in CLI reporter supports the following options, use them with appropriate argument switch prefix. For example, the
option no-summary
can be passed as --reporter-no-summary
or --reporter-cli-no-summary
.
CLI reporter is enabled by default when Newman is used as a CLI, you do not need to specifically provide the same as part of --reporters
option.
However, enabling one or more of the other reporters will result in no CLI output. Explicitly enable the CLI option in
such a scenario.
CLI Option | Description |
---|---|
--reporter-keyScript | Specify Command for run file script. |
--reporter-pathScript | Specify Command for run you file script. |
--reporter-paramScript | Specify Param for your scriptd. |
Usage
In order to enable this reporter, specify execution-lite
in Newman's -r
or --reporters
option , --reporter-keyScript
, --reporter-pathScript
and --reporter-pathScript
(Optional) for run script after succès Newman execution.
Compatibility
newman-reporter-htmlextra | newman | node |
---|---|---|
>= v1.1.0 | >= v4.1.0 | >= v8.x |
The report object contains the following items:
Result
Execution object *
Schema followed by the reporter:
[
{
"url" : "..url..",
"methode" : "..methode..",
"status" : "..status..",
"code" : "..code..",
"data" : "..data..",
"reponseTime" : "..time..",
"assertion" : "..assertion.."
} ,
{
"url" : "..url..",
"methode" : "..methode..",
"status" : "..status..",
"code" : "..code..",
"data" : "..data..",
"reponseTime" : "..time..",
"assertion" : "..assertion.."
} ,
{
"url" : "..url..",
"methode" : "..methode..",
"status" : "..status..",
"code" : "..code..",
"data" : "..data..",
"reponseTime" : "..time..",
"assertion" : "..assertion.."
} ,
...
]
License
This software is licensed under Apache-2.0. Copyright Postdot Technologies, Inc. See the LICENSE.md file for more information.
Special mention
This work have been hugely inspired and copied several aspects of the great work done by newman --XO-- newman-reporter-json-run-only --XO-- newman-reporter-htmlextra
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago