Skip to content

Commit 26fea62

Browse files
chore: Update test case insights documentation for HyperExecute and App Automation
1 parent 1e9fe2e commit 26fea62

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

docs/analytics-test-case-insights.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,33 @@ Analyzing the test case level insights of your test automation execution on Lamb
5151

5252
<!-- <img loading="lazy" src={require('../assets/images/analytics/test-case-widgets-dashboard.webp').default} alt="cmd" width="800" height="400" className="doc_img"/> -->
5353

54-
## Capture the Test Case Insights for HyperExecute
54+
## Capture Test Case Insights for App Automation
55+
56+
### Capture by WebHook
57+
You can use LambdaHooks to start and end a test case within a single Appium session.
58+
59+
#### Test Case Start
60+
61+
To start a test case, use the `lambda-testCase-start` hook:
62+
63+
```java
64+
// To start a test case
65+
((JavascriptExecutor) driver).executeScript("lambda-testCase-start=find Name");
66+
```
67+
68+
#### Test Case End
69+
70+
To end a test case, use the `lambda-testCase-end` hook:
71+
72+
```java
73+
// To end a test case
74+
((JavascriptExecutor) driver).executeScript("lambda-testCase-end=find Name");
75+
76+
```
77+
78+
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+
80+
## Capture Test Case Insights for HyperExecute
5581

5682
### Capture by WebHook
5783

0 commit comments

Comments
 (0)