LamdaTest Integration to Execute Mobile App Automation Scripts for iOS Devices

Modified on Mon, 7 Oct at 6:43 PM

Applies to Mobile App Automation using Python Appium framework for iOS devices


TABLE OF CONTENTS

1. Overview

2. Prerequisites

3. Integrating algoQA with LambdaTest

3.1 Configuring Automation Capabilities and Launching your app in the selected device

3.2 Configuring Application Settings file in the algoQA script generated folder

3.3 Triggering the build in LamdaTest

1. Overview

      algoQA is a technology platform for automating software testing, leveraging machine learning capabilities.

To begin using algoQA, start by Profiling the application under test using drag-and-drop UI widgets. Profiling involves creating an offline model of the application under test. Once you have completed the profiling and designed the tests, then algoQA generates Gherkin-based Feature Files and executable scripts.

By integrating algoQA with LambdaTest, you can perform automated browser testing on an online browser farm of 3000+ real browsers and operating system combinations, enhancing test coverage. You can execute mobile app automation scripts generated by algoQA on LamdaTest cloud environment.

2. Prerequisites

  • Ensure you have a LambdaTest account before proceeding with the integration. If you do not have an account, you can sign up for free.
  • In the Dashboard page, click this icon on the top-right corner to view the access key, as shown. Your username will be displayed alongside the registered username. For example, if your registered username is John Davis, it will appear as "John Davis" in place of 'username'.

3. Integrating algoQA with LambdaTest

3.1 Configuring Automation Capabilities and Launching your app in the selected device

Perform the following:

  1. Login to your LambdaTest account.
  2. Navigate to LambdaTest Automation Capabilities Generator section for specifying desired capabilities. For example, if you wish to test using Safari browser, then desired capabilities for Python Appium framework , as shown:
  3. Navigate to App Testing from the left panel.
  4. Click iOS icon.
  5. Click Upload button to upload your respective APK file >select the required device brand and device.
  6.  Click Start button to start the build.
  7. You can launch your app in selected device where you can perform your testing. In this case, Louise Philippe App is considered.

3.2 Configuring Application Settings file in the algoQA script generated folder

Perform the following:  

  1. Navigate to algoQA Platform by entering https://algoshack.com/ and Sign in with appropriate credentials.
  2. In the Main Canvas, click Generate Script button.  Follow the onscreen  instructions to generate the scripts.
  3. After generating the Python Appium scripts, navigate to the script downloaded folder to open Application Settings File.  For example, you can find Applications.XML file in an algoQA script generated folder for mobile automation available at   C:\Users\Admin\Downloads\ScriptGeneration_202410040608951000\AlgoAFScript_202410040608951000\features
  4. In the Applications Settings file, update the following as shown in the example table:

    Field Description 
    BrowserTypehttps://lamdatesturl.com
    deviceNameiphone 14
    automationName XCUITest
    PlatformNameiOS 
    PlatformVersion16
    BrowserName Safari
    UsernameParimala.bc
    Access keyHyDKmA3cf32RImwztkupVWUrZJFLFLWWyMRghDrUvNPSJXKymm
    LamdatestAppKey lt://APP1016040971727694151489425
    Testing Environement Lamdatest


  5. Navigate back to pom.xml directory and open 'Terminal' in the same directory.

  6. Run the following command to execute the script:
    behave -f allure_behave.formatter:AllureFormatter -o C:\Users\Admin\Downloads\ScriptGeneration_202410040608951000\AlgoAFScript_202410040608951000\features\temp -f pretty "C:\Users\Admin\Downloads\ScriptGeneration_202410040608951000\AlgoAFScript_202410040608951000\features"

3.3 Triggering the build in LamdaTest

Perform the following:

  1. Navigate to App Automation from the left pane by selecting Automation, as shown:
  2. When the build is triggered, system captures the live recording of the steps. 
  3. You can perform the following while live recording the steps in LamdaTest: 
    • You can view your Networks Logs, App Logs, and Device Logs. 

    • You can also view XPaths for a particular UI element/control after selecting the UI Inspector feature.
    • With the device controls, you can change the keyboard language, the device orientation, put device to sleep mode, increase and decrease volume.
    • For more information on the preceding topics, refer to the topic in LamdaTest - Realtime Native Mobile App Testing.

Note: If you don't have an existing .ipa file for iOS devices, then you can use the sample file from the LamdaTest here. Ensure to create the test scenario from the same app uploaded.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article