11. Explain what is APPIUM INSPECTOR?
Answer:  Similar to Selenium IDE record and Playback tool, Appium has an “Inspector” to record and playback. It records and plays native application behavior by inspecting DOM and generates the test scripts in any desired language. However, Appium Inspector does not support Windows and use UIAutomator viewer in its option.


12. Mention what are the basic requirement for writing Appium tests?
Answer: For writing Appium tests you require,
Driver Client: Appium drives mobile applications as though it were a user. Using a client library you write your Appium tests which wrap your test steps and sends to the Appium server over HTTP.
Appium Session: You have to first initialize a session, as such Appium test takes place in the session. Once the Automation is done for one session, it can be ended and wait for another session
Desired Capabilities: To initialize an Appium session you need to define certain parameters known as “desired capabilities” like PlatformName, PlatformVersion, Device Name and so on. It specifies the kind of automation one requires from the Appium server.
Driver Commands: You can write your test steps using a large and expressive vocabulary of commands.


13. Mention what are the possible errors one might encounter using Appium?
Answer: The possible errors one might face in Appium includes:
Error 1: The following desired capabilities are needed but not provided: Device Name, platformName.
Error 2: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
Error 3: openqa.selenium.SessionNotCreatedException: A new session could not be created.
Error 4: Failure in locating a DOM element or determining the XPath.


14: What is the difference between Emulator and Simulator?
Answer:
With an emulator, you want the output exactly match what the object you are emulating would produce.
With a simulator, you want certain properties of your output to be similar to what the object would produce.


15. Do you need a server machine to run tests on Appium?

Answer: No, you don’t need server machine to run tests on Appium. Appium facilitates a 2-tier architecture where a test machine connects to a test server running Appium and automating the whole thing. You can have Appium running on the same machine where your test runs.


16. Is it possible to interact with my apps using Javascript while I am testing with Appium?

Answer: Yes, it is possible to interact with App while using Javascript. When the commands run on Appium, the server will send the script to your app wrapped into an anonymous function to be executed.


17. Mention what are the most difficult scenarios to test with Appium?
Answer:  The most difficult scenario to test with Appium is data exchange.


18. While using Appium can I run my tests in a multithreaded environment?
Answer: Yes, you can run the test in a multithreaded environment but you have to ensure that no more than one test runs at the same time against the same Appium server.


19. Explain how test frameworks are supported by Appium?
Answer: Appium does not support test framework as such there is no need to support them. Appium can be used with any frameworks you want.


20. What’s That One Point Which Made You Choose Appium For Mobile App Testing?
Answer: It has a unique design which natively supports Selenium. And Selenium is one of the most used and evolving technology for automation testing. It has an open support from the global browser vendors like Google, Mozilla, and Safari. Each one of them agreed to provide their Web drivers implementing the Selenium interfaces. Next, it is cross-platform enabled, supports all popular programming languages, and webdriver makes its tests more scalable. You need to write tests once which you can run anywhere.


Leave a Reply