Coder Social home page Coder Social logo

nareshnavinash / newman-run Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 16.0 345 KB

Run multiple postman collections along with predefined configs using a single feed file. Reduces command-line arguments since reporting (allure, JSON, CLI, and HTML) is embedded internally.

Home Page: https://nareshnavinash.github.io/newman-run/

License: GNU General Public License v3.0

JavaScript 100.00%
postman newman runner newman-run npm npm-package api-automation

newman-run's Introduction

Newman-Run

A package to run multiple postman collections in single run by leveraging newman library. This will help us to merge and view the results of multiple collections in a single place using allure.

License: GPL v3 Made with JavaScript StackOverflow Contributions Welcome email me

alt text

Prevailing Problem

If we need to run multiple postman collections or single postman collections with multiple environments, then it becomes we need to have multiple command lines as,

newman run <file1.json>
newman run <file2.json> -e <env1.json>
newman run <file2.json> -e <env2.json>
...

Also, if we need to have multiple reports along with this run, we need to specify those each of these command line run along with the folder in which the reports should be generated as,

newman run <file1.json> --reporters cli,html,allure --reporter-html-export htmlOutput.html --reporter-allure-export <allure-results-out-dir>
newman run <file2.json> -e <env1.json> --reporters cli,html,allure --reporter-html-export htmlOutput.html --reporter-allure-export <allure-results-out-dir>
newman run <file2.json> -e <env2.json> --reporters cli,html,allure --reporter-html-export htmlOutput.html --reporter-allure-export <allure-results-out-dir>

So, as we can see the params that we are passing in the commandline keeps on increasing and its much difficult to consolidate and have a single report for multiple newman run. In Python or in Ruby test runs we have profiles that we can specify during a run which will have most of the static commandline params.

Also to run different collections at the same time, we need to depend on the shell's default multi run with && between multiple newman runs. Here, if we are running three newman runs as,

newman run <file1.json> && newman run <file2.json> && newman run <file3.json>

and if the file2.json takes long time to run than other two, then if we have any failures in <file1.json> or <file2.json> that will not be shown in the jenkins jobs or any CI tools such as bitbucket pipeline. This happens because the result of the run which completes at last takes precedence over others.

Aim

This package is aimed at resolving the above particular issue along with allure reports integration which can be easily integrated with jenkins. This allows us to run multiple collections defined in a single json file and run all the collections in one shot and have a combined reports at allure.

Supports

  • Multiple collections run in single shot
  • Allure reports along with newman's default CLI, HTML, HTMLEXTRA & JSON
  • Jenkins Integration
  • Docker Execution

Pending

  • Need to handle tests with iteration data.
  • Need to add multi-thread run. (To parallelize the test run Help Needed)

Installation

The easiest way to install Newman-Run is using NPM. If you have Node.js installed, it is most likely that you have NPM installed as well.

npm install -g newman-run

This installs Newman-Run globally on your system allowing you to run it from anywhere. If you want to install it locally, Just remove the -g flag.

If you want this to be added to your package.json, run with either --save or --save-dev depending on your usage.

Usage

To check for the available commandline arguments use newman-run --help

Multi-Collection run

Here we can see our original aim to run multiple collections in single shot.

For a simple run of all the feature files in normal mode, try

newman-run -c <Feed_file_path_which_contains_input_collections>

Here we are going to use the feed file extensively to make our package run multiple collections at a time. Feed file is nothing but a json file where we need to specify the path of collection and environment JSON's.

Feed files

The feed file is the core structure for this package to function. In the feed file, one has to specify the collections and environment json files path or the url in the array format inside runs variable like,

{
    "runs":[
        {
            "collection": "./collections/test_scripts.postman_collection.json"
        },
        {
            "collection": "./collections/file_upload_collection.postman_collection.json",
            "environment": "./environment/test_environment.json"
        }
        
    ]
}

If we have only collections that need to be run as part of the test, then have collection alone. If we have collection and environment files, then we need to specify both collection and environment in json format.

When we initiate the tests, the runs array will be iterated and all the tests will be run using newman package.

Ideally we should have the postman collection link as the feed file input, this gives us the leverage of modifying the tests via postman without touching the core framework. The ideal feed file will be,

