How to install & configure appium with IntellIj Idea and Genymotion emulator in ubunutu

1. Required software
  • Oracle java JDK
  • IntelliJ Idea
  • nodeJS
  • Android sdk tools
  • Appium
  • Oracle Virtualbox
  • Genymotion
  • Selenium Standalone Server jar
  • Appium java client jar 
  • apk file
Latest Oracle java JDK install and configure in ubuntu
1. Add the PPA.
Open terminal (Ctrl+Alt+T) and run the below command:
sudo add-apt-repository ppa:webupd8team/java
2. Update system package index and install Java installer
sudo apt update; sudo apt install oracle-java8-installer
3. Check the Java version
javac -version
4. Set Java environment variables
The PPA also contains a package to automatically set Java environment variables, just run the command:
sudo apt install oracle-java8-set-default

Intellij idea download and install in ubuntu
1. Please watch the video for installing IntelliJ Idea

Latest version nodeJS install
First, choose the Node.js version you need and add the sources for it
# for Node.js v4
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
# OR for Node.js v5
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
# OR for Node.js v6
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
# OR for Node.js v7
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -

Then install the Node.js package.
sudo apt-get install -y nodejs 

Android sdk tools download, update the latest API version and configure Android Home variable
2. update the latest API  
Create a folder name like 'sdk' in your desired location like 'Home' and extract downloaded sdk tools under sdk folder,  then Open terminal (Ctrl+Alt+T) and navigate to tools folder
Type below command for executable permission
sudo chmod a+x android
run the command to update desired API version
./android
Select desired API version then click on 'Install packages'
Note: It will take time to update

3. Configure Android Home variable
Run the command
nano ~/.bashrc

Add Android Home variable at the end of line 
export ANDROID_HOME=/home/jannat/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools


Save Android Home variable
Press: Ctrl+O  then Enter
Type 'android' command on terminal: Android SDK Manager shows if properly configured

Appium installation
Run the below command in terminal to get appium
sudo npm install -g appium  
Run the below command in terminal to get appium client
sudo npm install wd 
Run the below command in terminal to start appium       
appium 


Oracle Virtualbox download and install
Run the below command to install
sudo dpkg -i virtualbox-5.1_5.1.14-112924-Ubuntu-yakkety_amd64.deb

If missing packages when install, Run the below command
sudo apt-get install libpng16-16 libqt5core5a libqt5widgets5 libsdl1.2debian libqt5x11extras5 libsdl-ttf2.0-0 

OR Please watch the video for installing VirtualBox using command
 

Genymotion download and install
After login in Genymotion site  then click to download

Run the command to give executable permission
 sudo chmod a+x genymotion-2.8.1_x64.bin 
Run the command to install Genymotion
 sudo ./genymotion-2.8.1_x64.bin 

Please watch the video for more information







2 comments:

  1. Your article is extraordinarily smart.I love to browse your diary's posts everyday and that i got vast facilitate from your blog and developed a replacement app shadow fight three
    you'll check.Thanks for wonderful diary.

    ReplyDelete