Skip to content

Commit 1bb3460

Browse files
Aman1905Ishavyas9
authored andcommitted
biometric, camera injection, xctestplan
1 parent 4dee730 commit 1bb3460

File tree

4 files changed

+35
-45
lines changed

4 files changed

+35
-45
lines changed

docs/biometric-authentication.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ Below given is the list of Biometric Authentication APIs which are supported. Pl
7474
|`canEvaluatePolicy`: The canEvaluatePolicy(_:error:) method of LAContext that checks whether a specific biometric authentication policy can be evaluated on the device.|
7575
</div>
7676

77+
:::warning note
78+
We don’t support apps using IOS Keychain APIs with Biometric access control. For more details [IOS Keychain Documentation](https://developer.apple.com/documentation/localauthentication/accessing-keychain-items-with-face-id-or-touch-id)
79+
:::
80+
7781
</TabItem>
7882

7983
<TabItem value="powershell" label="Android >= version 11" default>
@@ -83,12 +87,14 @@ Below given is the list of Biometric Authentication APIs which are supported. Pl
8387
|----------------|
8488
| `BiometricPrompt` class's `authenticate` method from the **AndroidX Biometric library** is used for Biometric authentication on Android devices. <br /><br />📕For details, please check [AndroidX Biometric Documentation](https://developer.android.com/jetpack/androidx/releases/biometric). |
8589
| **Android's Native** `BiometricPrompt` API is part of the Android platform and is used for Biometric authentication on Android devices.<br /><br />📕 For details, please check [Android Developers Documentation](https://developer.android.com/reference/android/hardware/biometrics/BiometricPrompt).|
90+
| `BiometricManager` API<br /><br /> 📕 For more details [BiometricManager Documentation](https://developer.android.com/reference/android/hardware/biometrics/BiometricManager) |
91+
| `KeyguardManager` API <br /><br />📕 For more details [KeyguardManager Documentation](https://developer.android.com/reference/android/app/KeyguardManager) |
8692
</div>
8793

8894
</TabItem>
8995
</Tabs>
9096

91-
:::warning note
97+
:::tip
9298
The OS versions and APIs mentioned above are subject to change as per the latest OS updates and best practices recommended by Android and iOS.
9399
:::
94100

docs/camera-image-injection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import TabItem from '@theme/TabItem';
4848
})
4949
}}
5050
></script>
51-
5251
Camera Image Injection feature allows you to test **image capturing, QR code scanning**, and **barcode scanning** functionalities in your app across **3000+ real devices** on the LambdaTest Real Device Cloud platform.
5352

