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
In this documentation, we look at some APIs that will help you optimize your mobile app testing workflow. If you are performing live or automated app testing, you can use these APIs in your scripts to perform various actions.
49
48
50
49
## Fetching The Devices Available for Testing
51
-
***
52
-
50
+
<RealDeviceTagvalue="Real Device" />
53
51
To fetch the Devices that are available for running Tests.
54
52
55
53
<divclassName="lambdatest__codeblock">
@@ -237,8 +235,8 @@ Shown below is the response to the above cURL request.
237
235
</div>
238
236
239
237
## Generate publicly shareable build and test links
240
-
***
241
-
238
+
<RealDeviceTagvalue="Real Device" />
239
+
<VirtualDeviceTagvalue="Virtual Device" />
242
240
To generate public **shareable build link**, run the below cURL command.
@@ -47,9 +46,10 @@ import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/co
47
46
48
47
import Tabs from '@theme/Tabs';
49
48
import TabItem from '@theme/TabItem';
49
+
import RealDeviceTag from '../src/component/realDevice';
50
50
51
51
---
52
-
52
+
<RealDeviceTagvalue="Real Device" />
53
53
## Tutorial to test an app uploaded on Firebase
54
54
55
55
**Firebase** is a platform developed by **Google** for creating mobile and web applications. **LambdaTest cloud platform** provides you various methods to upload your files on a real device like from playstore and appstore. Uploading an app through Firebase is one such method.
Copy file name to clipboardExpand all lines: docs/appium-install-uninstall-hook.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,12 +44,19 @@ import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/co
44
44
45
45
import Tabs from '@theme/Tabs';
46
46
import TabItem from '@theme/TabItem';
47
+
import RealDeviceTag from '../src/component/realDevice';
48
+
import VirtualDeviceTag from '../src/component/virtualDevice';
49
+
50
+
51
+
<RealDeviceTagvalue="Real Device" />
52
+
<VirtualDeviceTagvalue="Virtual Device" />
47
53
48
54
## Introduction
49
55
50
56
LambdaTest now allows you to install and uninstall apps in the middle of your automated tests. This means you don’t need to restart the session every time you want to switch apps, upgrade them, or clean up the device.
LambdaTest enables you to install and uninstall applications during automation test execution by using commands that can be run through WebDriver's script execution functionality.
Copy file name to clipboardExpand all lines: docs/appium-lambdaHooks.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,13 @@ import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/co
46
46
47
47
import Tabs from '@theme/Tabs';
48
48
import TabItem from '@theme/TabItem';
49
+
import RealDeviceTag from '../src/component/realDevice';
50
+
import VirtualDeviceTag from '../src/component/virtualDevice';
49
51
50
52
53
+
<RealDeviceTagvalue="Real Device" />
54
+
<VirtualDeviceTagvalue="Virtual Device" />
55
+
51
56
52
57
This document will help you provide lambdahooks which can be used to improve your test scripts to easily debug your test cases for **App Automation on Real Devices** on **LambdaTest Cloud**.
- Response of above cURL will be a **JSON** object containing the `App URL` of the format - ``lt://APP123456789123456789``
83
115
84
116
:::warning note
85
117
The upload time of your application can range from a few seconds to a minute, depending on the size of your application. Therefore, do not interrupt the cURL command request until you receive the response.
86
118
:::
87
119
88
-
## Fetch your Applications
120
+
## Fetch your Applications for Real Devices
89
121
90
122
<TabsclassName="docs__val">
91
123
@@ -129,10 +161,48 @@ Shown below is the response to the above cURL request.
129
161
}
130
162
```
131
163
164
+
## Fetch your Applications for Virtual Devices
165
+
166
+
<TabsclassName="docs__val">
167
+
168
+
<TabItemvalue="android"label="Android"default>
169
+
<divclassName="lambdatest__codeblock">
170
+
<CodeBlock className="language-bash">
171
+
{`curl --location --request GET "https://${ YOUR_LAMBDATEST_USERNAME()}:${ YOUR_LAMBDATEST_ACCESS_KEY()}@manual-api.lambdatest.com/app/data?type=emulator&level=user"`}
172
+
</CodeBlock>
173
+
</div>
174
+
175
+
</TabItem>
176
+
177
+
<TabItemvalue="ios"label="iOS"default>
178
+
<divclassName="lambdatest__codeblock">
179
+
<CodeBlock className="language-powershell">
180
+
{`curl --location --request GET "https://${ YOUR_LAMBDATEST_USERNAME()}:${ YOUR_LAMBDATEST_ACCESS_KEY()}@manual-api.lambdatest.com/app/data?type=simulator&level=user"`}
181
+
</CodeBlock>
182
+
</div>
183
+
184
+
</TabItem>
185
+
</Tabs>
186
+
187
+
132
188
## Deleting your Application
133
189
134
-
To delete your uploaded apps, run the below cURL command.
@@ -143,6 +213,9 @@ To delete your uploaded apps, run the below cURL command.
143
213
`}
144
214
</CodeBlock>
145
215
</div>
216
+
</TabItem>
217
+
218
+
</Tabs>
146
219
147
220
Shown below is the response to the above cURL request.
148
221
@@ -154,13 +227,30 @@ Shown below is the response to the above cURL request.
154
227
155
228
## Processing check for your Application
156
229
157
-
To unlock features such as network logs, image injection, and screenshotunblock feature for your application, app needs to undergo a processing phase. This processing takes a few minutes after the application is uploaded. You can verify if the processing is complete before running your automation script using the following API.
230
+
<TabsclassName="docs__val">
158
231
232
+
<TabItemvalue="real"label="Real Device"default>
159
233
<divclassName="lambdatest__codeblock">
160
234
<CodeBlockclassName="language-bash">
161
235
{`curl --location --request POST 'https://mobile-api.lambdatest.com/mobile-automation/api/v1/fetchpatchedapkurl' \
@@ -169,6 +259,9 @@ To unlock features such as network logs, image injection, and screenshotunblock
169
259
}'`}
170
260
</CodeBlock>
171
261
</div>
262
+
</TabItem>
263
+
264
+
</Tabs>
172
265
173
266
The payload allows you to check the processing status for specific features. If the **patched_url** is empty, the processing is still in progress. To check if the processing for image injection or screenshot unblock is complete, pass either **imageInjectionEnabled** or **screenshotUnblockEnabled** as `true` based on the feature you are testing.
> Learn how to [Upload Apps on LambdaTest’s Real Device Cloud](/support/docs/upload-apps-on-real-device-cloud/) in detail.
61
67
68
+
:::info
69
+
- You can access the [**Virtual Device Dashboard**](https://app.lambdatest.com/console/realtime/app).
70
+
- For **Virtual Devices**, the steps remain identical to those for Real Devices.
71
+
- The only difference is that for **iOS applications**, you must upload a **.zip** file instead of an `.ipa` file, as simulators accept `.zip` format.
72
+
:::
73
+
62
74
## Automation Dashboard
63
75
-**Access the App Automation Dashboard :** Log in to your LambdaTest account and navigate to the [App Automation Dashboard](https://appautomation.lambdatest.com/build).
64
76
-**Upload the Application :** Click the Browse File button in the App tab under the Real Device or Virtual Device section. Select your application file from your local system:
65
77
-**Android :** Upload a `.aab` or `.apk` file.
66
78
-**iOS :** Upload an `.ipa` file.
67
79
-**Copy the App URL :** After uploading, an `app_url` will be generated (format: `"lt://<app_url>"`). Copy this app_url and use it in your test scripts to identify your application.
0 commit comments