Skip to main content

Test Case Insights

Analyzing the test case level insights of your test automation execution on LambdaTest is now easier than ever with the Test Case Insights module. The user can easily find information about the count, and type of the test cases through the highly customizable widgets.

Pre-requisites For Test Case Insights:

  1. You should have an active LambdaTest account.
  2. You should han active subscription plan with HyperExecute.
  3. You should have executed at least one test on the LambdaTest HyperExecute platform.

How To Access Test Case Insights?

Go to the Analytics tab on the left navigation bar and click on the Test Case Insights module. Select the Test Overview module from the menu.Add the widgets to the dashboard by clicking on the Add Widget button.

cmd

Capture the Test Case Insights

Capture by WebHook

You can capture the test case insights by using the WebHook. You need to add the following WebHook in your test script.

// For Stage of test case `START`
driver.executeScript(`lambda-testCase-start=${Name of the test case}`)

// For Stage of test case `END`
driver.executeScript(`lambda-testCase-end=${Name of test case}`)

Capture by NPM Package

You can capture the test case insights by using the NPM Package. You need to add the following NPM Package in your test script. Here is the link to the NPM package: wdio-lambdatest-test-case-analytics-service

caution

The package currently only supports for WebdriverIO framework. We will be adding support for other frameworks soon.

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

Now, once the package has been installed, you need to add the following code in your wdio.conf.js file.

exports.config = {
// ...
services: [
['lambdatest-test-case-analytics', {}], // Add the service
// ... other services
],
// ...
};

Once, you have completed the configuration and start executing your tests on the HyperExecute platform, you will be able to see the test case insights on the Test Case Insights module.

Test Case Insights Widgets

Test Case Health Snapshot

You can analyze the health of your test cases by using the Test Case Health Snapshot widget. The widget will display the total number of test cases success, failed. The widget will be displayed in card view and you can also view the details of the test cases by clicking on the View Details button.

cmd

Test Case Group View

You can analyze the test cases by their group by using the Test Case Group View widget. The widget will display the total number of test cases in each group. The widget will be displayed in card view and you can also view the details of the test cases by clicking on the View Details button.

cmd

Test Case Use Cases

The user can use the Test Case Insights module to analyze the test case level insights of their test automation execution on LambdaTest. The user can use the module to analyze the following use cases:

  • Analyze the test case level insights of your test automation execution on LambdaTest.
  • Check the health of your test cases.
  • Detect the test cases that are failing frequently.
  • Drill down to the test cases for faster debugging.