Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
reportportal-client
Advanced tools
#ReportPortal js client
Library used only for implementors of custom listeners for ReportPortal
The latest stable version is available on npm:
npm install reportportal-client
Main classes are:
Basic usage example:
var Service = require("reportportal-client");
function now() {
return new Date().getTime();
}
var rpConfig = {
endpoint: "http://your_reportportal_url",
project: "project",
token: "your_reportportal_token"
};
var rp = new Service(rpConfig);
var startLaunchRQ = {
name: "JSLaunchName",
description: "Some LaunchDescription",
tags: ["tag1", "tag2"],
start_time: now(),
mode: null
};
var startLaunchResponse = rp.startLaunch(startLaunchRQ);
var launchId;
startLaunchResponse.then(function (response) {
var startTestItemRQ = {
name: "Suite1",
description: "SuiteDescription",
tags: ["suite_tag1", "suite_tag2"],
start_time: now(),
launch_id: response.id,
type: "SUITE"
};
var startSuiteResponse = rp.startTestItem(null, startTestItemRQ);
startSuiteResponse.then(function (data) {
var finishTestItemRQ = {
end_time: now(),
status: status.PASSED
};
rp.finishTestItem(data.id, finishTestItemRQ).then(function (data) {
var finishExecutionRQ = {
end_time: now(),
status: status.PASSED
};
startLaunchResponse.then(function (response) {
console.log(response.id);
rp.finishLaunch(response.id, finishExecutionRQ)
.then(function (data) {
console.log(data);
})
}, function (err) {
console.log(err);
});
});
})
});
Licensed under the GPLv3 license (see the LICENSE.txt file).
FAQs
ReportPortal client for node.js
The npm package reportportal-client receives a total of 1,943 weekly downloads. As such, reportportal-client popularity was classified as popular.
We found that reportportal-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.