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/lambda-hooks.md
+12-33Lines changed: 12 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,39 +57,18 @@ Below is the representation of the available Lambda Hooks along with the functio
57
57
|*lambda-build*| For updating the build name.<br />`executeScript("lambda-build=BUILD_NAME");`|
58
58
|*lambda-action*| Used to mark a test as passed/failed. Moreover, it allows the option to include a failure reason, which will be visible on the LambdaTest Automation Dashboard inside the session view.<br />`Map<String, String> action = new HashMap();action.put("status", "failed"); action.put("reason", "tmp reason"); driver.executeScript("lambda-action", action);` <br /> <br />`((JavascriptExecutor) driver).executeScript("lambda-action=" + "Lambda Error");`|
59
59
|*lambda-perform-keyboard-events*| You can seamlessly simulate keyboard shortcuts like **ctrl + c**, **ctrl + v** in automation test scenarios. This hook is supported on both Windows and MacOS. <br /> `js.executeScript("lambda-perform-keyboard-events:tab");`|
60
-
|*lambda_breakpoint*| Aborts the test execution to use the live interaction feature. <br/>`driver.executeScript("lambda-breakpoint=true");`|
61
-
|*lambda_screenshot*| Captures the async screenshot during test execution. <br/>`driver.executeScript("lambda-screenshot=true");`|
62
-
|*lambda_files_delete*| Deletes the file in the download directory in the virtual machines (VMs).<br/>`driver.executeScript("lambda-files-delete=file1.csv,file2.csv);`|
63
-
|*lambda_network_throttle*| Throttles network speed during test execution.<br/>`executeScript("lambda-throttle-network","Regular 4G")`|
64
-
|*lambda_ping*| Fetches the IPs of the domain.<br/>`driver.executeScript("lambda-ping=lambdatest.com");`|
65
-
|*lambda_exceptions*| Uploads the exceptions for tests that are captured on the console.<br/>`driver.executeScript('lambda-exceptions', [[message]])`|
66
-
|*lambda_get_clipboard*| Prints the clipboard data on the console.<br/>`driver.executeScript("lambda-get-clipboard");`|
67
-
|*lambda_set_clipboard*| Sets the clipboard data.<br/>`driver.executeScript("lambda-set-clipboard= Amit");`|
68
-
|*lambda_clear_clipboard*| Clears the data of the clipboard.<br/>`driver.executeScript("lambda-clear-clipboard");`|
60
+
|*lambda_breakpoint*| Aborts the test execution to use the live interaction feature. <br/>`driver.executeScript("lambda-breakpoint=true");`|
61
+
|*lambda_screenshot*| Captures the async screenshot during test execution. <br/>`driver.executeScript("lambda-screenshot=true");`|
62
+
|*lambda_files_delete*| Deletes the file in the download directory in the virtual machines (VMs).<br/>`driver.executeScript("lambda-files-delete=file1.csv,file2.csv);`|
63
+
|*lambda_network_throttle*| Throttles network speed during test execution.<br/>`executeScript("lambda-throttle-network","Regular 4G")`|
64
+
|*lambda_ping*| Fetches the IPs of the domain.<br/>`driver.executeScript("lambda-ping=lambdatest.com");`|
65
+
|*lambda_exceptions*| Uploads the exceptions for tests that are captured on the console.<br/>`driver.executeScript('lambda-exceptions', [[message]])`|
66
+
|*lambda_get_clipboard*| Prints the clipboard data on the console.<br/>`driver.executeScript("lambda-get-clipboard");`|
67
+
|*lambda_set_clipboard*| Sets the clipboard data.<br/>`driver.executeScript("lambda-set-clipboard= Amit");`|
68
+
|*lambda_clear_clipboard*| Clears the data of the clipboard.<br/>`driver.executeScript("lambda-clear-clipboard");`|
69
69
| *lambda_unbound_ping* | Fetches the IPs from the outbound domain.<br/>`driver.executeScript("lambda-unbound-ping=lambdatest.com");`
70
70
| *lambda:network* | Fetches the network log entries in array format during session.<br/><br/>`driver.execute_script("lambda:network");`- Fetch the network log from last fetch request time to current time.<br/><br/>`driver.execute_script("lambda:network=all");`- Fetch from start of test session to current time.
71
-
| *lambdaUpdateName* | Sets the test name during test execution.<br/><br/>`driver.executeScript("lambdaUpdateName=TestName");`
71
+
|*lambdaUpdateName*| Sets the test name during test execution.<br/><br/>`driver.executeScript("lambdaUpdateName=TestName");`|
72
+
|*lambda-test-tags*| Dynamically update your test tags for a test session which can be used to organize and filter your test results. <br /> **Syntax :**`driver.executeScript("lambda-test-tags=Tag 1,Tag 3Jan,Tag 2");` <br /> <br /> **Limitations :** <br /> **1. Maximum Character Length per Tag:** Each tag can have up to 50 characters. <br /> **2. Maximum Number of Tags:** A maximum of 15 tags can be assigned to a single test session. |
72
73
73
-
> **Note**: These hooks will only work if you're connected to your [LambdaTest Hub URL](/support/docs/hyperexecute-general-faqs/#17-how-can-i-access-my-lambdatest-hub-url). If you use these hooks on any other platform, you might see the error: `javascript error: Invalid left-hand side in assignment`
74
-
75
-
Got Questions? Give a **<span className="doc__lt" onClick={() => window.openLTChatWidget()}>Shout</span>** to us. We're here for you 24/7. <br />Happy testing! :)
> **Note**: These hooks will only work if you're connected to your [LambdaTest Hub URL](/support/docs/hyperexecute-general-faqs/#17-how-can-i-access-my-lambdatest-hub-url). If you use these hooks on any other platform, you might see the error: `javascript error: Invalid left-hand side in assignment`
0 commit comments