Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@reportportal/client-javascript

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reportportal/client-javascript

ReportPortal client for Node.js

latest
Source
npmnpm
Version
5.4.2
Version published
Weekly downloads
258K
-4.44%
Maintainers
3
Weekly downloads
 
Created

What is @reportportal/client-javascript?

@reportportal/client-javascript is a client library for integrating JavaScript-based test automation frameworks with ReportPortal, a real-time reporting and analysis platform for automated tests. This package allows you to send test results, logs, and other relevant data to ReportPortal, enabling comprehensive test reporting and analysis.

What are @reportportal/client-javascript's main functionalities?

Initialize Client

This feature allows you to initialize the ReportPortal client with necessary configuration details such as token, endpoint, and project name.

const ReportPortalClient = require('@reportportal/client-javascript');
const client = new ReportPortalClient({
  token: 'your_token',
  endpoint: 'https://your-instance.reportportal.io',
  project: 'your_project_name'
});

Start Launch

This feature allows you to start a new launch in ReportPortal, which is a collection of test runs. The response contains a launch ID that you can use for further operations.

client.startLaunch({
  name: 'Launch Name',
  startTime: new Date().toISOString()
}).then(response => {
  const launchId = response.id;
  // Use launchId for further operations
});

Log Messages

This feature allows you to send log messages to ReportPortal. You can specify the log level, message, and associated test item.

client.sendLog({
  launch: 'launchId',
  item: 'testItemId',
  level: 'INFO',
  message: 'This is a log message',
  time: new Date().toISOString()
});

Finish Launch

This feature allows you to finish a launch in ReportPortal, marking the end of a collection of test runs.

client.finishLaunch('launchId', {
  endTime: new Date().toISOString()
});

Other packages similar to @reportportal/client-javascript

Keywords

epam

FAQs

Package last updated on 02 Oct 2025

Did you know?

Socket

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.

Install

Related posts