Why do you use the AndroidJUnitRunner when running UI tests?

✅  The correct answer is:

  • The test runner facilitates loading your test package and the app under test onto a device or emulator, runs the test, and reports the results.

Question:

Why do you use the AndroidJUnitRunner when running UI tests?

Solution:

  • The test runner facilitates loading your test package and the app under test onto a device or emulator, runs the test, and reports the results.
  • The test runner creating screenshots of each screen that displayed while tests are executed.
  • The test runner facilitates parallelization of test classes by providing for each test class.
  • The test runner facilitates interacting with visible elements on a device, regardless of the activity or fragment that has focus.