You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
40
38
41
-
## Prerequisites For Insights:
39
+
## Prerequisites For Insights:
40
+
42
41
1. You should have an active LambdaTest account.
43
-
2. You should han active subscription plan with HyperExecute or App Automation.
42
+
2. You should han active subscription plan with HyperExecute or App Automation.
44
43
3. You should have executed at least one test on the LambdaTest HyperExecute / App Automation platform.
45
44
46
45
## How To Access Test Case Insights?
47
-
1. Go to the `Insights` tab on the left navigation bar and click on the `Create New`.
48
-
2. Select the `Custom Dashboard` option from the menu.
49
-
3. Now, search for `Test Case` widgets in the `App Automation & HyperExecute` products.
46
+
47
+
1. Go to the `Insights` tab on the left navigation bar and click on the `Create New`.
48
+
2. Select the `Custom Dashboard` option from the menu.
49
+
3. Now, search for `Test Case` widgets in the `Web Automation, App Automation & HyperExecute` products.
50
50
4. Add the widgets to the dashboard by clicking on the `Add Widget` button.
((JavascriptExecutor) driver).executeScript("lambda-testCase-end={Your Test Case Name}");
75
100
76
101
```
77
102
78
103
To know more about the hooks and how to use them, you can refer to the [LambdaHooks for Appium](https://www.lambdatest.com/support/docs/appium-lambdatest-hooks/#differentiating-test-cases-in-single-session) documentation.
79
104
80
105
## Capture Test Case Insights for HyperExecute
81
106
82
-
### Capture by WebHook
107
+
### Capture by WebHook
83
108
84
-
You can capture the test case insights by using the WebHook. You need to add the following `WebHook` in your test script.
109
+
You can capture the test case insights by using the WebHook. You need to add the following `WebHook` in your test script.
85
110
86
111
```bash
87
112
// For Stage of testcase`START`
@@ -96,23 +121,24 @@ driver.executeScript(`lambda-testCase-end=${Name of test case}`)
96
121
97
122
You can capture the testcase 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](https://www.npmjs.com/package/wdio-lambdatest-test-case-analytics-service)
98
123
99
-
:::caution
124
+
:::caution
100
125
The package currently only supports for`WebdriverIO` framework. We will be adding support for other frameworks soon.
101
126
:::
102
127
103
128
```bash
104
129
npm i wdio-lambdatest-test-case-analytics-service
105
130
```
131
+
106
132
Now, once the package has been installed, you need to add the following code in your `wdio.conf.js` file.
107
133
108
134
```javascript
109
135
exports.config = {
110
-
// ...
111
-
services: [
112
-
['lambdatest-test-case-analytics', {}], // Add the service
113
-
// ... other services
114
-
],
115
-
// ...
136
+
// ...
137
+
services: [
138
+
["lambdatest-test-case-analytics", {}], // Add the service
139
+
// ... other services
140
+
],
141
+
// ...
116
142
};
117
143
```
118
144
@@ -121,23 +147,22 @@ Once, you have completed the configuration and start executing your tests on the
121
147
## Test Case Insights Widgets
122
148
123
149
### Test Case Health Snapshot
124
-
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.
150
+
151
+
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.
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.
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:
135
-
136
-
* Analyze the test case level insights of your test automation execution on LambdaTest.
137
-
* Check the health of your test cases.
138
-
* Detect the test cases that are failing frequently.
139
-
* Drill down to the test cases for faster debugging.
140
-
141
-
142
162
163
+
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:
143
164
165
+
- Analyze the test case level insights of your test automation execution on LambdaTest.
166
+
- Check the health of your test cases.
167
+
- Detect the test cases that are failing frequently.
168
+
- Drill down to the test cases for faster debugging.
0 commit comments