Showing posts with label appium. Show all posts
Showing posts with label appium. Show all posts

Nov 4, 2017

Mobile App Automation with Appium on Android Emulator/Device

Overview :-


Appium is an open source test automation tool for mobile applications. It allows you to test all the three types of mobile applications: native, hybrid and mobile web.It also allows you to run the automated tests on actual devices, emulators and simulators.

If you want to start mobile automation on Android device/emulator, first you must need to setup the Android SDK on your machine and set the paths in environment variables.Then you can create your own emulator and run the test scripts on it.

Pre-requisites :-


1. JDK installation

2. Android SDK installation and Emulator Creation

3. Appium installation

4. Native App information
  • .apk file - This is not required if you specify appPackage and appActivity capabilities
  • appPackage - Activity name for the Android activity you want to launch from your package. This often needs to be preceded by a . (e.g., .MainActivity instead of MainActivity)
  • appActivity  - Java package of the Android app you want to run


Prerequisted Jars:

  • java-client.jar - For Appium
  • selenium-server-standalone.jar - For webdriver capabilities
  • commons-validator.jar - if want to run appium server programatically

Oct 24, 2017

Mobile Browser Automation with Appium on Android Real Device

Overview :-


Appium is an open source test automation tool for mobile applications. It allows you to test all the three types of mobile applications: native, hybrid and mobile web.It also allows you to run the automated tests on actual devices, emulators and simulators.

If you want to start mobile automation on Android device/emulator, first you must need to setup the Android SDK on your machine and set the paths in environment variables.Then you can attach the device and run on it.

Pre-requisites :-


1. JDK installation

2. Android SDK installation and Set Paths in Environment variables

3. Appium installation

Prerequisted Jars:

  • java-client.jar - For Appium
  • selenium-server-standalone.jar - For Webdriver capabilities
  • commons-validator.jar -  if want to run appium server programatically

Oct 17, 2017

Appium Installation and start with Desktop UI

Appium Desktop provides a GUI for the Appium Server. You can able to start and stop the server manually by using this GUI tool and able to see the logs in the same window for every action what you perform.

It also providing an Inspector, which enables you to check out the hierarchy of your app or web application. This can come in handy when writing tests.

Follow the below steps to install Appium Desktop GUI and start a session with appium server on Android emulator.


1. Download Appium desktop GUI from Appium downloads page and install it. For Windows, download .exe and .dmg for Mac.















2. Run Appium.exe, you can see below window
























3. Start appium session by clicking on "Start Inspector Session" icon, then you can see the new window to pass desire capabilities to start appium server with respective Android Emulator


















4.  Add capabilities in the JSON Representation or in the Desire Capabilities tab like below
    • platformName - "Android" or "iOS"
    • platformVersion - "<Android Version>" or "iOS Version"
    • deviceName - "Android Emulator"  or "Android" or "iPhone" or "iPad"
    • browserName - "Browser", or "Chrome" or "Safari"


.















5. Now start the session by clicking on "Start Session" button, it will enable android emulator and invoke the browser

Install Appium with terminal on MAC by using node.js

Appium is a server written in Node.js. It can be built and installed directly from NPM. To install it, First you need to have brew installed in your machine then install the node by using brew and finally install the appium server from npm.

Follow the below commands to install appium on your mac.


1. Run below command in the terminal if you don't have brew installed on your mac.
    • ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Run below commands step by step in the terminal to install appium on back end in your system
    • brew install node
    • npm install -g appium
    • npm install wd

Check appium is installed in your machine by following the below step


    • Open terminal
    • Type 'appium' and press enter
    • You can see the below one if appium is installed successfully on your machine

Appium installation with command line on Windows by using node.js

Appium is a server written in Node.js. It can be built and installed directly from NPM. You can able to start and stop the server without GUI help and able to see the logs in the same command prompt for every action what you perform.

To install it, First install the node.js then install the appium server from npm.

Follow the below steps to install appium on your Winodws.


1. Download latest node.js MSI from node.js website and install it. This will also installs node’s npm tool (node package manager) which we will use to install Appium Server. Once install, it will automatically set the path in environment variables.















2. After node.js installation, run the below commands step by step in command prompt to install the appium on back end in your system
    • npm install -g appium
    • npm install wd

Check appium is installed in your machine by following the below step


    • Open command prompt
    • Type 'appium' and press enter
    • You can see the below one if appium is installed successfully on your machine













Oct 10, 2017

Mobile Browser Automation with Appium on Android Emulator

Overview :-


Appium is an open source test automation tool for mobile applications. It allows you to test all the three types of mobile applications: native, hybrid and mobile web.It also allows you to run the automated tests on actual devices, emulators and simulators.

If you want to start mobile automation on Android device/emulator, first you must need to setup the Android SDK on your machine and set the paths in environment variables.Then you can create your own emulator and run the test scripts on it.

Pre-requisites :-


1. JDK installation

2. Android SDK installation and Emulator Creation

3. Appium installation

Prerequisted Jars:

  • java-client.jar - For Appium
  • selenium-server-standalone.jar - For webdriver capabilities
  • commons-validator.jar - if want to run appium server programatically

Mobile App Automation with Appium on Android Emulator/Device

Overview :- Appium  is an open source test automation tool for mobile applications. It allows you to test all the three types of mobile...