Saturday, April 2, 2016

MOBILE Automation Part-1. Set Up and Configuration Details(Appium)

=====================
 
JAVA INSTALLATION
=====================
1. Install JAVA -jdk8
   http://www.oracle.com/technetwork/java/javase/downloads/index.html

2. Set the JAVA_Home Variable
  Open the Control Panel -> System or Security –> System; 
  the same thing can be done by right-clicking on ‘MyComputer’ and choosing Properties.
  ->Choose ‘Advanced system settings‘.
  ->Under the Advanced tab Choose the ‘Environment Variable…‘ option.
  ->Select New In the System variables.
  ->Define the Variable name as ‘JAVA_HOME‘ and Variable value as ‘C:\Program Files\Java\jdk1.8.0_45‘

3. Set the Path Variable
  Now we need to specify the location in the PATH variable. 
  For PATH, most probably it will already exists in your machine. So just select it and choose the Edit option.
  In the editor add the value ‘;%JAVA_HOME%\bin‘ or ‘;C:Program Files\Java\jdk1.8.0_45\bin‘.
 
4. Ensure Java is installed
   Go to Start and type cmd in the Run and hit Enter. It will launch the Command Prompt. Type ‘java -version
   it will display the version of Java installed, ie  java version 1.8.0

=============================
ANDROID SDK TOOLS 
=============================
1.Download and install the Android SDK/ADB 

2.Set the ANDROID_Home Variable
  After you’ve installed the Android SDK Environment Kit in Windows, you must set the ANDROID_HOME environment      variable to point
  to the Android SDK installation directory. To set up the Android Environment Variable but to achieve that you are required to have the 
  Android installation path with you

3. Open the Control Panel -> System or Security –> System
 the same thing can be done by right-clicking on ‘MyComputer’ and choosing Properties.
 ->Choose ‘Advanced system settings‘.
 ->Under the Advanced tab Choose the ‘Environment Variable…‘ option.
 ->Select New In the System variables.
 ->Define the Variable name as ‘ANDROID_HOME‘ and Variable value as ‘C:\Users\vishva\AppData\Local\Android\android-sdk‘.

4.Setting PATH Variables for Android SDK
 Now we need to specify the ‘tools‘ folder location in the PATH variable of android sdk package. 
 For PATH, most probably it will already exists in your machine. So just select it and choose the Edit option.
 In the editor add the value ‘;%ANDROID_HOME%\tools‘ or ‘;C:\Users\vishva\AppData\Local\Android\android-sdk\tools‘.
 In the editor add the value ‘;%ANDROID_HOME%\platform-tools‘ or ‘;C:\Users\vishhva\AppData\Local\Android\android-sdk\platform-tools‘.

5. Ensure Android path variables are set
  Now go to Start and type cmd in the Run and hit Enter. It will launch the Command Prompt. Type ‘android‘. (Open a new Command prompt)
  it will open the Android SDK Manager.

=================================
 INSTALL NODE.JS 
==================================
 1. Download(.msi download file format) and install Node.js (either 32bit/64bit) based on your Machine.
 https://nodejs.org/en/download/


==================================
Install Microsoft .net Framework 4.5
===================================
1. Not needed for Windows 7 and Windows 8, as already they come with OS


=====================================
Download And Install Appium Desktop Client 
=====================================
1. Visit the Appium Download page to install the Appium Desktop client. Click on Appium.exe for Windows to download the ‘.exe‘ file for Appium.

2. Go with the latest version of Appium. (AppiumForWindows_x_x_..zip)

3. Save the .zip file, extract it and install it.(Create a Desktop Icon)

======================================
How to Enable Developer Mode / Options on Android Phone or Tablet
=======================================
Enabling Developer Mode Options on Android Phone or Tablet
1. In your Mobile, Go to the Settings.
2. Scroll down to ‘About phone‘ and tap on it.
3. Scroll down to the bottom again, where you see ‘Build number’ (Your build number may vary). Tap On Build number Seven (7) times. 
  After the third tap, you’ll see a playful dialog that says you’re four taps away from being a developer. 
  Keep on tapping, and you’ve got the developer settings options.
4.You can notice the Developer Options on your screen now.


Switch On USB Debugging
1. Go to the Developer Options.
2. Tick the USB Debugging check box.
3. It may display the Pop Up message, if Yes simply click OK.
4. And it’s done, you can see the USB Debugging is ON now.

=========================================
Install ECLIPSE 
=========================================
1. Install Eclipse IDE (LUNA should be good option for new installation)
2. Go to Eclipse->Windows(Menu)->Preference->Click on Android and add the android sdk path
3. Install ADT  eclipse Plugin from the following link
Open Eclipse->go to Help>Install new Software>Paste the link in first text box and hit enter> Software will be listed>select and click Next/Finish.(If you get, any error/warning window just click OK button)
4. Verify by clicking on Eclipse>Window>Preference. Verify if Android is listed. 
5. Click on Android in Eclipse Preference and give the SDK location in your computer.(Example: E:\android-sdk-windows)

==========================================
Add Selenium Jars (Standard procedure to download and configure in build path)
Also download java-client-3.3.0.jar from SeleniumHQ site and configure in build path


2 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. When students needs the professionals out they can conduct a survey of essay roo ensure that they are choosing right service for this particular needs regarding their service. I find it very interesting to see the comprehensive service.

    ReplyDelete

Total Pageviews