Socket
Socket
Sign inDemoInstall

testrail-js-api

Package Overview
Dependencies
13
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    testrail-js-api

Library exposing TestRail API


Version published
Maintainers
2
Install size
856 kB
Created

Readme

Source

NPM NPM NPM

Notice

Please make sure to check the API reference: https://www.gurock.com/testrail/docs/api

To upload attachments for test results you have to enable an option to edit test reults:

Please note the ability to edit test results must be enabled under 'Site Settings' in order for add_attachment_to_result endpoints to work.

Usage

  1. Create new instance of the TestRail class by passing:
  • host - TestRail server address
  • user - Username that has access to the target project.
  • apiKey - Generate API Key from TestRail options.
const testrail = new TestRail(host, user, apiKey);
  1. Invoke API methods. All methods return a promise with response and a value as an object.
const { response, value } = await testrail.addRun(
    projectId,
    runPayload,
);
testrail.addRun(
    projectId,
    runPayload,
).then(({ response, value }) => {
    ...
});

Keywords

FAQs

Last updated on 30 Sep 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc