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

2.0.2 • Public • Published

LambdaTest Logo

wdio-lambdatest-test-case-analytics-service

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 wdio-lambdatest-test-case-analytics-service

Usage

WebdriverIO has support for this service out of the box.

  1. Add the lambdatest-test-case-analytics service to your wdio.conf.js file in your WebDriver.IO project:
exports.config = {
    // ...
    services: [
        ['lambdatest-test-case-analytics', {}],
        // ... other services
    ],
    // ...
};
  1. Set your LambdaTest account user and key in your wdio.conf.js file.

  2. 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

Package Sidebar

Install

npm i wdio-lambdatest-test-case-analytics-service

Weekly Downloads

17

Version

2.0.2

License

ISC

Unpacked Size

3.42 kB

Total Files

4

Last publish

Collaborators

  • lambdatestdev