From d4d4a6208c0976396b3bec277750c0d7737cc2f5 Mon Sep 17 00:00:00 2001 From: Aman Chopra Date: Thu, 5 Dec 2024 17:16:48 +0530 Subject: [PATCH] biometric, camera injection, xctestplan --- docs/biometric-authentication.md | 8 ++++++- docs/camera-image-injection.md | 4 ++-- docs/sharding-xcui.md | 36 ++++++++++++-------------------- docs/xctestplan.md | 32 ++++++++++++---------------- 4 files changed, 35 insertions(+), 45 deletions(-) diff --git a/docs/biometric-authentication.md b/docs/biometric-authentication.md index c03838d72..72e9f2bae 100644 --- a/docs/biometric-authentication.md +++ b/docs/biometric-authentication.md @@ -74,6 +74,10 @@ Below given is the list of Biometric Authentication APIs which are supported. Pl |`canEvaluatePolicy`: The canEvaluatePolicy(_:error:) method of LAContext that checks whether a specific biometric authentication policy can be evaluated on the device.| + :::warning note + 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) + ::: + @@ -83,12 +87,14 @@ Below given is the list of Biometric Authentication APIs which are supported. Pl |----------------| | `BiometricPrompt` class's `authenticate` method from the **AndroidX Biometric library** is used for Biometric authentication on Android devices.

๐Ÿ“•For details, please check [AndroidX Biometric Documentation](https://developer.android.com/jetpack/androidx/releases/biometric). | | **Android's Native** `BiometricPrompt` API is part of the Android platform and is used for Biometric authentication on Android devices.

๐Ÿ“• For details, please check [Android Developers Documentation](https://developer.android.com/reference/android/hardware/biometrics/BiometricPrompt).| + | `BiometricManager` API

๐Ÿ“• For more details [BiometricManager Documentation](https://developer.android.com/reference/android/hardware/biometrics/BiometricManager) | + | `KeyguardManager` API

๐Ÿ“• For more details [KeyguardManager Documentation](https://developer.android.com/reference/android/app/KeyguardManager) |
-:::warning note +:::tip 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. ::: diff --git a/docs/camera-image-injection.md b/docs/camera-image-injection.md index a1bb64012..19f3cad18 100644 --- a/docs/camera-image-injection.md +++ b/docs/camera-image-injection.md @@ -48,7 +48,6 @@ import TabItem from '@theme/TabItem'; }) }} > - 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. 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 | Supported APIs | |----------------| | `didFinishPickingMediaWithInfo` API of `UIImagePickerController` iOS SDK class for capturing an image.

๐Ÿ“• For details, please check [Apple documentation](https://developer.apple.com/documentation/uikit/uiimagepickercontrollerdelegate/1619126-imagepickercontroller)| - | `AVCapturePhoto` iOS SDK class for receiving captured photos from `AVCapturePhotoOutput` API.

๐Ÿ“• For details, please check [Apple Documentation](https://developer.apple.com/documentation/avfoundation/avcapturephoto). | + | `AVCapturePhoto` iOS SDK class for receiving captured photos from `AVCapturePhotoOutput` API.

๐Ÿ“• For details, please check [Apple Documentation](https://developer.apple.com/documentation/avfoundation/avcapturephoto).| + | `AVMetadataMachineReadableCodeObject` is a subclass of `AVMetadataObject` iOS SDK class for scanning QR/Barcodes.

๐Ÿ“• For more details, please check [AVMetadataMachineReadableCodeObject Documentation](https://developer.apple.com/documentation/avfoundation/avmetadatamachinereadablecodeobject) | diff --git a/docs/sharding-xcui.md b/docs/sharding-xcui.md index e08f97ab5..541c25715 100644 --- a/docs/sharding-xcui.md +++ b/docs/sharding-xcui.md @@ -258,11 +258,9 @@ You can refer to this example and screenshot below: ::: ## Filters in Sharding - You can filter the Classes / Tests that you'd like to execute using filters. Here's an example of the same. - ```java filters: attributes: @@ -271,31 +269,23 @@ filters: - type: testName values: ["LambdaUiKitIOSUITests/testverifyAppLaunch"] ``` - This example will run only the 2 classes & one test as mentioned from the TestSuite. -## Additional Links +## XCTestPlan in Sharding +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: ---- +```yaml +framework: + name: "ios/xcui" + args: + "app" : "lt://APP_ID", + "testSuite": "lt://TEST_SUITE_ID", + "xctestplan" : "lt://YOUR_XC_TEST_PLAN_ID" #only when you want to use XCTestPlan +``` +> Refer the documentation to learn how to use [XCTestPlan feature](/support/docs/xctestplan/). + +## Additional Links - [Advanced Configuration for Capabilities](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/) - [How to test locally hosted apps](https://www.lambdatest.com/support/docs/testing-locally-hosted-pages/) - [How to integrate LambdaTest with CI/CD](https://www.lambdatest.com/support/docs/integrations-with-ci-cd-tools/) - - diff --git a/docs/xctestplan.md b/docs/xctestplan.md index 4f508d152..2fb0e04a7 100644 --- a/docs/xctestplan.md +++ b/docs/xctestplan.md @@ -193,16 +193,14 @@ Take note of theย base64ย encoded authentication which needs to be added in the -
- - -```bash +```yaml curl --location --request POST 'https://mobile-api.lambdatest.com/framework/v1/xcui/build' \ --header 'Authorization: Basic BASIC_AUTH_TOKEN' \ --header 'Content-Type: application/json' \ --data-raw '{ - "app" : "APP_ID", - "testSuite": "TEST_SUITE_ID", + "app" : "lt://APP_ID", + "testSuite": "lt://TEST_SUITE_ID", + "xctestplan" : "lt://YOUR_XC_TEST_PLAN_ID" #only when you want to use XCTestPlan "device" : ["iPhone 11-14"], "video" : true, "queueTimeout": 10800, @@ -213,23 +211,18 @@ curl --location --request POST 'https://mobile-api.lambdatest.com/framework/v1/x }' ``` - -
-
-
- - -```bash +```yaml curl --location --request POST "https://mobile-api.lambdatest.com/framework/v1/xcui/build" \ --header "Authorization: Basic BASIC_AUTH_TOKEN" \ --header "Content-Type: application/json" \ --data-raw "{ - "app" : "APP_ID", - "testSuite": "TEST_SUITE_ID", + "app" : "lt://APP_ID", + "testSuite": "lt://TEST_SUITE_ID", + "xctestplan" : "lt://YOUR_XC_TEST_PLAN_ID" #only when you want to use XCTestPlan "device" : ["iPhone 11-14"], "video" : true, "queueTimeout": 10800, @@ -239,9 +232,6 @@ curl --location --request POST "https://mobile-api.lambdatest.com/framework/v1/x "build" : "Proverbial-XCUITest" }" ``` - -
-
@@ -249,4 +239,8 @@ curl --location --request POST "https://mobile-api.lambdatest.com/framework/v1/x 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). -> **NOTE:** You cannot use XCTestPlan and [Filters](/support/docs/speedup-xcui/) simultaneously \ No newline at end of file +> **NOTE:** You cannot use XCTestPlan and [Filters](/support/docs/speedup-xcui/) simultaneously + +:::tip +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). +::: \ No newline at end of file