Online Tutorials & Training Materials | STechies.com
Register Login
Advertisement

Appium Interview Questions and Answers

|| 0

Appium Interview Questions and Answers
Stechies

What is Appium testing?

It is an open source testing framework used for mobile apps. It is used to test the user interfaces of the mobile web, native and hybrid applications. These tests can be run on mobile devices as well as emulators.

What are the features of Appium?

The following are some of the features of Appium:

  • Can be used to test all types of applications such as native, mobile web and hybrid.
  • It is beneficial for testing applications across all platforms.
  • It is useful for both iOS and Android applications.
  • It supports different programming languages that have Selenium client libraries, like Python, Ruby and PHP.

Explain some Advantage of Appium?

The advantages of Appium are:

  • Can be used to test all types of applications such as native, mobile web and hybrid.
  • It is beneficial for testing applications across all platforms.
  • It is useful for both iOS and Android applications.
  • It comes with a record and playback option to ease the process of testing.
  • The tests can be performed easily without a server machine.

What are the limitations of Appium?

The disadvantages of Appium are:

  • Multiple test scripts cannot be executed at the same time.
  • The Appium inspector cannot be executed on Windows.
  • Old versions of Android and iOS are not supported.
  • It does not identify images easily, which creates problems while testing.
  • Has relatively lower support in case of hybrid application testing.
  • Old versions of Android and iOS are not supported.
  • Has relatively lower support in case of hybrid application testing.
  • It does not identify images easily, which creates problems while testing.
  • Multiple test scripts cannot be executed at the same time.
  • The Appium inspector cannot be executed on Windows.

What are the pre-requisites to filled before using Appium?

  • Installation of the Appium desktop.
  • Installation of the Android SDK and Java Development Kit.
  • An IDE like Eclipse.
  • TestNg for Eclipse.
  • Selenium Server Jar.
  • Appium Client library.
  • APK App info on Google Play.
  • Make sure the there are no old versions of Android.

What is Appium session?

An Appium session is used to send commands to the test app. All commands are run in the context of a session. A session is created between a client and the server through a JSON object called the desired capabilities to object.

How to check Appium version?

The current version of Appium can be checked using the command line. For this, the command line syntax is

appium –v

How to find Xpath in Appium?

XPath can be found out using the Copy unique XPath by right-clicking a button on the mobile application. The SeeTest feature in Appium has an XPath filter option that allows us to obtain the XPath.

What is Appium inspector and How to use Appium inspector?

Appium inspector is used to identifying specific elements in the application and perform an action on them. Two popular inspectors are Appium Desktop Inspector and UIAutomatorViewer. It can be used using the following steps:

  • UIAutomatorViewer can be opened using the command line.
  • Connect the mobile using USB and open the application you need to inspect.
  • Take a device screenshot.
  • Any element can be inspected by hovering the mouse pointer over them in the screenshot.

How to get the Index number in Appium?

Index number can be obtained using XPath.

What is dom in Appium?

The DOM (Document Object Model) is the representation of all the elements on the UI of the web page or the mobile application. This gets rendered in the client side. XHTML, XML and HTML objects can be accessed using the DOM.

What is the difference between Selenium and Appium testing?

Selenium Testing

Appium Testing

It is used to test web applications.

It is primarily used to test mobile applications.

The scripts have to be written manually.

It creates scripts automatically.

The Selenium IDE or Selenium WebDriver can be selected by users.

The Android and iOS sessions are operated through Web Driver JSON.

What are programming languages which Appium supports?

Appium supports languages like Javascript, Objective –C, C#, Python, Node.js, Ruby and Perl.

How to use resource id in Appium?

The resource id can be obtained using the following syntax:

driver.findElementById("your_id")

How to use the tap method in Appium?

The tap method can be used to provide the user with the functionality of clicking an item on the web element. The syntax is

TouchAction tc = new TouchAction(driver);
tc.tap(element).perform();

How to compare dimensions in Appium?     

Dimensions in Appium can be compared using the following syntax:

let size = driver.getElementSize("~ElementId");

How to use scrolltoExact in Appium?

This method is used to scroll to the exact position in the web application.

What is XCUITest Appium?

The XCUITest driver for iOS is used to test and automate iOS applications in Appium. This driver uses Apple’s XCUITest libraries to test the application.

How to test Android app Appium?

Android applications can be tested by connecting the mobile in USB debugging mode and using the Appium UI interface.

How to scroll the page in Appium?

The scroll page functionality can be provided in Appium by the UIScrollable class in Android.   


Advertisement