Android- Manifest.xml

Android applications declare their main components in the AndroidManifest.xml file. Components can be of four different types:


Activities are the components in charge of an app’s user interface.
Each activity is a window containing various UI elements, such
as buttons and text areas. Developers can control the behavior
of each activity by implementing appropriate callbacks for each
life-cycle phase (i.e., created, paused, resumed, and destroyed).
Activities react to user input events, such as clicks, and consequently
are the primary target of testing tools for Android.


Services are application components that can perform longrunning
operations in the background. Unlike activities, they do
not provide a user interface, and consequently, they are usually
not a direct target of Android testing tools, although they might
be indirectly tested through some activities.


Broadcast Receivers and Intents allow inter-process communication.
Applications can register broadcast receivers to be
notified, by means of intents, about specific system events. Apps
can thus, for instance, react whenever a new SMS is received, a
new connection is available, or a new call is being made. Broadcast receivers can either be declared in the manifest file or at
runtime, in the application code. In order to properly explore the
behavior of an app, testing tools should be aware of what are the
relevant broadcast receivers, so that they could trigger the right
intents.


Content Providers act as a structured interface to shared data
stores, such as contacts and calendar databases. Applications may
have their own content providers and may make them available to
other apps. Like all software, the behavior of an app may highly
depend on the state of such content providers (e.g., on whether
the list of contacts is empty or it contains duplicates). As a
consequence, testing tools should “mock” content providers in an
attempt to make tests deterministic and achieve higher coverage
of an app’s behavior.

 

Paper: Automated Test Input Generation for Android: Are We There Yet?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值