Appium Junior interview questions and answers
75 questions for a Appium (Junior) interview - with correct answers, explanations and links to the docs.
- 1.What is Appium?
- 2.What app types can Appium automate on mobile?
- 3.What is an Appium driver in Appium 2?
- 4.Which driver is the usual choice for Android native apps?
- 5.Which driver automates iOS apps?
- 6.How do you install a driver in Appium 2?
- 7.What are capabilities in an Appium session?
- 8.Which capability tells Appium which driver to use?
- 9.What does
appium:apppoint to? - 10.What are
appPackageandappActivityon Android? - 11.What is
bundleIdon iOS? - 12.What does Appium Inspector help with?
- 13.Which locator is usually the most stable in mobile tests?
- 14.What does accessibility id map to on Android?
- 15.What does accessibility id map to on iOS?
- 16.Why is XPath often slow in Appium tests?
- 17.Which Android-specific locator strategy uses UI Automator's selectors?
- 18.Which iOS-specific locator strategies are faster than XPath?
- 19.What is a real device versus an emulator or simulator?
- 20.Why must tests run on real devices too, not only emulators?
- 21.What is adb?
- 22.How do you see which Android devices are connected?
- 23.What does the
appium:udidcapability select? - 24.What is a native context versus a WebView context?
- 25.How do you switch to a WebView in a hybrid app?
- 26.How do you tap an element in Appium?
- 27.How do you type into a text field?
- 28.Why may a test need to hide the keyboard?
- 29.What are W3C actions used for in Appium?
- 30.Which gesture API from Appium 1 is deprecated in Appium 2?
- 31.How do you scroll to an element on Android with UiAutomator2?
- 32.What does
driver.terminateApp(id)do? - 33.What does
noReset: truechange? - 34.What does
fullReset: truedo? - 35.Why are explicit waits important in mobile tests?
- 36.What does
autoGrantPermissionsdo on Android? - 37.How should a test handle an iOS system alert like 'Allow notifications'?
- 38.What is a deep link?
- 39.How do you take a screenshot in Appium?
- 40.What is logcat?
- 41.What does
platformNamespecify? - 42.Which languages can you write Appium tests in?
- 43.What is the Appium Java client?
- 44.Which class do you create for an Android session in the Java client?
- 45.What is the default port of the Appium server?
- 46.Which runtime does the Appium 2 server need?
- 47.What does
appium-doctor(or driver doctor) check? - 48.What is the main difference between UiAutomator2 and Espresso drivers?
- 49.What does WebDriverAgent do in iOS automation?
- 50.Why do real iOS devices need code signing for tests?
- 51.What is the Page Object pattern in mobile tests?
- 52.How can one page object support Android and iOS?
- 53.What does
driver.getPageSource()return in Appium? - 54.Why should mobile tests set a known device orientation?
- 55.What does
driver.runAppInBackground(Duration)test? - 56.Why are interruptions like calls and notifications worth testing?
- 57.What is a mobile web test with Appium?
- 58.What problem does a mobile device cloud solve?
- 59.Why should mobile tests avoid tapping by screen coordinates?
- 60.What does
isDisplayed()check in a mobile test? - 61.Why may an element in a long list not be found?
- 62.What does
resource-idlook like on Android? - 63.How do you check the app's text on a label?
- 64.What is a flaky mobile test?
- 65.Why disable animations on Android test devices?
- 66.What does
appium:newCommandTimeoutcontrol? - 67.What should a test do in teardown?
- 68.How do you get the app's current Android activity?
- 69.What does an Appium plugin do?
- 70.Why test on several OS versions?
- 71.What is a hybrid app?
- 72.What does
getContextHandles()return? - 73.Why is test data important in mobile tests too?
- 74.What is the benefit of starting tests on a deep-linked screen?
- 75.Why should UI tests on mobile be fewer than unit tests?