3.0.5 • Published 6 years ago

newman-reporter-execution-lite v3.0.5

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
6 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

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.47

7 years ago

1.0.46

7 years ago

1.0.45

7 years ago

1.0.44

7 years ago

1.0.43

7 years ago

1.0.42

7 years ago

1.0.41

7 years ago

1.0.40

7 years ago

1.0.39

7 years ago

1.0.38

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.33

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago