npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

newman-reporter-testrail-extra

v1.2.0

Published

A newman reporter for TestRail

Downloads

5

Readme

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='[email protected]'      # 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 '[email protected]' \
--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