Define Android Test Case Classes?

Answer

  1. TestCase  includes JUnit methods to run JUnit test
  2. TestSuite is used to run set of test cases
  3. InstrumentationTestSuite is a TestSuite that injects Instrumentation into InstrumentationTestCase before running them.
  4. InstrumentationTestRunner is the test case runner that execute test case on target application.
  5. AndroidTestCase extends JUnit TestCase. It contains methods for accessing resources like Activity Context.
  6. ApplicationTestCase verifies the Application classes in a controlled environment.
  7. InstrumentationTestCase verifies a particular feature or behavior of target application , for e.g., verify UI output of application.
  8. ActivityTestCase is base class that supports testing the Application Activities.
  9. ProviderTestCase is class for testing single ContentProvider.
  10. ServiceTestCase is used to test Service classes in testing environment. It also supports Service's life cycle.
  11. SingeLauchActivityTestCase is used to test single Activity with an InstrumentationTestCase.
  12. ActivityUnitTestCase <Activity> is used to test single isolated activity.
  13. ActivityInstrumentationTestCase2<Activity> extends the JUnit TestCase class. It connects you to target application with instrumentation. With this class, you can access application's GUI component and send UI event (keystroke or touch event) to the UI.

All mobile testing Questions

Ask your interview questions on mobile-testing

Write Your comment or Questions if you want the answers on mobile-testing from mobile-testing Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---