newman-reporter-testrail-railflow

2.0.1 • Public • Published

newman-reporter-testrail-railflow

Description

This NPM contains a custom version of newman that will extract the information of a json postman collection and create a new report with all the tests present in the collection, and respective information. This also supports a custom config that can be inserted in the description of the tests or the postman collection like the example bellow.

When the reporter captures the railflow keyword, it will add it to the output under the railflowConfigs key.

Example

Test example

"description": "```\nrailflow.skip: \"true\";\nrailflow.entity: \"testcase\";\nrailflow.testrail.case_priority: \"High\";\nrailflow.testrail.suite_path: \"foo/hello/\";\nrailflow.testrail.id: \"C12343\";\nrailflow.testrail.title: \"test case title 01\";\nrailflow.testrail.case_field: \"Field One = Value one\";\nrailflow.testrail.case_field: \"Field Two = Value two\";\nrailflow.testrail.result_field: \"Field One = Value one\";\nrailflow.testrail.result_field: \"Field Two = Value two\";\nrailflow.testrail.ref: \"JIRA-4444\";\n\n```"

Output

 "railflowConfigs": {
  "skip": "true",
  "entity": "testcase",
  "testrail.id": "C12343",
  "testrail.title": "test case title 02",
  "testrail.case_field": "Field Two = Value two",
  "testrail.result_field": "Field Two = Value two",
  "testrail.ref": "JIRA-4444"
}

Instalation

To run install please run the command npm install -g newman-reporter-testrail-railflow.

Run

To run use the command newman run test.json -r testrail-railflow where test.json is the path to the input file.

Readme

Keywords

none

Package Sidebar

Install

npm i newman-reporter-testrail-railflow

Weekly Downloads

1

Version

2.0.1

License

ISC

Unpacked Size

16.1 kB

Total Files

5

Last publish

Collaborators

  • railflow