Free Associate Android Developer Exam Braindumps (page: 7)

Page 6 of 33

To automate UI tests with Android Studio, you implement your test code in a separate Android test folder. Folder could be named:

  1. app/androidTest/java
  2. app/src/androidTest/java
  3. app/java/androidTest

Answer(s): B



Once your test has obtained a UiObject object, you can call the methods in the UiObject class to perform user interactions on the UI component represented by that object. You can specify such actions as: (Choose four.)

  1. click() : Clicks the center of the visible bounds of the UI element.
  2. touch() : Touch the center of the visible bounds of the UI element.
  3. dragTo() : Drags this object to arbitrary coordinates.
  4. moveTo() : Move this object to arbitrary coordinates.
  5. setText() : Sets the text in an editable field, after clearing the field's content. Conversely, the
    clearTextField() method clears the existing text in an editable field.
  6. swipeUp() : Performs the swipe up action on the UiObject. Similarly, the swipeDown(), swipeLeft(), and swipeRight() methods perform corresponding actions.

Answer(s): A,C,E,F



If you want to access a specific UI component in an app, use the UiSelector class. This class represents a query for specific elements in the currently displayed UI. What is correct about it? (Choose two.)

  1. If more than one matching element is found, the first matching element in the layout hierarchy is returned as the target UiObject.
  2. If no matching UI element is found, an IOException is thrown.
  3. If more than one matching element is found, the last matching element in the layout hierarchy is returned as the target UiObject.
  4. If no matching UI element is found, a UiAutomatorObjectNotFoundException is thrown.

Answer(s): A,D



Each time your test invokes onView(), Espresso waits to perform the corresponding UI action or assertion until the following synchronization conditions are met: (Choose three.)

  1. The message queue is empty.
  2. The message queue is not empty.
  3. There are some instances of AsyncTask currently executing a task.
  4. There are no instances of AsyncTask currently executing a task.
  5. Some developer-defined idling resources are not idle.
  6. All developer-defined idling res

Answer(s): A,D,F






Post your Comments and Discuss Google Associate Android Developer exam with other Community members:

Associate Android Developer Discussions & Posts