{
    "runs":[
        {
            "collection": "https://www.getpostman.com/collections/57c3cfef239jeijw39d93"
        },
        {
            "collection": "https://www.getpostman.com/collections/57c3cfef239jeijwew282",
            "environment": "./environment/test_environment.json"
        },
        {
            "collection": "https://www.getpostman.com/collections/57c3cfef239jeijwew282",
            "environment": "./environment/dev_environment.json"
        },
        {
            "collection": "https://www.getpostman.com/collections/57c3cfef239jeijwew282",
            "environment": "./environment/prod_environment.json"
        }
    ]
}

Once the feed file is prepared, one can directly trigger the test by,

newman-run -f <Feed_file_which_contains_input_collections>

Now as you can see, you can specify N number of environment combinations with the same collection file or different collection file. All these will run in one shot and we can have a collated result view in the allure.

A/Synchronous mode

By default, the collections are executed asynchronously via the mechanism of Javascript's callback functions: in this way the collections are executed interleaved, all in parallel, without respecting the order in which the collections are defined in the runs.json file. By specifying the '-s' or '--synchronous' option, the system will execute all calls in order one collection at a time. E.g. first all calls from collection 1, then all calls from collection 2, etc. always in the order of definition within the collection. As newman would do by default.

newman-run -s -f <./feed/<feed_file.json>

To achieve basic newman functionality along with reports

To support the basic newman functionality, the newman-run command allows you to specify a collection to be run. You can easily export your Postman Collection as a json file from the Postman App and run it using Newman.

newman-run -c <./collection/<example_collection.json>

If you have environment file to be passed, you can conviniently do the same.

newman-run -c <./collection/<example_collection.json> -e <./environment/<example_env.json>

You can also specifiy both the feed file as well as collections at the same time.

newman-run -f <./feed/<feed_file.json> -c <./collection/<example_collection.json>

This allows us to run any collection dynamically along with our set of collections.

The above will take care the reporting part and we don't need to mention about that from the command line. Along with allure reports, newman's default CLI, HTML, HTMLEXTRA and JSON reports are added which can be found at reports/ path. For sophesticated classification, reports for each collection is isolated with different name. If needed JSON and HTML files can be pushed to S3 for further processing or to have a record.

Remove previous run report files

In order to remove the report files that are generated in the previous run, run command of -r can be added. This will clear the reports folder and then will have only the files that are corresponding to the current run.

newman-run -r -f <./feed/<feed_file.json>

NOTE:-

We need to give the file path along with the current working directory i.e., along with ./ symbol. This ensures that the proper file path is given and its used to compute the relative path in the code.

Allure

To open the allure results,

allure serve reports/allure

To install allure follow https://docs.qameta.io/allure/ with your respective machine.

Jenkins Integration with Docker images

