Registry / testing / wdio-lambdatest-test-case-analytics-service

wdio-lambdatest-test-case-analytics-service

JSON →
library2.0.3jsnpmunverified

A WebDriver.IO service that captures it() block test case names and logs them in the browser console using browser.execute(). This is useful for tracking test progress on LambdaTest's platform. Current stable version is 2.0.3. It is maintained by LambdaTest and releases follow their internal cadence. The key differentiator is that it automates test name reporting without manual instrumentation, specifically tailored for LambdaTest's analytics. Compared to generic logging, it integrates tightly with WebDriverIO's service lifecycle and requires minimal configuration.

npm install wdio-lambdatest-test-case-analytics-service
INSTALL
IMPORT
SIG · WDIO-LAMBDATEST-TE
W
wdio-lambdatest-test-case-analytics-service
testingjavascriptv2.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import wdioLambdatestTestCaseAnalyticsService from 'wdio-lambdatest-test-case-analytics-service'
const service = require('wdio-lambdatest-test-case-analytics-service')
The package is ESM-only since v2. Use dynamic import or configure TypeScript for ESM.
LambdatestTestCaseAnalyticsService
import { LambdatestTestCaseAnalyticsService } from 'wdio-lambdatest-test-case-analytics-service'
import LambdatestTestCaseAnalyticsService from 'wdio-lambdatest-test-case-analytics-service'
The named export is available in addition to default export. Use named export to be explicit.
ServicePluginCapabilities
import type { ServicePluginCapabilities } from 'wdio-lambdatest-test-case-analytics-service'
TypeScript users can import types for better IntelliSense and type checking.

Example wdio.conf.ts configuration showing how to enable the LambdaTest Test Case Analytics service with authentication and minimal setup.

// wdio.conf.ts import { Launcher } from '@wdio/cli'; export const config = { user: process.env.LAMBDATEST_USERNAME ?? '', key: process.env.LAMBDATEST_ACCESS_KEY ?? '', services: [ ['lambdatest-test-case-analytics', {}] ], specs: ['./test/specs/**/*.ts'], capabilities: [{ platformName: 'Windows 10', browserName: 'Chrome', browserVersion: 'latest' }], logLevel: 'info', baseUrl: 'https://www.example.com', framework: 'mocha', mochaOpts: { ui: 'bdd', timeout: 60000 } }; const launcher = new Launcher(config, process.argv.slice(2)); launcher.run().then( (exitCode) => process.exit(exitCode ?? 0), (error) => { console.error(error); process.exit(1); } );
Debug
Known issues
breakingPackage is ESM-only from v2. CommonJS require() will not work without dynamic import.
fix
Use import() or configure your project for ESM (e.g., set type: 'module' in package.json).
affects: >=2.0.0
deprecatedThe service name in config ('lambdatest-test-case-analytics') may change in future versions to match other LambdaTest services.
fix
Stay updated with changelog and update the service string accordingly.
affects: >=1.0.0
breakingRequires @wdio/types package for TypeScript projects. Missing types will cause compilation errors.
fix
Install @wdio/types as a dev dependency: npm install --save-dev @wdio/types
affects: >=1.0.0
gotchaThe service captures it() block names only if test is run with WebDriverIO. It does not work with standalone WebDriver or other frameworks.
fix
Ensure your project uses WebdriverIO as the test runner, not just as a browser automation library.
affects: >=1.0.0
deprecatedService uses browser.execute() to log names; this may interfere with strict CSP headers in some environments.
fix
If your application has strict CSP, configure the policy to allow 'unsafe-eval' or use a custom logging method.
affects: >=1.0.0
Errors
Common errors & fixes
Module not found: Error: Can't resolve 'wdio-lambdatest-test-case-analytics-service'
The package is not installed or is installed but not in the correct node_modules.
fix
Run 'npm install wdio-lambdatest-test-case-analytics-service' and ensure node_modules is in the correct directory.
TypeError: Cannot read properties of undefined (reading 'execute')
The browser object is not available in the service context, possibly because the service is not loaded correctly.
fix
Check that the service string 'lambdatest-test-case-analytics' is correctly added in the services array in wdio.conf.
Cannot find module '@wdio/types' or its corresponding type declarations
@wdio/types is required for TypeScript support but is not installed.
fix
Install @wdio/types as a dev dependency: npm install --save-dev @wdio/types
Command 'lambdatest-test-case-analytics' not found
The service is not registered properly or the package is not installed.
fix
Run 'npm install wdio-lambdatest-test-case-analytics-service' and ensure the service string matches exactly.
Upgrade
Version history
2.0.3latest on npm
Audit
Dependencies
@wdio/typesoptionalRequired for TypeScript type definitions and compatibility with WebDriverIO service types.
Agent activity
9 hits · last 30 days
node
8
Resources
wdio-lambdatest-test-case-analytics-service — npm install wdio-lambdatest-test-case-analytics-service · libregistry