Unit 2: Appium Project - Subjective Questions

CSE379 — Mobile Automated Testing • Practice Questions with Detailed Answers

20 questions

1

Define Desired Capabilities in Appium. Explain their role in creating an Appium driver session with suitable examples.

2

Describe how capabilities are processed during the creation of an Appium session. Include the significance of alwaysMatch and firstMatch in the W3C WebDriver protocol.

3

What is a vendor prefix in the W3C WebDriver capability format, and why does Appium use the appium: prefix?

4

Distinguish between standard W3C capabilities and Appium extension capabilities. Explain the problems that can occur when the vendor prefix is omitted.

5

Describe the steps required to create a Java-based Appium project using Maven.

6

Write and explain the important sections of a Maven pom.xml file for an Appium Java test project.

7

Write a Java program that starts an Android Appium driver session and safely closes it.

8

Explain the complete client-server sequence that occurs when a Java statement creates a new AndroidDriver object.

9

What is an Appium Options class? Explain why classes such as UiAutomator2Options are preferred over manually building capability maps.

10

Create a UiAutomator2Options configuration for testing an APK on an Android emulator, and explain each option used.

11

Compare the use of DesiredCapabilities with UiAutomator2Options for an Android Appium project.

12

Define appPackage and appActivity in Android Appium testing. Why are both often needed to launch an installed application?

13

Explain how to obtain the appPackage and currently focused appActivity of a running Android application by using ADB.

14

Describe how dumpsys output can be interpreted to identify an Android application's package and activity. What limitations should a tester consider?

15

Explain how to determine an Android application's package name and launchable activity directly from an APK file.

16

How can a tester verify that a discovered Android package and activity are correct before using them in Appium?

17

Explain how Appium can automatically launch an Android emulator by using an existing Android Virtual Device.

18

List the prerequisites for automatic Android emulator launch in Appium and explain the purpose of emulator-related timeout options.

19

Design an end-to-end Maven-based Appium test setup that automatically starts an Android emulator, opens an installed application, and closes all session resources.

20

Analyze common reasons why an Appium Java driver session fails to start, and describe a systematic troubleshooting procedure.