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

simple api for testrail

  • 1.0.0
  • Source
  • npm
  • Socket score

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

testrail-api

An API wrapper for TestRail with error handling

The TestRail API is described here

Usage

import TestRailAPI from '@stepanchaparyan/testrailapi'

const testrail = new TestRailApi(host, username, password)

STATUS_ID
  • Passed - 1
  • Blocked - 2
  • Untested - 3
  • Retested - 4
  • Failed - 5
TYPE_ID
  • automated = 3

Cases

  • testrail.getCase(caseId) // Returns an existing test case
  • testrail.getAllCases(projectId) // Returns a list of test cases for a project
  • testrail.getCasesIDsByType (projectId, typeId) // Returns a list of test cases for a roject and case type
  • testrail.getTests (runId) // Return all tests for a test run
  • testrail.getResultsForRun (runId) // Returns a list of test results for a test run (except untested tests)
  • testrail.getResultForCase (runId, caseId) // Returns a status of case
  • testrail.addRun (projectId, suiteId = 1) // Creates a new test run and returns run ID
  • testrail.addRunWithType (project_id, type_id, suite_id = 1) // Creates a new test run for specific case type and returns run ID
  • testrail.addResult (testId, statusId, comment = '') // Adds a new test result or comment for a test
  • testrail.addResultForCase (runId, caseId, status_id, comment = '') // Adds a new test result or comment for a case
  • testrail.getUsers () // Returns a list of users

Keywords

FAQs

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