@stepanchaparyan/testrailapi

### An API wrapper for TestRail with error handling

This module is no longer maintained, try this instead: npm i api-testrail
Last updated a year ago by stepanchaparyan .
ISC · Original npm · Tarball · package.json
$ cnpm install @stepanchaparyan/testrailapi 
SYNC missed versions from official npm registry.

api-testrail

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

Current Tags

  • 2.1.14                                ...           latest (a year ago)

40 Versions

  • 2.1.14 [deprecated]           ...           a year ago
  • 2.1.13 [deprecated]           ...           a year ago
  • 2.1.11 [deprecated]           ...           a year ago
  • 2.1.10 [deprecated]           ...           a year ago
  • 2.1.9 [deprecated]           ...           a year ago
  • 2.1.8 [deprecated]           ...           a year ago
  • 2.1.7 [deprecated]           ...           a year ago
  • 2.1.6 [deprecated]           ...           a year ago
  • 2.1.5 [deprecated]           ...           a year ago
  • 2.1.4 [deprecated]           ...           a year ago
  • 2.1.3 [deprecated]           ...           a year ago
  • 2.1.2 [deprecated]           ...           a year ago
  • 2.1.1 [deprecated]           ...           a year ago
  • 2.1.0 [deprecated]           ...           a year ago
  • 2.0.24 [deprecated]           ...           a year ago
  • 2.0.23 [deprecated]           ...           a year ago
  • 2.0.22 [deprecated]           ...           a year ago
  • 2.0.21 [deprecated]           ...           a year ago
  • 2.0.20 [deprecated]           ...           a year ago
  • 2.0.19 [deprecated]           ...           a year ago
  • 2.0.18 [deprecated]           ...           a year ago
  • 2.0.17 [deprecated]           ...           a year ago
  • 2.0.16 [deprecated]           ...           a year ago
  • 2.0.15 [deprecated]           ...           a year ago
  • 2.0.14 [deprecated]           ...           a year ago
  • 2.0.13 [deprecated]           ...           a year ago
  • 2.0.12 [deprecated]           ...           a year ago
  • 2.0.11 [deprecated]           ...           a year ago
  • 2.0.10 [deprecated]           ...           a year ago
  • 2.0.9 [deprecated]           ...           a year ago
  • 2.0.8 [deprecated]           ...           a year ago
  • 2.0.7 [deprecated]           ...           a year ago
  • 2.0.6 [deprecated]           ...           a year ago
  • 2.0.5 [deprecated]           ...           a year ago
  • 2.0.4 [deprecated]           ...           a year ago
  • 2.0.3 [deprecated]           ...           a year ago
  • 2.0.2 [deprecated]           ...           a year ago
  • 2.0.1 [deprecated]           ...           a year ago
  • 2.0.0 [deprecated]           ...           a year ago
  • 1.0.0 [deprecated]           ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |