2.0.1 • Published 2 years ago

newman-reporter-testrail-railflow v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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.

2.0.1

2 years ago

0.0.9

2 years ago

0.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago