Android Stodio Uploading to the Moblie Phone

[Mobile] Configure Android Studio (Emulator)

The Android Emulator simulates Android devices on your computer so that you tin can test your application on a multifariousness of devices and Android API levels without needing to have each physical device. To learn more about the Android emulator capabilities and system requirements, you can refer to this Android developer document: Run apps on the Android Emulator.

In this article, nosotros guide you stride by step on how to configure Android Studio (Emulator) for mobile testing in Katalon.

Install Appium via NPM

  1. Download and install the suitable version of Node.js for your organization from the Node.js website: Downloads.

    Notes:

    • Brand sure you install Node.js into a location with full Read/Write permissions.
  2. Install Appium version 1.12.1 or newer via NPM. To install the latest Appium version, copy and paste the control-line argument as follows:

    npm install -thou appium

    Notes:

    • We recommend installing the latest Appium version.
    • Some emulators support Appium directly when installed. If you want to run an application on an emulator, check your emulator settings earlier installing Appium.

    To larn more than about Appium, yous can refer to the Appium document here: Getting started.

Configure Android Studio

Installation

Download and install Android Studio. You tin can download Android Studio from the Android developer website hither: Android Studio. Android Studio volition guide you through each stride during the installation and automatically download the necessary components to create emulators.

Create an Android project

  1. After installing successfully, in the Welcome Folio window, click Create new project. Android Studio provides a multifariousness of sample projects for you to choose from. Here, we choose Empty Action as an case, then click Next.

    Choose project template
  2. In the next interface, yous tin configure your project as follows:

    Name

    The name of your project.

    Package Name

    Past default, this is generated as com.instance.<projectname>.

    Save location

    The salvage location of your projection. In example y'all desire to change the default location, click Browse (folder icon).

    Language

    The language to build your Android app. You can select either Coffee or Kotlin from the dropdown card.

    Minimum SDK

     The lowest version of Android supported past your app

    Utilise legacy android.support libraries.

     If your app requires legacy library support, cheque this box. To learn more about Android support libraries, you can refer to the Android developer document hither:

    Support libraries

    Configure your project
  3. Click Finish. A new projection window opens containing sample files to build an Android app. If you want to acquire more about building an Android app, you tin refer to this Android programmer document: Build a simple user interface.

Create an emulator

  1. To create an emulator. In the master toolbar of the new project window, select Device Manager. An Android Virtual Device Manager opens.

    Choose AVD Manager
  2. Click Create Device. The Select Hardware folio opens, allowing y'all to choose your emulator's screen size, resolution, and pixel density. To get an overview nigh screen variations, you can refer to this Android developer certificate: Screen compatibility overview. After selecting the hardware, click Next.

    Select the hardware
  3. The Select arrangement image folio opens, asking you to select the system paradigm for a detail API level or an Android version. To learn more about Android versions and the respective API levels, y'all can refer to the Android developer certificate here: Understanding Android API levels.

    Select the system paradigm you lot desire to test. If you run across Download next to the system image you select, you need to click information technology to download its necessary components.

    For example: We choose the Pie Android version with an x86 arrangement image. Pie is the code name for Android version nine.0 and API level 28. After clicking Download, yous demand to accept Android Software Evolution Kit License Agreement, and so click Next to beginning downloading.

    Select system image

    Notes:

    • Katalon Studio can simply back up Android version half-dozen.0 or above. To learn more about the supported environment in Katalon Studio, you lot can refer to this document: Supported environment.
  4. After choosing the system image, click Next. The Verify Configuration folio appears.

  5. Alter the default name of your emulator if necessary, and so click Finish. A new emulator appears in the Device Manager.

    Launch the emulator

Launch an emulator

To launch an emulator, open the Device Manager, select the emulator you want to launch, then click Run.

Launch the emulator

If you desire to run the emulator via the command-line option, y'all can refer to the Android programmer document here: Start the emulator from the command line.

Verify successful Android devices connection

After launching the emulator, Katalon automatically recognizes the emulator as an Android device. To check whether Katalon successfully recognizes your Android emulator, y'all can open a Mobile Testing Sample Project in File > New sample projects > Sample Android Mobile Tests Project. Katalon Studio will observe and ask y'all to install Android SDK automatically if your current motorcar does not have information technology.

Open Android sample project

On the primary toolbar, select the Android device in the dropdown list adjacent to Run.

Regconize Android devices

You should encounter the name of your emulator appear as an Android device.

Notes:

  • You must commencement manually launch the emulator with Android Studio or via the command-line option for Katalon to recognize the device.
Choose emulator in Katalon

You can now execute mobile testing with the emulator.

Next step:

  • Create your get-go Android test case.

Meet also:

  • Troubleshoot automatic mobile testing

Feedback

castillogodge1989.blogspot.com

Source: https://docs.katalon.com/katalon-studio/docs/configure-android-studio.html

0 Response to "Android Stodio Uploading to the Moblie Phone"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel