Android Studio – 38 – Android Testing (JUnit, Espresso) MCQ

Android Studio – 38 – Android Testing (JUnit, Espresso)

1 / 27

1. What is Android testing?

2 / 27

2. Which testing framework is commonly used for unit testing in Android?

3 / 27

3. What is JUnit in Android testing?

4 / 27

4. Which type of testing is JUnit primarily used for in Android development?

5 / 27

5. What is the purpose of Espresso in Android testing?

6 / 27

6. Which type of testing is Espresso primarily used for in Android development?

7 / 27

7. What is the primary goal of unit testing in Android development?

8 / 27

8. What is the primary goal of UI testing in Android development?

9 / 27

9. What is a test case in Android testing?

10 / 27

10. How are test cases organized in Android testing using JUnit?

11 / 27

11. What is the purpose of the @Test annotation in JUnit?

12 / 27

12. How can you define assertions in JUnit tests?

13 / 27

13. What is the primary assertion method in JUnit for comparing two values?

14 / 27

14. What is the purpose of test runners in JUnit?

15 / 27

15. Which test runner is commonly used for Android unit testing?

16 / 27

16. What is a test suite in Android testing?

17 / 27

17. What is the purpose of the @RunWith annotation in JUnit?

18 / 27

18. What is the Espresso ViewMatcher used for?

19 / 27

19. How can you perform actions on UI elements using Espresso?

20 / 27

20. What is the Espresso ViewAssertion used for?

21 / 27

21. What is the Espresso IdlingResource used for?

22 / 27

22. What is the purpose of the onView() method in Espresso?

23 / 27

23. What is the Espresso isDisplayed() matcher used for?

24 / 27

24. How can you check the text of a TextView using Espresso?

25 / 27

25. What is the Espresso doesNotExist() matcher used for?

26 / 27

26. What is the primary purpose of Espresso’s intending() method?

27 / 27

27. What is the Espresso intending() method typically used in combination with?

Your score is

0%