This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@lambdatest/test-case-analytics
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

LambdaTest Logo

@lambdatest/test-case-analytics

A WebDriver.IO service that captures the it() block test case names and logs them in the browser console using the browser.execute() function.

Installation

Install the package using npm:

npm install @lambdatest/test-case-analytics

Usage

  1. Add the test-case-analytics service to your wdio.conf.js file in your WebDriver.IO project:
const WdioCaptureIt = require('@lambdatest/test-case-analytics').default;

exports.config = {
    // ...
    services: [
        [WdioCaptureIt, {}],
        // ... other services
    ],
    // ...
};
  1. Run your WebDriver.IO tests as usual. The test case names from the it() blocks will be captured and logged in the browser console at the beginning of each test.

Example

Here's an example of how the test case name will be logged in the browser console:

Test Case Name: should display the correct title

TypeScript Support

This package includes a TypeScript declaration file to support TypeScript projects. Make sure to install the @wdio/types package to use the types correctly:

npm install @wdio/types

After installing the necessary packages, you can import the test-case-analytics service in your TypeScript configuration file:

import WdioCaptureIt from '@lambdatest/test-case-analytics';

export const config: WebdriverIO.Config = {
    // ...
    services: [
        [WdioCaptureIt, {}],
        // ... other services
    ],
    // ...
};

Package Sidebar

Install

npm i @lambdatest/test-case-analytics

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

3.36 kB

Total Files

4

Last publish

Collaborators

  • lambdatestdev