Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

testrail-api-client

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testrail-api-client - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

19

dist/testrail.js

@@ -106,2 +106,21 @@ "use strict";

};
TestRailClient.prototype.updateRunDescription = function (runId, description) {
var _this = this;
return new Promise(function (resolve, reject) {
axios({
method: 'post',
url: _this.base + "/update_run/" + runId,
headers: { 'Content-Type': 'application/json' },
auth: {
username: _this.options.username,
password: _this.options.password,
},
data: JSON.stringify({ "description": description }),
})
.then(function (response) {
resolve();
})
.catch(function (error) { reject(error); });
});
};
return TestRailClient;

@@ -108,0 +127,0 @@ }());

2

package.json
{
"name": "testrail-api-client",
"version": "1.0.15",
"version": "1.0.16",
"description": "JavaScript client for TestRail API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,3 +10,2 @@ # testrail-api-client

## Installing

@@ -101,2 +100,32 @@

### addResultsForCases
```js
const runId = 123;
const reportTests = [{ case_id: 12345, status_id: 1, comment: "Test comment" }];
client
.addResultsForCases(runId, reportTests)
.then(() => {
console.log("Done");
})
.catch((err) => {
console.log(err);
});
```
### updateRunDescription
```js
const runId = 123;
const description = "Run Description";
client
.updateRunDescription(runId, description)
.then(() => {
console.log("Done");
})
.catch((err) => {
console.log(err);
});
```
## Environment variables

@@ -103,0 +132,0 @@

Sorry, the diff of this file is not supported yet

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