1.2.21 • Published 18 days ago

newdashboardpackage v1.2.21

Weekly downloads
-
License
ISC
Repository
-
Last release
18 days ago

Dashboard Product

Dashboard Product contains Metrics from different tools like TestRail, Jira, X-Ray, etc.,

Pre-Requisite

  • NodeJs
  • Visual Studio code
  • New Relic

Installation

  • Create a project in Visual Studio Code.
  • Create a package.json file inside that project using "npm init -y" command.
  • Install the Dashboard package using command "npm i newdashboardpackage"

TestRail metrics

TestRail metrics package display the test metrics from TestRail application.

Usage

manualautomated

This functions extracts the Manual and Automation test cases count for a given project in the TestRail application.

Steps

Pass the below arguments to the function to get the count.

  • baseURL --> The URL of the TestRail instance. e.g.(https://pocmodule.testrail.io)
  • testrailUser--> Provide the respective TestRail account email id.
  • apiKey,---> API Key for the respective TestRail User generated inside TestRail application.
  • projectId-->Provide the ProjectId of respective project.
  • suiteId--->The ID of the test suite.
  • projectName-->Provide the ProjectName of respective project.
  • automatedId-->The automation_type Id avaialable for automated Testcases in respective project. eg:2,4
  • manualId-->The automation_type Id avaialable for manual Testcases in respective project. eg:0,1,3
  • newRelicAPI--> Provides the respective New relic Url.
  • newRelicAPIKey--> API Key for the respective New relic user generated inside New relic application

Example

const newRelicFunction = require("newdashboardpackage");
const metricData = [
  {
    baseURL: "https://pocmodule.testrail.io",
    testrailuser: "testuser@test.com",
    apiKey: "apiKey",
    projectId: "1",
    suiteId: "1",
    projectName: "projectName",
    automatedId: [2],
    manualId: [0, 1, 3],
    newRelicAPI: "https://dummy.newrelic.com",
    newRelicAPIKey: "newRelicApikey’",
  },
];
console.log(
  "AutomatedandManaulCount",
  newRelicFunction.manualautomated(metricData)
);

passfail

This functions extracts the Pass and Fail test cases count for a given project in the TestRail application.

Steps

Pass the below arguments to the function to get the count.

  • baseURL --> The URL of the TestRail instance. e.g.(https://pocmodule.testrail.io)
  • testrailUser--> Provide the respective TestRail account email id.
  • apiKey,---> API Key for the respective TestRail User generated inside TestRail application.
  • projectId-->Provide the ProjectId of respective project.
  • projectName-->Provide the ProjectName of respective project.
  • newRelicAPI--> Provides the respective New relic Api
  • newRelicAPIKey--> API Key for the respective New relic user generated inside New relic application

Example

 const newRelicFunction = require("newdashboardpackage");
 console.log("test",newRelicFunction.passfail('https://pocmodule.testrail.io',testuser@test.com',' ApiKey’, ‘/*projectId=*/ 1’,  ‘projectName’,'https://dummy.newrelic.com,'newRelicApikey’))

JIRA metrics

JIRA metrics package display the test metrics from JIRA application.

openbugs

This function returns the open bugs present in the given Jira project.

Steps

Pass the below arguments to the function to get the count.

  • username --> Provide the username of the Jira account.
  • baseUrl --> The URL of the Jira instance eg(https://testing.atlassian.net).
  • apiToken --> Provide the Jira Api Token.
  • jiraProjectCode--> The jira project code for the respective project.
  • newRelicAPI--> Provides the respective New relic Api.
  • newRelicAPIKey--> API Key for the respective New relic user generated inside New relic application.

Example

 const newRelicFunction = require("newdashboardpackage");
 const metricData = [
  {
    Username: "'test@testjira.com”,
    baseURL: " https://testingcompany.testco.net",
    apitoken: " Jira API Token ",
    jiraProjectCode: "<your jiraproject code>",
    newRelicAPI:
      "https://dummy.newrelic.com",
    newRelicAPIKey: "newRelicApikey’",

  },

];
 console.log("Openbugs",newRelicFunction.openbugs(metricData))

blockers

This function returns the Blockers present in the given Jira project.

Steps

Pass the below arguments to the function to get the count.

  • username --> Provide the username of the Jira account.
  • baseUrl --> The URL of the Jira instance eg(https://testing.atlassian.net).
  • apitoken --> Provide the Jira Api Token.
  • jiraProjectCode--> The jira project code for the respective project.
  • Priority --> Provide the Priority of the Bug.
  • newRelicAPI--> Provides the respective New relic Api.
  • newRelicAPIKey--> API Key for the respective New relic user generated inside New relic application.

Example

 const newRelicFunction = require("newdashboardpackage");
 const metricData = [
  {
    username: "'test@testjira.com”,
    baseURL: " https://testingcompany.testco.net",
    apitoken: " Jira API Token ",
    jiraProjectCode: "<your jiraproject code>",
    Priority: " P0 - Critical",
    newRelicAPI:
      "https://dummy.newrelic.com",
    newRelicAPIKey: "newRelicApikey’",

  },

];
 console.log("blockers",newRelicFunction.blockers(metricData))

backlogtickets

This function returns the Backlog Tickets present in the given Jira project.

Steps

Pass the below arguments to the function to get the count.

  • username --> Provide the username of the Jira account.
  • baseUrl --> The URL of the Jira instance eg(https://testing.atlassian.net).
  • apiToken --> Provide the Jira Api Token.
  • jiraProjectCode--> The jira project code for the respective project.
  • newRelicAPI--> Provides the respective New relic Api.
  • newRelicAPIKey--> API Key for the respective New relic user generated inside New relic application.

Example

 const newRelicFunction = require("newdashboardpackage");
 const metricData = [
  {
    Username: "'test@testjira.com”,
    baseURL: " https://testingcompany.testco.net",
    apitoken: " Jira API Token ",
    jiraProjectCode: "<your jiraproject code>",
    newRelicAPI:
      "https://dummy.newrelic.com",
    newRelicAPIKey: "newRelicApikey’",

  },

];
 console.log("BacklogTickets",newRelicFunction.backlogtickets(metricData))

bugsperrelease

This function returns the BugsPerRelease present in the Latest Release of a respective project.

Steps

Pass the below arguments to the function to get the count.

  • username --> Provide the username of the Jira account.
  • baseUrl --> The URL of the Jira instance eg(https://testing.atlassian.net).
  • apiToken --> Provide the Jira Api Token.
  • jiraProjectCode--> The jira project code for the respective project.
  • newRelicAPI--> Provides the respective New relic Api.
  • newRelicAPIKey--> API Key for the respective New relic user generated inside New relic application.

Example

const newRelicFunction = require("newdashboardpackage");
 const metricData = [
  {
    Username: "'test@testjira.com”,
    baseURL: " https://testingcompany.testco.net",
    apitoken: " Jira API Token ",
    jiraProjectCode: "<your jiraproject code>",
    newRelicAPI:
      "https://dummy.newrelic.com",
    newRelicAPIKey: "newRelicApikey’",

  },

];
 console.log("BugsPerRelease",newRelicFunction.bugsperrelease(metricData))

ticketsperrelease

This function returns the TicketsPerRelease present in the Latest Release of a respective project.

Steps

Pass the below arguments to the function to get the count.

  • username --> Provide the username of the Jira account.
  • baseUrl --> The URL of the Jira instance eg(https://testing.atlassian.net).
  • apiToken --> Provide the Jira Api Token.
  • jiraProjectCode--> The jira project code for the respective project.
  • newRelicAPI--> Provides the respective New relic Api.
  • newRelicAPIKey--> API Key for the respective New relic user generated inside New relic application.

Example

const newRelicFunction = require("newdashboardpackage");
 const metricData = [
  {
    Username: "'test@testjira.com”,
    baseURL: " https://testingcompany.testco.net",
    apitoken: " Jira API Token ",
    jiraProjectCode: "<your jiraproject code>",
    newRelicAPI:
      "https://dummy.newrelic.com",
   newRelicAPIKey: "newRelicApikey’",

  },

];
 console.log("TicketsPerRelease",newRelicFunction.ticketsperrelease(metricData))
1.2.21

18 days ago

1.2.19

25 days ago

1.2.20

25 days ago

1.2.18

25 days ago

1.2.16

25 days ago

1.2.17

25 days ago

1.2.14

26 days ago

1.2.15

25 days ago

1.2.12

1 month ago

1.2.13

1 month ago

1.2.11

1 month ago

1.2.8

1 month ago

1.2.7

1 month ago

1.2.6

1 month ago

1.2.5

1 month ago

1.2.4

1 month ago

1.2.9

1 month ago

1.2.10

1 month ago

1.2.3

2 months ago

1.2.2

2 months ago

1.0.28

2 months ago

1.2.1

2 months ago

1.0.27

3 months ago

1.0.26

3 months ago

1.0.25

3 months ago

1.0.24

3 months ago

1.0.23

3 months ago

1.2.0

3 months ago

1.0.22

3 months ago

1.0.20

3 months ago

1.0.18

3 months ago

1.0.17

3 months ago

1.0.16

3 months ago

1.0.15

3 months ago

1.0.14

3 months ago

1.0.13

3 months ago

1.0.12

3 months ago

1.0.11

3 months ago

1.0.10

3 months ago

1.0.9

3 months ago

1.0.8

3 months ago

1.0.7

3 months ago