1.
Which of the following doesn’t belong to MobileCapabilityType interface
Correct Answer
C. BundleId
Explanation
The option "bundleId" doesn't belong to the MobileCapabilityType interface because it is not a capability related to mobile device capabilities or settings. The other options, "udid," "automationName," and "app," are all valid capabilities that can be set using the MobileCapabilityType interface to configure the behavior of a mobile application during automation testing.
2.
Which is the default test automation framework provided by appium for Android devices
Correct Answer
B. UiAutomator2
Explanation
UiAutomator2 is the default test automation framework provided by Appium for Android devices. This framework allows testers to automate the UI interactions and perform testing on Android applications. It provides a set of APIs to interact with the UI elements of the application, such as clicking buttons, entering text, and validating the UI elements. UiAutomator2 is specifically designed for Android devices and offers improved performance and reliability compared to its predecessor, UiAutomator.
3.
Minimum Java version supported by appium
Correct Answer
A. 1.7
Explanation
The minimum Java version supported by Appium is 1.7. This means that Appium requires at least Java 7 to be installed on the system in order to run properly.
4.
Which of the following s/w not mandatory for setting up appium in mac
Correct Answer
C. Xcpretty
Explanation
Xcpretty is not mandatory for setting up Appium in Mac. Xcpretty is a Ruby gem that is used for formatting the output of the xcodebuild command line tool. It is mainly used to make the output more readable and structured. However, it is not a requirement for setting up Appium on a Mac. The other options listed, Xcode, Webdriveragent, and Carthage, are all necessary components for setting up Appium on a Mac.
5.
Which of the following are true about appium
a)Appium has client server architecture
b)Appium is platform agnostic
c)Appium used JSON-wire protocol under the hood
Correct Answer
B. All the above
Explanation
Appium has a client-server architecture, meaning that it uses a client library to interact with the mobile application and a server to execute the commands on the device. Appium is also platform agnostic, which means that it can be used to automate mobile applications on different platforms such as Android and iOS. Additionally, Appium uses the JSON-wire protocol under the hood to communicate with the mobile devices. Therefore, the correct answer is "All the above."
6.
Appium driver is an Abstract class
Correct Answer
B. False
Explanation
The statement that the Appium driver is an abstract class is false. An abstract class is a class that cannot be instantiated and is usually used as a base class for other classes to inherit from. However, the Appium driver is not an abstract class but rather an interface that provides a set of methods and properties for interacting with mobile applications. It is implemented by various driver classes such as AndroidDriver and IOSDriver, which provide the actual implementation for the methods defined in the interface.
7.
Which of the following is return type for driver.getContextHandles()
Correct Answer
D. Set<String>
Explanation
The correct answer is Set because the method driver.getContextHandles() returns a set of strings representing the available context handles. A set is a collection that does not allow duplicate values, which is suitable for storing unique context handles. Therefore, the return type should be Set.
8.
Which of the following capabilities that we can use to achieve automation of ios preinstalled app
Correct Answer
A. BundleId
Explanation
The correct answer is "bundleId." The bundleId is a unique identifier for an iOS app and can be used to automate preinstalled apps on iOS devices. By specifying the bundleId, automation tools can locate and interact with the desired app, allowing for automation of tasks within the app.
9.
WebdriverAgent was developed by
Correct Answer
C. Facebook
Explanation
WebdriverAgent was developed by Facebook.
10.
Default appium server port
Correct Answer
B. 4723
Explanation
The default Appium server port is 4723. This means that when running an Appium server, it will listen for commands and communicate with the Appium client on port 4723. This port is commonly used for Appium server communication and can be configured if needed.