Install Appium with Android Studio
Step 1: Install node and npm
1. Check whether the node is already installed on your system or not.
2. Click command + space to open spotlight search and search the terminal and open the terminal past the following command on the terminal:
node –version
3. If the node is not installed then you will get this kind of message:
-bash: node: command not found
Otherwise, you will get the version of node “Goto step 2”.
3. Now check for npm:
npm –version
If the npm is not in your system then you will get this kind of message:
env: node: No such file or directory
3. Otherwise, you will get the version of npm. Now, “Goto step 2”.
Install node.js
4. If you have brewed in your system then run the following command on the terminal to install node.js.
brew install node
Else Search:
5. You can just open the first website and then get the macOS installer.
6. Once the installer is downloaded successfully just install it and now again check the node.js for this follow the first step
and then “Goto step 2”.
Step 2: Install Appium
1. Once the node, npm is installed then run any one of the following commands on the terminal to install the appium:
npm install -g appium
Or
npm i –location=global appium
The above command will download and install Appium on your system.
Step 3: Check whether Appium is installed or not
1. Once installation is done just check the appium and run the following command on the terminal
appium –version
2. If the version is displayed then congratulations you have successfully installed the appium on your system.
3. Else any error message then just follow the above steps and try it again.
Step 4: Install JAVA JDK
1. First, check the Java is already installed or not.
java -version
2. Install in case it is not installed.
Step 5: Install Android Studio
If you have Android Studio already installed then skip this step else check.
Step 6: Set JAVA_HOME and ANDROID_HOME in the .bash _profile file
1. Navigate to the home directory.
cd ~/
2. Open the bash profile file:
open -e bash_profile
3. Create a bash profile:
touch .bash_profile
4. Open bash profile:
open -e .bash_profile
export JAVA_HOME=($/us/libexec/java_home)
export ANDROID_HOME=${HOME}/Library/Android/sdk
export PATH=”${JAVA_HOME}/bin:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH}”
5. Save the .bash_profile file using command+S.
6. Use the following command:
source .bash_profile
7. Let’s check the installation path of java_home and Android_home:
echo $JAVA_HOME
echo $ANDROID_HOME
Step 7: Run appium doctor to verify the installation
1. Command to install appium-doctor:
npm install -g appium-doctor
2. Command to get appium-doctor help:
appium-doctor -h
3. Command to check Android setup:
appium-doctor –android
Ignore warnings if you get them.
Step 8: Installation done
Let’s see how to configure the appium in Android Studio.
How to Install Appium on Mac?
Imagine you have a smartphone with lots of different apps on it. Now, testing those apps to make sure they work properly can be a big job, especially if they need to work on different kinds of phones like iPhones and Androids. That’s where Appium comes in! Appium is like a special tool that helps to test these apps automatically.
Table of Content
- What is Appium?
- Prerequisites
- Software Needed for Appium Installation
- Install Appium Using npm (command-line approach)
- Install Appium Using Appium Desktop GUI
- Install Appium with Android Studio
- Configure Appium in Android Studio
- Common Error of Appium
- Conclusion
Instead of someone having to tap on buttons and type things over and over again, Appium can do it automatically. It’s kind of like a robot tester for apps and it works for all sorts of apps, whether they’re for playing games, shopping online, or checking the weather. So, it’s like having an automatic tester tool that checks all your apps to make sure they’re working just right!
Contact Us