Hellohttps://secure.gravatar.com/avatar/ef50948566180a4f3ee57c52d685a362?s=96&d=mm&r=x

blogs

Mobile Automation Testing with Selenium and Appium

Mobile Automation Testing with Selenium and Appium 30 May,2016

This blog will give you an overview of mobile automation testing using Appium. Appium is an open-source tool for automating native, mobile web, and hybrid applications on iOS and Android platforms.It is a Node.js server that automates native and hybrid mobile applications. We can write the tests in any language supported by Selenium, using the WebDriver API.

Native apps are those written using the iOS or Android SDKs. Hybrid apps have “webview” with a wrapper around – a native control that enables interaction with web content. Mobile web apps are those that can be access using a mobile browser (Appium supports Safari on iOS and Chrome or the built-in ‘Browser’ app on Android).

It is easy to write tests against mobile apps, especially after using Selenium and Web Driver. The same test code is used for testing both the mobile site and the native Android / iOS app. The only difference is in setting up the configuration, where you actually tell it to use the Web Driver, Remote Web Driver, Appium Driver or the Android Driver.Appium automates Android and IOS using the UI Automator library, which is provided by Google as part of the Android SDK and Appium inspector for IOS.

Appium in iOS and Android App testing

Appium Inspector and UI automator viewer tool are very handy when identifying some visual elements in the applications. Appium inspector is a combination of the Appium server itself and the inspector, that is used to discover all the visible elements of your app while developing your test scripts.This inspector works well for iOS, but for Android there are some problem areas with it. To that end, we encourage the use of ui automator viewer.

The UI automator viewer tool provides a convenient GUI to scan and analyze the UI components displaying on android device.You can use this tool to inspect the layout hierarchy and view the properties of UI components that are visible on the foreground of the device.This information lets you create more fine-grained tests using UI Automator, for example by creating a UI selector that matches a specific visible property.The UI Automator API is bundled in the UI Automator.jar file under the /platforms/ directory. The API includes these key classes, interfaces, and exceptions that allow you to capture and manipulate UI components on the target app.

Appium runs on real devices and emulators. It takes the Selenium commands from your test code and translates them into a readable format for UI Automator, using the WebDriver JSON Wire Protocol. The UI Automator testing framework lets you test your user interface (UI) efficiently by creating automated functional and UI test cases that can be run against your app on one or more devices.

Save

HarmanJeet Kaur Harman is an Automation Test Engineer at BugRaptors. She has expertise in Web & Mobile automation testing using Selenium WebDriver and Appium Tool. Professional in writing automating test scripts ,Data Driven Implementation , Keyword frameworks, Debugging, Executing and find issues in scripts.

Leave a Reply

Your email address will not be published. Required fields are marked *

Name field is required !

Related Posts

What is Cross Browser Automation Testing & How to perform it...
Mobile Automation Testing with Selenium and Appium

Cross browser testing is a technique which is used to test the behavior of a website or an application in multiple browsers. It is necessary to ensur...

Read More
Mobile Apps Automation Testing Tools: Reduce Your Test Time ...
Mobile Automation Testing with Selenium and Appium

Most important part of every software development process is ‘Testing’ and with mobile applications it has become even more important. Enormous fr...

Read More
How to get started with Robotium? Which features does it sup...
Mobile Automation Testing with Selenium and Appium

Robotium is a “Black-Box” testing tool that simulates and automates user interaction such as clicking, touching, entering text and any other gestu...

Read More

Popular Blogs

Augmented Reality Application Testing: Is It Really Worth Investing?
Augmented Reality Application Testing: Is It Really Worth Investing? Read More
Selenide vs. Selenium: The War Of Technologies!!!
Selenide vs. Selenium: The War Of Technologies!!! Read More
Disability can’t be a Restriction: Make Web Accessible for Everyone.
Disability can’t be a Restriction: Make Web Accessible for Everyone. Read More
Cloud Load Testing Strategy to Enhance Your Business
Cloud Load Testing Strategy to Enhance Your Business Read More
Different Types of User Acceptance Test, Are You Performing All?
Different Types of User Acceptance Test, Are You Performing All? Read More

Sign up FOR NEWSLETTER !

Want to reduce the time to market for your mobile application?
contact us