3.0.5 • Published 5 years ago

newman-reporter-execution-lite v3.0.5

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
5 years ago

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 OptionDescription
--reporter-keyScriptSpecify Command for run file script.
--reporter-pathScriptSpecify Command for run you file script.
--reporter-paramScriptSpecify 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-htmlextranewmannode
>= 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

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago