Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

api-testrail

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-testrail

[![npm version](https://badge.fury.io/js/api-testrail.svg)](https://badge.fury.io/js/api-testrail) ![GitHub package.json version (branch)](https://img.shields.io/github/package-json/v/stepanchaparyan/testrailapi/master.svg) [![Build Status](https://travis

  • 1.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
decreased by-53.66%
Maintainers
1
Weekly downloads
 
Created
Source

api-testrail

npm version GitHub package.json version (branch) Build Status FOSSA Status David GitHub repo size npm Known Vulnerabilities GitHub last commit GitHub pull request check state GitHub pull request check contexts GitHub language count GitHub top language

An API wrapper for TestRail with error handling

The TestRail API is described here

Usage

Of cource, you need to setup the API wrapper :

import ApiTestRail from 'api-testrail';

const apitestrail = new ApiTestRail(
  host, 
  username,
  password
);

Cases

Below see the list of cases

Returns an existing test case

testrail.getCase (caseId) {
    return /*testCase Data*/;
}

Returns a list of test cases for a project

testrail.getAllCases(projectId) {
    return /*All testCases Data*/;
}

Returns a list of test cases IDs for a project and case type

testrail.getCasesIDsByType (projectId, typeId) {
    return /*list of IDs*/;
}

Return all tests for a test run

testrail.getTests (runId) {
    return /*tests data*/;
}

Returns a list of test results for a test run (except untested tests)

testrail.getResultsForRun (runId) {
    return /*tests data*/;
}

Returns a status of case

testrail.getResultForCase (runId, caseId) {
    return /*statusId of case*/;
}

Creates a new test run and returns run ID

testrail.addRun (projectId, suiteId = 1) {
    return /*runId*/;
}

Creates a new test run for specific case type and returns run ID

testrail.addRunWithType (project_id, type_id, suite_id = 1) {
    return /*runId*/;
}

Adds a new test result and comment for a test

testrail.addResult (testId, statusId, comment = '') {
    return /*test data*/;
}

Adds a new test result and comment for a case

testrail.addResultForCase (runId, caseId, status_id, comment = '') {
    return /*case data*/;
}

Returns a list of users

testrail.getUsers () {
    return /*users data*/;
}

FYI

STATUS_IDs
Passed - 1
Blocked - 2
Untested - 3
Retested - 4
Failed - 5
TYPE_IDs
Acceptance - 1
Accessibility - 2
Automated - 3
Compatibility - 4
Destructive - 5
Functional - 6
Other (Default) - 7
Performance - 8
Regression - 9
Security - 10
Smoke & Sanity - 11
Usability - 12

## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fstepanchaparyan%2Ftestrailapi.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fstepanchaparyan%2Ftestrailapi?ref=badge_large) [![Greenkeeper badge](https://badges.greenkeeper.io/stepanchaparyan/testrailapi.svg)](https://greenkeeper.io/)

Keywords

FAQs

Package last updated on 17 Apr 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