Compatibility Test Suite

Compatibility Test Suite

How does the CTS work?


The CTS is an automated testing harness that includes two major software components:

  • The CTS tradefed test harness runs on your desktop machine and manages test execution.

  • Individual test cases are executed on the Device Under Test (DUT). The test cases are written in Java as JUnit tests and packaged as Android .apk files to run on the actual device target.

The CTS Verifier is a tool for manual testing and includes the following software components:

  • The CTS verifier app that is executed on the DUT and collects the results.

     

  • The executable(s) or script(s) that are executed on the desktop machine to provide data or additional control for some test cases in the CTS Verifier app.

Workflow



Figure 1. How to use CTS

This diagram summarizes CTS workflow. Please refer to the subpages of this section starting with Setup for detailed instructions.

Types of test cases


The CTS includes the following types of test cases:

  • Unit tests test atomic units of code within the Android platform; e.g. a single class, such as java.util.HashMap.

  • Functional tests test a combination of APIs together in a higher-level use-case.

Future versions of the CTS will include the following types of test cases:

  • Robustness tests test the durability of the system under stress.

  • Performance tests test the performance of the system against defined benchmarks, for example rendering frames per second.

Areas covered


The unit test cases cover the following areas to ensure compatibility:

AreaDescription
Signature testsFor each Android release, there are XML files describing the signatures of all public APIs contained in the release. The CTS contains a utility to check those API signatures against the APIs available on the device. The results from signature checking are recorded in the test result XML file.
Platform API TestsTest the platform (core libraries and Android Application Framework) APIs as documented in the SDK Class Index to ensure API correctness, including correct class, attribute and method signatures, correct method behavior, and negative tests to ensure expected behavior for incorrect parameter handling.
Dalvik TestsThe tests focus on testing the Dalvik Executable Format.
Platform Data ModelThe CTS tests the core platform data model as exposed to application developers through content providers, as documented in the SDK android.provider package: contacts, browser, settings, etc.
Platform IntentsThe CTS tests the core platform intents, as documented in the SDK Available Intents.
Platform PermissionsThe CTS tests the core platform permissions, as documented in the SDK Available Permissions.
Platform ResourcesThe CTS tests for correct handling of the core platform resource types, as documented in the SDK Available Resource Types. This includes tests for: simple values, drawables, nine-patch, animations, layouts, styles and themes, and loading alternate resources.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值