Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
testrail-api-client
Advanced tools
TypeScript (JavaScript) client for TestRail API v2
Using npm:
$ npm install testrail-api-client
Using yarn:
$ yarn add testrail-api-client
const client = require('testrail-api-client');
const client = require('testrail-api-client').default;
const options = {
domain: "example.testrail.com",
username: "example@example.com",
password: "ABC",
projectId: 1
};
const client_options = new client(options);
client.addRun("Example Run", "Example Description", 123, [1,2,3])
.then(function (runId) {
console.log(`Created run with id: ${runId}`)
})
.catch(error => console.error(error));
client.getCasesFromRun(123)
.then(function (cases) {
console.log(`Number of cases from run #${runId}: ${cases.length}`)
})
.catch(error => console.error(error));
client.closeRun(123)
.then(console.log(`Closed run with id: ${runId}`))
.catch(error => console.error(error));
client.getCases(suiteId)
.then(function (cases) {
console.log(`Number of cases in suiteid=${suiteId}: ${cases.length}`);
})
.catch(error => console.error(error));
Variable | Description |
---|---|
TESTRAIL_DOMAIN | This is a required variable to point the client to your TestRail instance. Required Example: example.testrail.com |
TESTRAIL_USERNAME | This is a required variable to authenticate HTTP communication. Required Example: example@example.com |
TESTRAIL_APIKEY | This is a required variable to authenticate HTTP communication. Can be obtained in TestRail settings, see [http://docs.gurock.com/testrail-api2/accessing]. Required Example: ABC |
TESTRAIL_PROJECTID | This is a required variable to point client to the right project. Required Example: 1 |
FAQs
JavaScript client for TestRail API
The npm package testrail-api-client receives a total of 3,455 weekly downloads. As such, testrail-api-client popularity was classified as popular.
We found that testrail-api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.