Step 1:
Download java from the following link
https://download.oracle.com/java/20/latest/jdk-20_windows-x64_bin.exe (sha256)
and
set Java_Home in environmental variables and install it.
Go to the Program Files and go to folder Java
Ex: c:\ProgramFiles\java\jdk-11
Copy the path and go to Environment variables for Java_Home.
Environment variables -> System variables -> New -> type ‘JAVA_HOME’ -> Variable Value : c:\ProgramFiles\java\jdk-11
Verify through command prompt :
Java - version
where java
Step 2:
Download Android STUDIO from the following link :
https://developer.android.com/studio#downloads
(it gives .exe files with 2 files as SDK and STUDIO)
Steps:
Install type : standard
Keep default all the settings including sdk
Copy the sdk folder path for system variable :
C:\User\’UserName’\AppData\Local\Android\Sdk
Environment variables -> System variables -> New -> type ‘ANDROID_HOME’ -> Variable Value : C:\Users\’UserName’\AppData\Local\Android\Sdk Save.
-
Copy the path for C:\Users\’UserName’\AppData\Local\Android\Sdk\tools\bin and create a path in the environment variable under System Variables.
-
Copy the path for C:\Users\’UserName’\AppData\Local\Android\Sdk\tools
-
Copy the path for
C:\Users\’UserName’\AppData\Local\Android\Sdk\platform-tools
Step 3:
Open Android Studio
Tools -> Device Manager
Create Device -> Select the ‘Phone’ ‘Name’ and install Virtual
Mobile.
Appium can be installed in 2 ways
(better to install in both ways in our os)
-
Via Node.js
-
By downloading Appium Desktop.
Appium installation via Node.js
Node.js is an open source, cross-platform, backend Java Script runtime environment.
from the above url, download and install
after installation, check the version in cmd prompt.
-
Open the command prompt
-
Use command :
node – version or node -v
- After installation copy the nodejs path
(C:\Program Files\nodejs) and paste in ‘System Variables’.
System Variables -> Name -> ‘NODE_HOME’ -> Value -> C:\Program Files\nodejs
- Set ‘npm Environment variables path’:
C:\Program Files\nodejs\node_modules\npm\bin
Copy the above path and paste under path in System environment variable.
NPM is a package manager for Node.js packages. It is automatically installed in our system when Node.js installed.
Use below command to install Appium Server
npm install -g Appium
to check version and where installed, use the following commands :
appium --v
where Appium
Appium
To check whether the installed Appium version is the latest or not?:
Go to https://github.com/appium/appium-desktop/releases/
Then check the Latest Version.
With the above steps above, we have successfully installed Appium using Node.js.
Appium installation By downloading
Appium Desktop
1) https://github.com/appium/appium-desktop/releases
-
Select or click on Appium-Server-GUI-windows-1.22.3-4.exe
-
Save File and go to the location.
-
Double click the Appium-Server-GUI-windows
-
And go further to install Appium Server.
-
After installation click on ‘Start Server’.
-
To check the Appium Status –
http://localhost:4723/wd/hub/status
Appium Doctor Installation
Appium-doctor is to verify that all the required software & configuration is present for Appium Automation.
Use the GitHub Page : https://github.com/appium/appium-doctor
Steps:
- Install with command :
npm install -g Appium-doctor
- Run with the command :
appium-doctor -h to find all commands.
appium-doctor --android
this command is to check android setup.
All the above info available in https://codenboxautomationlab.com/appium-mobile-automation-setup-android/