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
@@ -38,59 +40,39 @@ import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/co
38
40
})
39
41
}}
40
42
></script>
43
+
LambdaTest enables developers and testers to automate mobile app testing using cloud-based emulators and simulators. This eliminates the need for physical devices, streamlining the process of validating app functionality across a wide range of configurations. In this documеntation, learn how to run app automated tests on Emulators and Simulators using LambdaTest virtual testing cloud.
41
44
42
-
---
43
-
44
-
In this documеntation, learn how to run app automated tests on Emulators and Simulators using LambdaTest virtual testing cloud.
45
-
46
-
:::info Note
47
-
48
-
Currently, App Automation is available for Emulators and Simulators in the Beta phase, with support for the Appium framework. To use this feature, [Contact Sales](https://www.lambdatest.com/contact-us).
45
+
:::note
46
+
App Automation for Emulators and Simulators (**Beta**) supports Appium; contact [LambdaTest support](mailto:[email protected]) to access..
49
47
:::
50
48
51
49
## Prerequisites
52
-
---
53
-
54
-
Bеforе you gеt startеd with App Automation on LambdaTеst, makе surе you havе thе following prеrеquisitеs in placе:
55
-
56
-
1.[Sign up for a LambdaTеst account](https://accounts.lambdatest.com/register) if you havеn't alrеady.
4. Ensure you have an access to an **Android** app (*.apk* or *.aab* file) or an **iOS***zip* file (containing *.app* file).
52
+
- Sign up for a [LambdaTest account](https://accounts.lambdatest.com/register) if you haven't already.
53
+
- Download and install the [Appium Java Client](https://github.com/appium/java-client) to create automation scripts.
54
+
- Retrieve your [Username and Access Key](https://accounts.lambdatest.com/security).
55
+
- You have either Android application `.apk` or `.aab` or iOS application `.app` packaged in a `.zip`
63
56
64
-
:::tip
57
+
## Step 1: Upload your application
65
58
66
-
Don't have **.apk** or **.app** filеs? You can still run your samplе tеsts on LambdaTеst using our samplе Android and iOS applications, accеssiblе through thе following links:
Upload your **iOS** application (*.app* file) or **Android** application (*.apk* file) to the LambdaTest servers using our **REST API**.
70
60
61
+
:::tip Sample repo
62
+
You can download the sample codebase to quickly run your tests. <ahref="https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk"className="github__anchor"><img loading="lazy" src={require('../assets/images/icons/github.png').default} alt="Image" className="doc_img"/> Android sample app</a> <ahref="https://prod-mobile-artefacts.lambdatest.com/assets/docs/firefox.zip"className="github__anchor"><img loading="lazy" src={require('../assets/images/icons/github.png').default} alt="Image" className="doc_img"/>iOS sample app</a>
71
63
:::
72
64
73
-
## Run Your First Test
74
-
---
75
-
76
-
Here are the following steps to run your first app automated test on Emulators and Simulators.
77
-
78
-
### Step 1: Upload Your Application
79
-
80
-
Upload your **iOS** application (*.app* file) or **Android** application (*.apk* file) to the LambdaTest servers using our **REST API**. You need to provide your **Username** and **AccessKey** in the format `Username:AccessKey` in the **cURL** command for authentication. Make sure to add the path of the **appFile** in the cURL request. Here is an example cURL request to upload your app using our REST API:
81
-
82
-
import Tabs from '@theme/Tabs';
83
-
import TabItem from '@theme/TabItem';
65
+
You need to provide your **Username** and **AccessKey** in the format `Username:AccessKey` in the **cURL** command for authentication. Make sure to add the path of the **appFile** in the cURL request. Here is an example cURL request to upload your app using our REST API:
@@ -142,20 +124,14 @@ import TabItem from '@theme/TabItem';
142
124
</TabItem>
143
125
</Tabs>
144
126
145
-
:::info Note
146
-
147
-
Response of above cURL will be a **JSON** object containing the `App URL` of the format - ``lt://APP123456789123456789`` and will be used in the Step 2.
148
-
127
+
:::info
128
+
Response of above cURL will be a **JSON** object containing the `App URL` of the format - ``lt://APP123456789123456789`` and will be used in next steps.
149
129
:::
150
130
151
-
### Step 2: Write Your Automation Script
152
-
153
-
1. Write your automation script in your preferred language that Appium framework supports.
131
+
## Step 2: Write your automation script
132
+
Write your automation script in your preferred language that Appium framework supports. In the below test script, ensure to update the `app_url`, `username` and `accesskey`.
154
133
155
-
In the below test script, ensure to update the `app_url`, `username` and `accesskey`.
156
-
157
-
158
-
:::info Set the Capability
134
+
:::tip Note
159
135
To run the test on Emulator/Simulator, set the `isRealMobile` capability to `false`.
160
136
:::
161
137
@@ -363,82 +339,12 @@ simulatorTest()
363
339
</TabItem>
364
340
</Tabs>
365
341
366
-
2. Create `.XML` file in order to run your test and define device capabilities. Please find sample code below for the same.
367
-
368
-
<TabsclassName="docs__val">
369
-
<TabItemvalue="androidXML"label="Android"default>
370
-
371
-
```xml
372
-
<?xml version="1.0" encoding="UTF-8"?>
373
-
<!DOCTYPEsuite SYSTEM "http://testng.org/testng-1.0.dtd">
Debug and run your code. Run `iOSApp.java` or `AndroidApp.java` in your editor.
342
+
## Step 3: Execute your test case
433
343
434
-
### Step 4: View Test Execution
435
-
436
-
Once you have run your tests, you can view the test execution along with logs. You will be able to see the test cases passing or failing. You can view the same at LambdaTest [App Automation Dashboard](https://appautomation.lambdatest.com/build).
344
+
Run `iOSApp.java` or `AndroidApp.java` in your editor to debug and run your code. You can view the same at LambdaTest [App Automation Dashboard](https://appautomation.lambdatest.com/build).
437
345
438
346
## More About Desired Capabilities
439
-
---
440
-
441
-
Sample Capabilities for both Android and iOS are mentioned below -
347
+
LambdaTest supports a wide range of additional Desired Capabilities to customize your testing environment:
0 commit comments