1.0.11 • Published 7 years ago

parallelrunner v1.0.11

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

Parallelrunner

Parallelrunner is a simple command line tool which executes the postman collection parallelly. The process is very simple. Just download the collections and the respective environment in the below-given folder format and call the parallelrunner application. Parallelrunner will execute all the collections parallelly in the desired folder and generates custom HTML report parallel to your collections.

New Features!

  • The execution time is very fast as it runs all the collections parallelly
  • Can able to run the collections based on some simple priority
  • Custom HTML report will be generated in parallel to collections location

Tech

Parallelrunner uses a number of open source projects to work properly:

  • node.js - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine
  • newman - the cli companion for postman

Installation

To run parallelrunner, ensure that you have NodeJS >= v8.5.0 The easiest way to install parallelrunner is using NPM. If you have NodeJS installed, it is most likely that you have NPM installed as well.

$ npm install parallelrunner -g

Execution

$ parallelrunner -p <path to postman collection folder>
  • -p <path>, --path <path> Specify the folderpath. Example:-
$ parallelrunner -p /home/dir/collections

Usage

Simple Case
  • Create a folder in your system wherever you want
  • Download Collections from postman and place it in the newly created folder Example : peoplemgmtCollections.json
  • Download Environment from the postman and place it in the newly created folder parallel to the downloaded collections.
  • Append Env to last of the environment json file Example: peoplemgmtCollectionsEnv.json
  • Download Global Environment from the postman and place it in the newly created folder parallel to the downloaded collections. < optional >
  • Append GlobalEnv to last of the global environment json file Example: peoplemgmtCollectionsGlobalEnv.json
  • Then call the parallelrunner, it will execute the collections with its respective environment
  • The final report will be generated and placed inside the reports folder, which will be created parallelly to the collections at runtime.

simple folder structure

One Environment with multiple collections
  • Create a folder in your system wherever you want
  • Download Environment form the postman and place it in the newly created folder
  • Append Env to last of the environment json file Example: peoplemgmtCollectionsEnv.json
  • Create a sub-folder inside the newly created folder
  • Download all the collections from the postman and place it in newly created sub-folder
  • Then call the parallelrunner, it will execute all the collections in the sub-folder with the single environment.
  • The final report will be generated and placed inside the reports folder, which will be created parallelly to the collections at runtime.

Multiple collections folder structure 1

Priority based execution
  • Create a folder in your system wherever you want
  • Download Collections from postman and place it in the newly created folder Example : peoplemgmtCollections.json
  • Download Environment from the postman and place it in the newly created folder parallel to the downloaded collections.
  • Append Env to last of the environment json file Example: peoplemgmtCollectionsEnv.json
  • Download Global Environment from the postman and place it in the newly created folder parallel to the downloaded collections. < optional >
  • Append GlobalEnv to last of the global environment json file Example: peoplemgmtCollectionsGlobalEnv.json
  • Create a sub-folder inside the newly created folder
  • Download all the collections from the postman and place it in newly created sub-folder
  • Then call the parallelrunner, the parallelrunner first execute the collections defined in the parent-folder and based on the result formed at runtime, the collections in the sub-folder get executed.
  • The final report will be generated and placed inside the reports folder, which will be created parallelly to the collections at runtime.

Priority based folder structure

License

ISC

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