Appium Configuration on Windows

Appium for Windows

Appium is an automation tool which is used for testing  Android and iOS mobile platforms. It automates Hybrid, Native and Web applications on Mobile,  One of the major advantages of Appium is Code-reusability as it provides support for cross-platform testing. Also, Appium supports a wide range of languages including Java, Objective-C, PHP, Python, Ruby...

1. Download & install Java (JDK) and set path of jdk with bin folder

2. Download and install Android SDK

  • Download Android SDK from https://developer.android.com/studio/index.html
  • Once Android Studio is launched, click the "Configure" menu option in the launch window, where you'll see two important items: "AVD Manager" and "SDK Manager". First, click SDK Manage


  • Once the SDK Manager is open, ensure that at least one Android SDK is installed. On this view, take note of the "Android SDK Location", since we'll need this location in a bit.
  • Once it's done being created, click the green play button looking icon to launch it! You'll see what looks like an Android device being booted. Let it boot fully and play with it a bit to make sure it works as expected.
  • The last thing we need to do is make sure the location of the Android SDK is made available to Appium. We do this by creating another environment variable (like we did for JAVA_HOME above). This one should be called ANDROID_HOME, and it should be set to the location of the Android SDK you saw in the SDK Manager window.
  • A technically optional but very useful final step is to add part of the Android SDK path to your system PATH, so that certain commands (like adb) are available from a command prompt. To do this, go to the same place you did to edit the environment variables, but look for an existing variable called PATH. You can edit it, and tack this special string onto the end: ;%ANDROID_HOME%\platform-tools. What is this doing? First of all, the semicolon separates this path segment from other ones that came before. %ANDROID_HOME% references the environment variable we previously set, and includes it as part of a path to a particular directory, where the program adb.exe resides.
  • Save out of all dialogs and open up another command prompt. Type adb devices and hit enter. If all configuration is correct, you will see some output from ADB telling you that you have one connected device.

 Appium Desktop

ADT Plugin

 It is used to access Android SDK within Eclipse. ADT Plugin tool is basically used to launch Android Emulators in Eclipse using the test script that we have created. By installing this plugin you can basically launch AVD Manager from Eclipse.

Steps to install ADT Plugin in Eclipse

  • Open Eclipse IDE.
  • Go to Help -> Install New Software. This will open Install Software dialogue.
  • Click on the add button here. This will open a new dialogue. 






 











  •  Set URL “https://dl-ssl.google.com/android/eclipse/” in location text box and click on OK button.
  •  It will open Developer tools option along with a checkbox.
  •  Select it and click on the Next button.
  •  Click on the Next button from here, accept the Terms & Conditions and click on the Finish button.
  •  This will start installing the Plugin.
  • After successful installation, restart Eclipse.

Set SDK Location

You need to set the SDK folder path after installing ADT Plugin

  •  Open Eclipse.
  •  Go to Window -> Preferences
  •  Select “Android” from the list on the left
  •  Set SDK folder path in the “SDK Location” box.
  •  Click on “OK” after this.

Maven Integration with Eclipse

From the top menu of Eclipse select Help -> Install new Software, and the following window will open.




 Click on the Add button highlighted in the above image. An add repository dialogue box will open, enter the following in the two text fields of this box.

Name: Maven
Location: http://download.Eclipse.org/technology/m2e/releases/



Click on the Add button.


Now select general purpose tools and click Next (Installation will start)




Accept the license and Finish the setup 




1 comment:

Scroll iOS application using Appium

When creating test scripts for iOS native app we need to perform scroll to perform any other action on particular element  Here we will get ...