New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

newman-reporter-testrail-extra

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newman-reporter-testrail-extra

A newman reporter for TestRail

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

newman-reporter-testrail-extra

A newman reporter for testrail

Installation

npm install newman-reporter-testrail-extra

Usage

Add test case ids to assertions

Prefix test assertions with testRail case Id CXXXXXX, including the letter C. Multiple test case ids can be added.

pm.test("C12345 C67890 Status code is 200", function() {
  pm.response.to.have.status(200);
});

Set the reporter options.

Reporter option can be set as environment variables or from reporter options arguments

export TESTRAIL_HOST='https://testrail.domain.com'  # TestRail host.
export TESTRAIL_USERNAME='username@domain.com'      # TestRail username.
export TESTRAIL_PASSWORD='testrail_password'        # TestRail password.
export TESTRAIL_API_KEY='testrail_api_key'          # TestRail API key.
export TESTRAIL_PROJECT_ID='testrail_project_id'    # TestRail project id.
export TESTRAIL_SUITE_ID='testrail_suite_id'        # (optional) TestRail suite id. Required for multi-suite projects.
export TESTRAIL_RUN_NAME='Automation run'           # (optional) Name of test run to create.
export TESTRAIL_INCLUDE_ALL=true                    # (optional) Boolean to determine wheter or not to include all case ids while adding run.

Note: Either username and password or username and api key can be used.

Run newman test with the reporter option -r testrail-extra

newman run my-collection.postman_collection.json -r cli,testrail-extra \
--reporter-testrail-extra-host 'https://testrail.domain.com' \
--reporter-testrail-extra-username 'username@domain.com' \
--reporter-testrail-extra-password 'password' \
--reporter-testrail-extra-project-id 'testrail_project_id' \
--reporter-testrail-extra-suite-id 'testrail_suite_id' \
--reporter-testrail-extra-run-name 'Automation run'  \
--reporter-testrail-extra-include-all

Keywords

FAQs

Package last updated on 09 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc