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
- You must add the generated **APP_URL** to the `app` capability in the config file.
369
+
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
368
370
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
@@ -47,6 +51,8 @@ import TabItem from '@theme/TabItem';
47
51
></script>
48
52
49
53
54
+
55
+
50
56
In this documentation, you will learn how to trigger a automation script of **Cucumber** for application testing with **Appium** on LambdaTest, set the [**desired capabilities**](/support/docs/desired-capabilities-in-appium/) for appium testing, and other advanced features of LambdaTest.
51
57
52
58
## Prerequisites
@@ -204,6 +210,13 @@ public class TestRunner extends AbstractTestNGCucumberTests {
204
210
}
205
211
```
206
212
213
+
:::note
214
+
215
+
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
216
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
217
+
218
+
:::
219
+
207
220
### Step 5: Configure the Test Capabilities
208
221
209
222
You can update your custom capabilities in test scripts. In this sample project, we are passing platform name, platform version, device name and app url _(generated earlier)_ along with other capabilities like build name and test name via capabilities object.
@@ -229,6 +233,13 @@ public class LambdaTestJBehaveRunner {
229
233
}
230
234
```
231
235
236
+
:::note
237
+
238
+
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
239
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
240
+
241
+
:::
242
+
232
243
### Step 5: Configure the Test Capabilities
233
244
234
245
You can update your custom capabilities in test scripts. In this sample project, we are passing platform name, platform version, device name and app url _(generated earlier)_ along with other capabilities like build name and test name via capabilities object.
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
236
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
237
+
238
+
:::
239
+
229
240
</TabItem>
230
241
231
242
<TabItemvalue="ios"label="iOS"default>
@@ -329,6 +340,13 @@ public class ios {
329
340
}
330
341
```
331
342
343
+
:::note
344
+
345
+
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
346
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
354
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
355
+
356
+
:::
357
+
347
358
</TabItem>
348
359
349
360
</Tabs>
@@ -401,6 +412,7 @@ DesiredCapabilities capabilities = new DesiredCapabilities();
401
412
:::info
402
413
403
414
- You must add the generated **APP_URL** to the `app` capability in the config file.
415
+
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
404
416
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
@@ -360,6 +363,12 @@ DesiredCapabilities capabilities = new DesiredCapabilities();
360
363
capabilities.setCapability("devicelog", true);
361
364
```
362
365
366
+
:::note
367
+
368
+
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
369
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
370
+
:::
371
+
363
372
</TabItem>
364
373
365
374
<TabItemvalue="ios-config"label="iOS"default>
@@ -378,12 +387,19 @@ DesiredCapabilities caps = new DesiredCapabilities();
378
387
caps.setCapability("network", false);
379
388
```
380
389
390
+
:::note
391
+
392
+
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
393
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
394
+
:::
395
+
381
396
</TabItem>
382
397
</Tabs>
383
398
384
-
:::info
399
+
:::tip
385
400
386
401
- You must add the generated **APP_URL** to the `app` capability in the config file.
402
+
- You must set **isRealMobile** capability to `false` in the config file to run on **Virtual Devices**
387
403
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
300
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
280
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
281
+
282
+
:::
283
+
273
284
</TabItem>
274
285
<TabItemvalue="ios-config"label="iOS"default>
275
286
@@ -296,13 +307,15 @@ exports.capabilities = {
296
307
297
308
</Tabs>
298
309
299
-
:::info
310
+
:::tip
300
311
301
312
- You must add the generated **APP_URL** to the `app` capability in the config file.
313
+
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
302
314
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
303
315
304
316
:::
305
317
318
+
306
319
### Step 6: Execute and Monitor your Tests
307
320
308
321
- Execute the following commands to install the required dependencies:
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
311
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
364
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
@@ -114,6 +118,9 @@ Make sure to add the path of the **appFile** in the cURL request. Below is an ex
114
118
</Tabs>
115
119
116
120
:::tip
121
+
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
122
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
123
+
:::
117
124
- If you do not have any **.apk** or **.ipa** file, you can run your sample tests on LambdaTest by using our sample apps, :link:[Android app](https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk) or :link:[iOS app](https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_ios.ipa).
118
125
119
126
- Response of above cURL will be a **JSON** object containing the `APP_URL` of the format - `lt://APP123456789123456789` and will be used in the next step.
@@ -307,7 +314,11 @@ async function runAndroidTest() {
307
314
308
315
runAndroidTest();
309
316
```
317
+
:::note
310
318
319
+
- You must set **isRealMobile** capability to `False` in the config file to run on **Virtual Devices**
320
+
- You can generate capabilities for your test requirements with the help of our inbuilt [**Capabilities Generator tool**](https://www.lambdatest.com/capabilities-generator/).For more details, please refer to our guide on [**Desired Capabilities in Appium**](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/).
0 commit comments