android 测试简介

每种android测试工具都继承自JUnit3 TestCase。

ApplicationTestCase用来测试android.app.Application;

ServiceTestCase用来测试android.app.Service;

ProviderTestCase2用来测试android.content.ContentProvider;

InstrumentationTestCase用于需要访问instrumentation API的任何测试用例;

ActivityUnitTestCase用于测试单个Activity;【1】

ActivityInstrumentationTestCase2用于多个Activity组成的场景测试[Stroy Driven Testing];【2】

ActivityTestCase介于【1】【2】之间。

意译自[Android.in.Practice(2011)].Charlie.Collins] P459

相关文章:

  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-07-26
  • 2021-11-09
  • 2021-08-05
猜你喜欢
  • 2021-05-11
  • 2022-01-25
  • 2021-07-17
  • 2021-11-19
  • 2021-09-12
  • 2022-02-23
  • 2021-07-11
相关资源
相似解决方案