Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@sum.cumo/node-testrail
Advanced tools
Readme
Node-TestRail is an api wrapper for TestRail. It contains an easy way to interact with all of the API commands for version 2 of the testrail API.
https://www.gurock.com/testrail/docs/api
Yarn
yarn add -D @sum.cumo/node-testrail
NPM
npm install @sum.cumo/node-testrail --save-dev
var TestRail = require("@sum.cumo/node-testrail");
var testrail = new TestRail("https://example.testrail.com/", "email@example.com", "password");
testrail
.addResult(TEST_ID, STATUS_ID, COMMENT, VERSION, ELAPSED_TIME, DEFECTS, ASSIGNEDTO_ID)
.then((body) => {
console.log(body)
})
testrail
.getUserByEmail(EMAIL)
.then((user) => {
console.log(user)
})
testrail
.getTest(TEST_ID)
.then((test) => {
console.log(test)
})
testrail.addAttachmentToRun('123', '/path/to/file')
// This will upload an myAssets.zip containing all files and sub directories provided.
// Use a colon if you need to provide a new directory name
testrail
.addAttachmentsToRun(
'123',
[
'path/to/some/asset/dir',
'path/to/another/dir:newDirectoryName/InArchive'
],
'myAssets'
)
All the helper functions can be found under src within index.js
addAttachmentToCase(caseId: string, attachment: string): Promise<AxiosResponse>
addAttachmentToPlan(planId: string, attachment: string): Promise<AxiosResponse>
addAttachmentToPlanEntry(planId: string, entryId: string, attachment: string): Promise<AxiosResponse>
addAttachmentToResult(resultId: string, attachment: string): Promise<AxiosResponse>
addAttachmentToRun(runId: string, attachment: string): Promise<AxiosResponse>
addAttachmentsToRun(runId: string, attachments: string[], assetsArchiveName: null | string = null): Promise<AxiosResponse | null>
getCase(case_id)
getCases(project_id, suite_id, section_id)
addCase(section_id, title, type_id, project_id, estimate, milestone_id, refs)
updateCase(case_id, title, type_id, project_id, estimate, milestone_id,refs)
deleteCase(case_id)
getCaseFields()
getCaseTypes()
getConfigs(project_id)
getMilestone(milestone_id)
getMilestones(project_id)
addMilestone(project_id, name, description, due_on)
updateMilestone(milestone_id, name, description, due_on, is_completed)
deleteMilestone(milestone_id)
getPlan(plan_id)
getPlans(project_id)
addPlan(project_id, name, description, milestone_id)
addPlanEntry(plan_id, suite_id, name, assignedto_id, include_all)
updatePlan(plan_id, name, description, milestone_id)
updatePlanEntry(plan_id, entry_id, name, assignedto_id, include_all)
closePlan(plan_id)
deletePlan(plan_id)
deletePlanEntry(plan_id, entry_id)
getPriorities()
getProject(project_id)
getProjects()
addProject(name, announcement, show_announcement)
updateProject(project_id, name, announcement, show_announcement, is_completed)
deleteProject(project_id)
getResults(test_id, limit)
getResultsForCase(run_id, case_id, limit)
addResult(test_id, status_id, comment, version, elapsed, defects, assignedto_id)
addResults(run_id, results)
addResultForCase(run_id, case_id, status_id, comment, version, elapsed, defects, assignedto_id)
addResultsForCases(run_id, results)
getResultFields()
getRun(run_id)
getRuns(run_id)
addRun(projectID, suite_id, name, description, milestone_id, includeAll, caseIds, refs)
updateRun(runID, name, description, milestone_id, includeAll, caseIds, refs)
closeRun(run_id)
deleteRun(run_id)
getStatuses()
getSection(section_id)
getSections(project_id, suite_id)
addSection(project_id, suite_id, parent_id, name)
updateSection(section_id, name)
deleteSection(section_id)
getSuite(suite_id)
getSuites(project_id)
addSuite(project_id,name, description)
updateSuite(suite_id,name, description)
deleteSuite(suite_id)
getTest(test_id)
getTests(run_id)
getUser(user_id)
getUserByEmail(email)
Thank you for using this module and feel free to contribute.
MIT
FAQs
An API wrapper for TestRail
The npm package @sum.cumo/node-testrail receives a total of 561 weekly downloads. As such, @sum.cumo/node-testrail popularity was classified as not popular.
We found that @sum.cumo/node-testrail demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.