
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. Problem related to java Development kit(JDK)



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
2. Problem related to node js



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
3. Problem-related to Android SDK Manager



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:
- The Android – studio does not install or is not seen on the system start menu.
- required to set android_home path
- Android Emulator is not found.
- Android version not find
solution
install android studio from Ubuntu software or
open terminal and type:
sudo snap install --classic android-studio
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
Required android emulator is installed manually from Android Studio for the following below path:
Path:- Android studio>SDK manager>SDK tools>Android Emulator



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



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
- After downloading the appium perform this step :



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



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://www.browserstack.com/guide/appium-tutorial-for-testing