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

@reportportal/client-javascript

Package Overview
Dependencies
Maintainers
4
Versions
23
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

  • 5.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
189K
increased by2.12%
Maintainers
4
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

FAQs

Package last updated on 22 May 2024

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

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