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
Copy file name to clipboardExpand all lines: docs/analytics-test-case-insights.md
+38-1Lines changed: 38 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,44 @@ driver.executeScript(`lambda-testCase-end=${Name of test case}`)
117
117
118
118
```
119
119
120
-
### Capture by NPM Package for WebdriverIO
120
+
### Capture by Playwright reporter
121
+
122
+
#### Step 1 - Configure your reporter in YAML
123
+
124
+
You can capture the testcase insights by using the `reporter` configuration in your `YAML` file for capturing and seeing the test cases in our test case widgets on dashboard.
125
+
126
+
Here is a link to documentation for setting up the reporter for `PlaywrightJS`: [Click here](/docs/playwright-html-report/#step-1-update-your-playwright-configuration)
127
+
128
+
#### Step 2 - Add the code to lambdatest-setup file
129
+
130
+
Once, you have setup the `reporter`then the following code snippet should be added to your `lambdatest-setup.js` config.
console.log('LambdaTest Test ID:', response.data.test_id)
147
+
}
148
+
} catch (err) {
149
+
console.warn('Could not fetch LambdaTest test details:', err.message)
150
+
}
151
+
```
152
+
153
+
#### Step 3 - Execute the tests using HyperExecute
154
+
155
+
You can now, execute the tests on our `HyperExecute` platform and you can see the results captured in the `Test Case Widgets` on the dashboards.
156
+
157
+
## Capture by NPM Package for WebdriverIO
121
158
122
159
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)
0 commit comments