library-jira
v1.4.2
Published
Library client api jira
Downloads
3,586
Readme
Jira-api-client
A small library that create a client of jira
Installation
Install with the node package manager npm:
$ npm install library-jira
Usage
$ export JIRA_SERVER=https://example.com
$ export JIRA_PROJECT_ID=xxxxx
$ export JIRA_USERNAME=username_credential
$ export JIRA_PASSWORD=password_credential
// With ES5
const { createIssueTestPlan } = require('library-jira');
// With ES6
import { createIssueTestPlan } from "library-jira";
// Initialize
createIssueTestPlan('Title of test plan');
createIssueExecutionTest('Title of test execution');
linkTestCaseToTestPlan('Number of Test case', 'Test plan key');
linkTestCaseToTestExecution('Number of Test case', 'Test execution key');
linkTestPlanToTestExecution('Number of Test plan', 'Test execution key');
updateTestCaseExecution('Number of Test case', 'Test execution key', 'Test plan key', 'State of result test');
setStateIssue('Number issue', 'Number of transicion');
getTestRun('Number of Test case', 'Test execution key');
attachFileToTestRun('ID number of test run', 'File path', 'Name of file to be uploaded', 'File Content Type')
Tests
npm test