Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 12 additions & 33 deletions docs/lambda-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,39 +57,18 @@ Below is the representation of the available Lambda Hooks along with the functio
| *lambda-build* | For updating the build name.<br />`executeScript("lambda-build=BUILD_NAME");` |
| *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");` |
| *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");`|
| *lambda_breakpoint* | Aborts the test execution to use the live interaction feature. <br/>`driver.executeScript("lambda-breakpoint=true");` |
| *lambda_screenshot* | Captures the async screenshot during test execution. <br/>`driver.executeScript("lambda-screenshot=true");` |
| *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);` |
| *lambda_network_throttle* | Throttles network speed during test execution.<br/>`executeScript("lambda-throttle-network","Regular 4G")` |
| *lambda_ping* | Fetches the IPs of the domain.<br/>`driver.executeScript("lambda-ping=lambdatest.com");` |
| *lambda_exceptions* | Uploads the exceptions for tests that are captured on the console.<br/>`driver.executeScript('lambda-exceptions', [[message]])` |
| *lambda_get_clipboard* | Prints the clipboard data on the console.<br/>`driver.executeScript("lambda-get-clipboard");` |
| *lambda_set_clipboard* | Sets the clipboard data.<br/>`driver.executeScript("lambda-set-clipboard= Amit");` |
| *lambda_clear_clipboard* | Clears the data of the clipboard.<br/>`driver.executeScript("lambda-clear-clipboard");` |
| *lambda_breakpoint* | Aborts the test execution to use the live interaction feature. <br/>`driver.executeScript("lambda-breakpoint=true");`|
| *lambda_screenshot* | Captures the async screenshot during test execution. <br/>`driver.executeScript("lambda-screenshot=true");`|
| *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);`|
| *lambda_network_throttle* | Throttles network speed during test execution.<br/>`executeScript("lambda-throttle-network","Regular 4G")`|
| *lambda_ping* | Fetches the IPs of the domain.<br/>`driver.executeScript("lambda-ping=lambdatest.com");`|
| *lambda_exceptions* | Uploads the exceptions for tests that are captured on the console.<br/>`driver.executeScript('lambda-exceptions', [[message]])`|
| *lambda_get_clipboard* | Prints the clipboard data on the console.<br/>`driver.executeScript("lambda-get-clipboard");`|
| *lambda_set_clipboard* | Sets the clipboard data.<br/>`driver.executeScript("lambda-set-clipboard= Amit");`|
| *lambda_clear_clipboard* | Clears the data of the clipboard.<br/>`driver.executeScript("lambda-clear-clipboard");`|
| *lambda_unbound_ping* | Fetches the IPs from the outbound domain.<br/>`driver.executeScript("lambda-unbound-ping=lambdatest.com");`
| *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.
| *lambdaUpdateName* | Sets the test name during test execution.<br/><br/>`driver.executeScript("lambdaUpdateName=TestName");`
| *lambdaUpdateName* | Sets the test name during test execution.<br/><br/>`driver.executeScript("lambdaUpdateName=TestName");` |
| *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 3,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. |

> **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`

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! :)

<nav aria-label="breadcrumbs">
<ul className="breadcrumbs">
<li className="breadcrumbs__item">
<a className="breadcrumbs__link" target="_self" href="https://www.lambdatest.com">
Home
</a>
</li>
<li className="breadcrumbs__item">
<a className="breadcrumbs__link" target="_self" href="https://www.lambdatest.com/support/docs/">
Support
</a>
</li>
<li className="breadcrumbs__item breadcrumbs__item--active">
<span className="breadcrumbs__link">
Lambda Hooks
</span>
</li>
</ul>
</nav>
> **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`
16 changes: 5 additions & 11 deletions docs/supported-appium-versions-on-emulator-simulator.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,17 @@ The following table lists the Android versions supported for app testing, along

| Android Versions | Supported Appium Versions (Android) |
|------------------|-------------------------------------|
| 7 | ['2.2.1', '2.3.0'] |
| 8 | ['2.2.1', '2.3.0'] |
| 9 | ['2.2.1', '2.3.0'] |
| 10 | ['2.2.1', '2.3.0'] |
| 11 | ['2.2.1', '2.3.0'] |
| 12 | ['2.2.1', '2.3.0'] |
| 13 | ['2.2.1', '2.3.0'] |
| 14 | ['2.2.1', '2.3.0'] |
| 15 | ['2.2.1', '2.3.0'] |
| 11 | ['1.21.0', '1.22.3', '2.2.1', '2.3.0'] |
| 12 | ['1.21.0', '1.22.3', '2.2.1', '2.3.0'] |
| 13 | ['1.21.0', '1.22.3', '2.2.1', '2.3.0'] |
| 14 | ['1.21.0', '1.22.3', '2.2.1', '2.3.0'] |
| 15 | ['1.21.0', '1.22.3', '2.2.1', '2.3.0'] |

### 1.2 Supported iOS Versions for App Testing
The following table lists the iOS versions supported for app testing, along with the corresponding Appium versions.

| iOS Versions | Supported Appium Versions (iOS) |
|--------------|---------------------------------|
| 12 | ['2.2.1', '2.3.0'] |
| 13 | ['2.2.1', '2.3.0'] |
| 14 | ['2.2.1', '2.3.0'] |
| 15 | ['2.2.1', '2.3.0'] |
| 16 | ['2.2.1', '2.3.0'] |
Expand Down
Loading