Get any of the linux with cypress docker image as the slaves in jenkins and use the same for executing the UI automation with this framework (Sample docker image - https://hub.docker.com/r/postman/newman/). From the jenkins bash Execute the following to get the testcases to run (Provided newman-run is added to the package.json dependencies),

#!/bin/bash -l
npm list
ls
cd <path_to_the_project>
npm install
newman-run -f <./feed/<feed_file.json>

In Jenkins pipeline, try to add the following snippet to execute the tests,

pipeline {
    agent { docker { image 'postman/newman' } }
    stages {
        stage('build') {
            steps {
                sh 'cd project/'
                sh 'npm install'
                sh 'newman-run -f <./feed/<feed_file.json>' # or different files
            }
        }
    }
}

Sample Framework structure

If you are looking for proper framework structure up on which this package is built on you can see Postman-Newman-Framework

Built With

  • Newman - Automation core framework to run Postman collections.
  • Newman-Allure - For Detailed reporting.

Contributing

  1. Clone the repo!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Create a pull request.

Please read CONTRIBUTING.md for details on code of conduct, and the process for submitting pull requests.

Authors

License

This project is licensed under the GNU GPL-3.0 License - see the LICENSE file for details

Acknowledgments

  • To all the open source contributors whose code has been referred in this project.

newman-run's People

Contributors

dependabot[bot] avatar francescomiliani avatar lokeshmoger avatar minjawork avatar nareshnavinash avatar trevelopment avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

newman-run's Issues

issues while running multiple collections using newman-run

hello Suresh, I have 10 collections with each one having its own environment files. I am runing thosee using feedfile.json

{
"runs" :[
{
"collection":"collection1.json",
"environment":"evn1.json",
"iterationData": "data.csv"

}

{
"collection":"collection2.json",
"environment":"evn2.json",
"iterationData": "data.csv"

}

]

}

newman-run -f feedfile.json

It is runing fine but 2 issues:
1- creating many cloned collection files inside the folder which is confusing every time I have to delete them manually.
2- It is creating separate html reports but I want a single report for all
any help?

npm run serve-allure return missing script: serve-allure

npm run serve-allure
npm ERR! missing script: serve-allure

npm ERR! A complete log of this run can be found in:
npm ERR!     \npm-cache\_logs\2021-01-15T21_38_46_285Z-debug.log


0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'C:\\NVM\\v12.18.3\\node.exe',
1 verbose cli   'C:\\NVM\\v12.18.3\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'serve-allure'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: missing script: serve-allure
4 verbose stack     at run (C:\NVM\v12.18.3\node_modules\npm\lib\run-script.js:155:19)
4 verbose stack     at C:\NVM\v12.18.3\node_modules\npm\lib\run-script.js:63:5
4 verbose stack     at C:\NVM\v12.18.3\node_modules\npm\node_modules\read-package-json\read-json.js:116:5
4 verbose stack     at C:\NVM\v12.18.3\node_modules\npm\node_modules\read-package-json\read-json.js:436:5
4 verbose stack     at checkBinReferences_ (C:\NVM\v12.18.3\node_modules\npm\node_modules\read-package-json\read-json.js:391:45)
4 verbose stack     at final (C:\NVM\v12.18.3\node_modules\npm\node_modules\read-package-json\read-json.js:434:3)
4 verbose stack     at then (C:\NVM\v12.18.3\node_modules\npm\node_modules\read-package-json\read-json.js:161:5)
4 verbose stack     at C:\NVM\v12.18.3\node_modules\npm\node_modules\read-package-json\read-json.js:382:12
4 verbose stack     at C:\NVM\v12.18.3\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:123:16
4 verbose stack     at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)
5 verbose cwd 
6 verbose Windows_NT 10.0.19041
7 verbose argv "C:\\NVM\\v12.18.3\\node.exe" "C:\\NVM\\v12.18.3\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve-allure"
8 verbose node v12.18.3
9 verbose npm  v6.14.6
10 error missing script: serve-allure
11 verbose exit [ 1, true ]


Include request, response body and headers in allure report generated by newman-run

Hello, when we generate allure report we are not getting the request, response body and headers,
We have a working example for "newman run" at : https://github.com/dvargas46/newman-reporter-allure,
would be much helpful if we integrate the newman-reporter-allure module from above to the existing "newman-run"

I have a temporary fix for this now to install as follows:

cd /usr/lib/node_modules/newman-run/node_modules/
sudo mv newman-reporter-allure newman-reporter-allure-old
sudo npm install -g @danvargas46/newman-reporter-allure
sudo mv ../../@danvargas46/newman-reporter-allure .

If i update the newman-run to new version this gets updated to its default report.
Since we are getting request , response body and headers extra other than normal report, it would be much helpful if the same newman-reporter-allure module is pulled into this permanently.

@nareshnavinash Can we get some improvement around this ? Thanks.

newman-run -v must return newman-run version

newman-run -v

 _   _                                                  ______               