5453
This tool is ideal for testing features such as:
@@ -84,7 +83,8 @@ Below given is the list of Camera APIs which are supported by LambdaTest Image I
8483
| Supported APIs |
8584
|----------------|
8685
| `didFinishPickingMediaWithInfo` API of `UIImagePickerController` iOS SDK class for capturing an image. <br /><br /> 📕 For details, please check [Apple documentation](https://developer.apple.com/documentation/uikit/uiimagepickercontrollerdelegate/1619126-imagepickercontroller)|
87-
| `AVCapturePhoto` iOS SDK class for receiving captured photos from `AVCapturePhotoOutput` API. <br /><br />📕 For details, please check [Apple Documentation](https://developer.apple.com/documentation/avfoundation/avcapturephoto). |
86+
| `AVCapturePhoto` iOS SDK class for receiving captured photos from `AVCapturePhotoOutput` API. <br /><br />📕 For details, please check [Apple Documentation](https://developer.apple.com/documentation/avfoundation/avcapturephoto).|
87+
| `AVMetadataMachineReadableCodeObject` is a subclass of `AVMetadataObject` iOS SDK class for scanning QR/Barcodes. <br /><br />📕 For more details, please check [AVMetadataMachineReadableCodeObject Documentation](https://developer.apple.com/documentation/avfoundation/avmetadatamachinereadablecodeobject) |
8888
</div>
8989

9090
</TabItem>

docs/sharding-xcui.md

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,9 @@ You can refer to this example and screenshot below:
258258
:::
259259

260260
## Filters in Sharding
261-
262261
You can filter the Classes / Tests that you'd like to execute using filters.
263262
Here's an example of the same.
264263

265-
266264
```java
267265
filters:
268266
attributes:
@@ -271,31 +269,23 @@ filters:
271269
- type: testName
272270
values: ["LambdaUiKitIOSUITests/testverifyAppLaunch"]
273271
```
274-
275272
This example will run only the 2 classes & one test as mentioned from the TestSuite.
276273

277-
## Additional Links
274+
## XCTestPlan in Sharding
275+
To implement the XCTestPlan in Sharding, add the `xctestplan` flag along with `app` and `testSuite` in the [framework](https://www.lambdatest.com/support/docs/hyperexecute-yaml-version0.2/#framework) flag as shown below:
278276

279-
---
277+
```yaml
278+
framework:
279+
name: "ios/xcui"
280+
args:
281+
"app" : "lt://APP_ID",
282+
"testSuite": "lt://TEST_SUITE_ID",
283+
"xctestplan" : "lt://YOUR_XC_TEST_PLAN_ID" #only when you want to use XCTestPlan
284+
```
280285

286+
> Refer the documentation to learn how to use [XCTestPlan feature](/support/docs/xctestplan/).
287+
288+
## Additional Links
281289
- [Advanced Configuration for Capabilities](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/)
282290
- [How to test locally hosted apps](https://www.lambdatest.com/support/docs/testing-locally-hosted-pages/)
283291
- [How to integrate LambdaTest with CI/CD](https://www.lambdatest.com/support/docs/integrations-with-ci-cd-tools/)
284-
285-
<nav aria-label="breadcrumbs">
286-
<ul className="breadcrumbs">
287-
<li className="breadcrumbs__item">
288-
<a className="breadcrumbs__link" target="_self" href="https://www.lambdatest.com">
289-
Home
290-
</a>
291-
</li>
292-
<li className="breadcrumbs__item">
293-
<a className="breadcrumbs__link" target="_self" href="https://www.lambdatest.com/support/docs/">
294-
Support
295-
</a>
296-
</li>
297-
<li className="breadcrumbs__item breadcrumbs__item--active">
298-
<span className="breadcrumbs__link">Sharding in XCUIT</span>
299-
</li>
300-
</ul>
301-
</nav>

docs/xctestplan.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,14 @@ Take note of the base64 encoded authentication which needs to be added in the
193193

194194
<TabItem value="bash" label="Linux / MacOS" default>
195195

196-
<div className="lambdatest__codeblock">
197-
<CodeBlock className="language-bash">
198-
199-
```bash
196+
```yaml
200197
curl --location --request POST 'https://mobile-api.lambdatest.com/framework/v1/xcui/build' \
201198
--header 'Authorization: Basic BASIC_AUTH_TOKEN' \
202199
--header 'Content-Type: application/json' \
203200
--data-raw '{
204-
"app" : "APP_ID",
205-
"testSuite": "TEST_SUITE_ID",
201+
"app" : "lt://APP_ID",
202+
"testSuite": "lt://TEST_SUITE_ID",
203+
"xctestplan" : "lt://YOUR_XC_TEST_PLAN_ID" #only when you want to use XCTestPlan
206204
"device" : ["iPhone 11-14"],
207205
"video" : true,
208206
"queueTimeout": 10800,
@@ -213,23 +211,18 @@ curl --location --request POST 'https://mobile-api.lambdatest.com/framework/v1/x
213211
}'
214212
```
215213

216-
</CodeBlock>
217-
</div>
218-
219214
</TabItem>
220215

221216
<TabItem value="powershell" label="Windows" default>
222217

223-
<div className="lambdatest__codeblock">
224-
<CodeBlock className="lamguage-powershell">
225-
226-
```bash
218+
```yaml
227219
curl --location --request POST "https://mobile-api.lambdatest.com/framework/v1/xcui/build" \
228220
--header "Authorization: Basic BASIC_AUTH_TOKEN" \
229221
--header "Content-Type: application/json" \
230222
--data-raw "{
231-
"app" : "APP_ID",
232-
"testSuite": "TEST_SUITE_ID",
223+
"app" : "lt://APP_ID",
224+
"testSuite": "lt://TEST_SUITE_ID",
225+
"xctestplan" : "lt://YOUR_XC_TEST_PLAN_ID" #only when you want to use XCTestPlan
233226
"device" : ["iPhone 11-14"],
234227
"video" : true,
235228
"queueTimeout": 10800,
@@ -239,14 +232,15 @@ curl --location --request POST "https://mobile-api.lambdatest.com/framework/v1/x
239232
"build" : "Proverbial-XCUITest"
240233
}"
241234
```
242-
</CodeBlock>
243-
</div>
244-
245235
</TabItem>
246236
</Tabs>
247237

248238
## Step 4: View Test Execution
249239

250240
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 Automation](https://accounts.lambdatest.com/login).
251241

252-
> **NOTE:** You cannot use XCTestPlan and [Filters](/support/docs/speedup-xcui/) simultaneously
242+
> **NOTE:** You cannot use XCTestPlan and [Filters](/support/docs/speedup-xcui/) simultaneously
243+
244+
:::tip
245+
To learn how to use XCTestPlan with sharding in XCUI, refer to the detailed guide in [Sharding for XCUI](http://localhost:3000/support/docs/sharding-rd-hyperexec/#xctestplan-in-sharding).
246+
:::

0 commit comments

Comments
 (0)