Problems In Appium Tool Installation With Ubuntu

Reading Time: 4 minutes
Mobile Automation Testing with Appium - Mobile Web Testing | HeadSpin

In this blog, we try to solve the Problems which generally people face during the Appium tool Installation with the ubuntu(Linux-based) operating system.

Appium tool is an open-source, cross-platform automation testing tool, and therefore we use the Appium tool in testing native applications, mobile-web applications, and hybrid applications using a web driver. The Appium server is a script in Node.js and Appium tool is also compatible with leading client libraries like Java, Python, Ruby, PHP, and a few others.

The tool focuses on both Android and ios apps and is only restricted to the mobile application testing domain.

Appium does not depend on mobile device operating systems because it has a framework that converts the Selenium web driver commands to UIAutomator commands for Android and iOS respectively.it only depends on the device type rather than its OS.

Pre-requisties

Downloading and Installing below softwares

  1. Install the Java Development Kit (JDK)
  2. Node j’s
  3. Android SDK manager
  4. Appium
How to Install Java Development Kit(JDK) on Windows | by Yiğitcan Nalcı |  How to start developing Java applications on Windows? | Medium

for installation of java simple type,

sudo apt install default-jre

Error faced in this phase:

  • Java jdk does not install.
  • required to set java_home path

solution

initially, We install the Java JDK in our system by updating and upgrading our system repository, repeating the previous step.

Sudo apt-get update 
Sudo apt-get upgrade

set the java_home path like:

export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64

To check whether your JAVA_HOME path saves, enter the following command to check.

echo JAVA_HOME
Node.js Nedir? Sağladığı Avantajlar ve Örnek Uygulama

for installation of node js we simply type:

Sudo apt install nodejs

Error faced in this phase:

solution

We install the node js in our system by updating and upgrading our system repository and following the below steps.

Sudo apt-get update 
Sudo apt-get upgrade
Sudo apt install nodejs

for checking node js version

node -v

for the latest version simply type

curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install -y nodejs
Mobile app testing automation - Appium and Android Studio - Testing Tools

First, download the Android Studio here;  by default, we get pre-install android-SDK, SDK-tools, ADB devices in Android studio.

Error faced in this phase:

  1. The Android – studio does not install or is not seen on the system start menu.
  2. required to set android_home path
  3. Android Emulator is not found.
  4. Android version not find

solution

  • The Android – studio does not install or is not seen on the system start menu.
  • install android studio from Ubuntu software or

    open terminal and type:

    sudo snap install --classic android-studio

  • set android_home path-
  • open terminal and type:

    export ANDROID_HOME=$/home/knoldus/Android/Sdk

    To check whether your ANDROID_HOME path saves, enter the following command to check.

    echo $ANDROID_HOME

  • An android Emulator is not found
  • Required android emulator is installed manually from Android Studio for the following below path:

    Path:- Android studio>SDK manager>SDK tools>Android Emulator

    Android SDK

  • id version not found
  • Required android versions are installed manually from Android Studio for the following below path:

    Path:- Android studio>SDK manager>SDK Platforms>Android version.

    4. Appium install in ubantu

    in this article, we download only Appium desktop (GUI) from here

    Use Appium Desktop to Boost Your Appium Efficiency - Bitbar

    Error faced in this phase:

    • After successfully downloading, you could not install the appium GUI and appium Inspector.
    • get an error while creating a session on an emulator with the help of the appium server and appium inspector

    solution

    1. After downloading the appium perform this step :
    How to Use AppImage on Linux (Beginner Guide) – TecAdmin

    then again double click over it and its starts to launch

    2. First, start the server and then run the emulator after adding the desired ability; follow this step…

    add /wd/hub in Remote Path

    Appium session does not start from Appium CLI and Appium Desktop · Issue  #1119 · appium/appium-desktop · GitHub
    hope this information is helpful

    That’s all for this blog, Hope so learned about problems related to appium during installation in ubuntu, and in the next blog, we will learn about problems related to the appium during a session so stay tuned.

    References

    https://appium.io/

    https://www.browserstack.com/guide/appium-tutorial-for-testing

    Written by 

    I am a Software Consultant in knoldus software limited, I have 6 months past experience and I am a quick learner, self-motivated, and etc