| \ | |                                                 | ___ \              
|  \| |  ___ __      __ _ __ ___    __ _  _ __   ______ | |_/ / _   _  _ __  
| . ` | / _ \\ \ /\ / /| '_ ` _ \  / _` || '_ \ |______||    / | | | || '_ \ 
| |\  ||  __/ \ V  V / | | | | | || (_| || | | |        | |\ \ | |_| || | | |
\_| \_/ \___|  \_/\_/  |_| |_| |_| \__,_||_| |_|        \_| \_| \__,_||_| |_|
                                                                             
                                                                             
Need either feed file (-f) or collections (-c) file to run the tests or atleast (-r) to remove the files from reports directory!!!

Usage: newman-run -f <feed_file_path>

Options:
  --help             Show help                                         [boolean]
  --version          Show version number                               [boolean]
  -f, --feed         Feed file path                                     [string]
  -c, --collection   Collection file path file path                     [string]
  -e, --environment  Environment file path file path                    [string]
  -r, --remove       To remove the files from reporting directory

Argument check failed: argv => { if(argv.f == undefined && argv.c == undefined && argv.r == undefined) { console.log(file_error_message); return false } else { return true }}

Request for Globals to be included as an option in the feed file

I have a Postman API and Newman project consisting of multiple collections, environments and globals variables.
This package appears to be suitable for my project demand, which would be to execute multiple collections to generate one summary report.
However my test scripts utilise the globals variables and when using this package it does not recognise these, as I could not appear to find if the Globals could be included??
As it appears to only reference to collections and environment files.

Run should fail if an assertion fails

Since I'm running the script in a CI/CD environment I need to get feedback when some test fails, but I'm always getting exit 0, even when some assertion fails. I think it should fail with exit 1.

function (err, summary) { if (err || summary.run.error || summary.run.failures.length) { process.exit(1); } }

code breaks if one collection completed the execution

code breaks if one collection completed the execution.
┌─────────────────────────┬─────────────────────┬────────────────────┐
│ │ executed │ failed │
├─────────────────────────┼─────────────────────┼────────────────────┤
│ iterations │ 1 │ 0 │
├─────────────────────────┼─────────────────────┼────────────────────┤
│ requests │ 23 │ 0 │
├─────────────────────────┼─────────────────────┼────────────────────┤
│ test-scripts │ 62 │ 0 │
├─────────────────────────┼─────────────────────┼────────────────────┤
│ prerequest-scripts │ 39 │ 0 │
├─────────────────────────┼─────────────────────┼────────────────────┤
│ assertions │ 61 │ 0 │
├─────────────────────────┴─────────────────────┴────────────────────┤
│ total run duration: 35.7s │
├────────────────────────────────────────────────────────────────────┤
│ total data received: 4.54KB (approx) │
├────────────────────────────────────────────────────────────────────┤
│ average response time: 1457ms [min: 508ms, max: 2.5s, s.d.: 714ms] │
└────────────────────────────────────────────────────────────────────┘

Finished Execution

C:\Users**********\AppData\Roaming\npm\node_modules\newman-run\lib\core.js:105
throw err;
^
null
(Use node --trace-uncaught ... to show where the exception was thrown)

Cannot run multiple collection with url on mac


| \ | | | ___ \
| | | ___ __ __ _ __ ___ __ _ _ __ ______ | |/ / _ _ _ __
| . | / _ \\ \ /\ / /| '_ _ \ / ` || ' \ |
|| / | | | || ' \
| |\ || __/ \ V V / | | | | | || (
| || | | | | |\ \ | |
| || | | |
_| _/ _
| _/_/ || || || _,||| || _| _| _,||| |_|

Feed file taken is: /Jenkins/poc_newman/all_collection.json
!----------------------------------Files Taken to run---------------------------------------!
{
collection: 'https://www.getpostman.com/collections/57c3cfef239jeijw39d93'
}
Collection file taken to run: https://www.getpostman.com/collections/57c3cfef239jeijw39d93
node:internal/modules/cjs/loader:1051
throw err;
^

Error: Cannot find module '../../../../../../Users/user/Documents/https:/www.getpostman.com/collections/57c3cfef239jeijw39d93'
Require stack:

  • /opt/homebrew/lib/node_modules/newman-run/lib/core.js
  • /opt/homebrew/lib/node_modules/newman-run/bin/newman-run.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at NewmanConfig.runCollection (/opt/homebrew/lib/node_modules/newman-run/lib/core.js:93:25)
    at /opt/homebrew/lib/node_modules/newman-run/lib/core.js:30:22
    at Array.map ()
    at NewmanConfig.looprun (/opt/homebrew/lib/node_modules/newman-run/lib/core.js:27:18)
    at Object. (/opt/homebrew/lib/node_modules/newman-run/bin/newman-run.js:46:8)
    at Module._compile (node:internal/modules/cjs/loader:1233:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47 {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/opt/homebrew/lib/node_modules/newman-run/lib/core.js',
    '/opt/homebrew/lib/node_modules/newman-run/bin/newman-run.js'
    ]
    }

Node.js v20.5.1

Illegal characters in path stopping output being produced

using 1.2.4 newman-run and running command
newman-run -f feed.json where feed.json is like

{
	"runs": [
		{
			"collection": "./collections/Call.postman_collection.json",
			"environment": "./environment/qa.postman_environment.json"
		}
	]
}

I get the following error

C:\npm\prefix\node_modules\newman-run\node_modules\mkdirp\lib\path-arg.js:20
     throw Object.assign(new Error('Illegal characters in path.'), {
      ^

Error: Illegal characters in path.
    at pathArg (C:\npm\prefix\node_modules\newman-run\node_modules\mkdirp\lib\path-arg.js:20:27)
    at mkdirp (C:\npm\prefix\node_modules\newman-run\node_modules\mkdirp\index.js:10:10)
    at C:\npm\prefix\node_modules\newman-run\node_modules\newman\lib\run\export-file.js:97:17
    at nextTask (C:\npm\prefix\node_modules\newman-run\node_modules\async\dist\async.js:5787:13)
    at Object.waterfall (C:\npm\prefix\node_modules\newman-run\node_modules\async\dist\async.js:5798:9)
    at Object.awaitable [as waterfall] (C:\npm\prefix\node_modules\newman-run\node_modules\async\dist\async.js:211:32)
    at module.exports (C:\npm\prefix\node_modules\newman-run\node_modules\newman\lib\run\export-file.js:95:15)
    at C:\npm\prefix\node_modules\newman-run\node_modules\async\internal\withoutIndex.js:8:40
    at eachOfArrayLike (C:\npm\prefix\node_modules\newman-run\node_modules\async\eachOf.js:61:9)
    at eachOf (C:\npm\prefix\node_modules\newman-run\node_modules\async\eachOf.js:181:12)
    at awaitable (C:\npm\prefix\node_modules\newman-run\node_modules\async\internal\awaitify.js:13:28)
    at eachLimit (C:\npm\prefix\node_modules\newman-run\node_modules\async\each.js:125:31)
    at awaitable (C:\npm\prefix\node_modules\newman-run\node_modules\async\internal\awaitify.js:13:28)
    at done (C:\npm\prefix\node_modules\newman-run\node_modules\newman\lib\run\index.js:343:21)
    at C:\npm\prefix\node_modules\newman-run\node_modules\postman-runtime\lib\backpack\index.js:58:34
    at PostmanCollectionRun._process (C:\npm\prefix\node_modules\newman-run\node_modules\postman-runtime\lib\runner\run.js:160:13) {
  path: 'D:\\a\\1\\s\\reports\\json\\D:\\a\\1\\s\\collections',
  code: 'EINVAL'

Error: Cannot find module '..\..\..\..\..\..\..\r1\a\https:\api.getpostman.com\collections\ae4f1c31-14a6-4438-8d7d-

HI all,

Any ideas on the above? I've taken out some of the GUID for security reasons but the whole collection url is appearing here. Here is out Newman command:

2021-06-01T10:26:14.4358201Z newman-run -c https://api.getpostman.com/collections/ae4f1c31-14a6-4438-8d7d-........................... -e https://api.getpostman.com/environments/8188685d-2a89-4bb7-ad75-.................... --working-dir C:\agent\_work\r1\a\repo\Solutions\ExposureAPI\TestFiles --reporters junit,htmlextra --reporter-junit-export Results\\junitReport.xml
2021-06-01T10:26:14.4791870Z ========================== Starting Command Output ===========================
2021-06-01T10:26:14.5041028Z ##[command]"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "C:\agent\_work\_temp\7e647a6d-2200-473e-94dc-774a07e24a11.cmd""
2021-06-01T10:26:16.6181784Z �[2J�[0f _   _                                                  ______               
2021-06-01T10:26:16.6182280Z | \ | |                                                 | ___ \              
2021-06-01T10:26:16.6182670Z |  \| |  ___ __      __ _ __ ___    __ _  _ __   ______ | |_/ / _   _  _ __  
2021-06-01T10:26:16.6183011Z | . ` | / _ \\ \ /\ / /| '_ ` _ \  / _` || '_ \ |______||    / | | | || '_ \ 
2021-06-01T10:26:16.6183351Z | |\  ||  __/ \ V  V / | | | | | || (_| || | | |        | |\ \ | |_| || | | |
2021-06-01T10:26:16.6183710Z \_| \_/ \___|  \_/\_/  |_| |_| |_| \__,_||_| |_|        \_| \_| \__,_||_| |_|
2021-06-01T10:26:16.6184051Z                                                                              
2021-06-01T10:26:16.6184405Z                                                                              
2021-06-01T10:26:16.6251506Z Collection file taken to run: https://api.getpostman.com/collections/ae4f1c31-14a6-4438-8d7d-.....................................................
2021-06-01T10:26:16.6252207Z Environment file taken to run: https://api.getpostman.com/environments/8188685d-2a89-4bb7-.....................................................................
2021-06-01T10:26:16.6311250Z node:internal/modules/cjs/loader:944
2021-06-01T10:26:16.6311745Z   throw err;
2021-06-01T10:26:16.6311927Z   ^
2021-06-01T10:26:16.6312010Z 
2021-06-01T10:26:16.6312445Z Error: Cannot find module '..\..\..\..\..\..\..\r1\a\https:\api.getpostman.com\collections\ae4f1c31-14a6-4438-8d7d............................................'
2021-06-01T10:26:16.6312917Z Require stack:
2021-06-01T10:26:16.6313184Z - C:\agent\_work\_tool\node\16.2.0\x64\node_modules\newman-run\lib\core.js
2021-06-01T10:26:16.6313543Z - C:\agent\_work\_tool\node\16.2.0\x64\node_modules\newman-run\bin\newman-run.js
2021-06-01T10:26:16.6313925Z     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:941:15)
2021-06-01T10:26:16.6314450Z     at Function.Module._load (node:internal/modules/cjs/loader:774:27)
2021-06-01T10:26:16.6314927Z     at Module.require (node:internal/modules/cjs/loader:1013:19)
2021-06-01T10:26:16.6315288Z     at require (node:internal/modules/cjs/helpers:93:18)
2021-06-01T10:26:16.6315734Z     at NewmanConfig.runCollectionWithEnv (C:\agent\_work\_tool\node\16.2.0\x64\node_modules\newman-run\lib\core.js:55:25)
2021-06-01T10:26:16.6316272Z     at Object.<anonymous> (C:\agent\_work\_tool\node\16.2.0\x64\node_modules\newman-run\bin\newman-run.js:50:8)
2021-06-01T10:26:16.6318129Z     at Module._compile (node:internal/modules/cjs/loader:1109:14)
2021-06-01T10:26:16.6318504Z     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
2021-06-01T10:26:16.6318867Z     at Module.load (node:internal/modules/cjs/loader:989:32)
2021-06-01T10:26:16.6319222Z     at Function.Module._load (node:internal/modules/cjs/loader:829:14)
2021-06-01T10:26:16.6319622Z     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
2021-06-01T10:26:16.6319994Z     at node:internal/main/run_main_module:17:47 {
2021-06-01T10:26:16.6320254Z   code: 'MODULE_NOT_FOUND',
2021-06-01T10:26:16.6320471Z   requireStack: [
2021-06-01T10:26:16.6320772Z     'C:\\agent\\_work\\_tool\\node\\16.2.0\\x64\\node_modules\\newman-run\\lib\\core.js',
2021-06-01T10:26:16.6321707Z     'C:\\agent\\_work\\_tool\\node\\16.2.0\\x64\\node_modules\\newman-run\\bin\\newman-run.js'
2021-06-01T10:26:16.6322184Z   ]
2021-06-01T10:26:16.6322353Z }

Running collection request in-order

Hello, I tried to run the example wrote in the README.md file but I notice that the collection order were not followed at all.
But, the collection requests were executed in parallel by alternating requests coming from different collections.

Should it be possible handle the fixed order wrote in runs.json file?

Thanks.

Core.js returning an error when collection execution succeeded

I'm running latest newman-run version and when the collection execution succeeded we're getting this error pointing to the core.

#### Finished Execution ####

/Users/varaya/.nvm/versions/node/v14.6.0/lib/node_modules/newman-run/lib/core.js:69
                throw err;
                ^
null
(Use `node --trace-uncaught ...` to show where the exception was thrown)

ignore certificates while running with newman-run

how can I ignore certificates while running with newman-run? For newman it was the --insecure flag. However, this does not work for newman-ran. Can you help?

I am using the below command,
newman-run -f feed_file.json --insecure

Docker container

Great tool! Could you possibly build and publish this tool as a docker container and publish it on dockerhub? Would probably expand the user base

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.