13 Commits

Author SHA1 Message Date
Guang Zhu
6ac0c8c5fa lock device orientation during app compatibility test
Devices on test benches are usually held sideways, which leads to app
rotation during launch. While it's useful to identify such issue from an
app perspective, the app compatibility test should be isolated from such
noise for the purpose of the testing for basic level of compatibility.

Change-Id: I403f96e5d8512ca6a17b05a83d69f4b02f760a32
2015-05-28 20:26:37 +00:00
Guang Zhu
4f486ee696 don't report missing launch intent as failure
Some apks includes widgets and does not have a launchable
activity. The inclusion of such apk for launching is an issue
with test configuration, not test failure.

Also logging intent used for app package for debugging purpose.

Change-Id: Ibca05757a401ea036e9910d8580d7cafd356567c
2015-05-26 18:26:46 -07:00
Guang Zhu
9f521c9b17 update app compatibility post launch detection
decide if the app is still running after launch by checking
running tasks and look for a task with base activity belonging
to the package launched.

Change-Id: Ibb3894e765ccbca62f803decc3c1c1f36dc2d454
2015-05-25 12:10:36 -07:00
Guang Zhu
765e00af5b allow top sleeping state in app process verification
This happens when an app is launched but has a dialog shown on
top of it. Typical reason is a licensing prompt of sorts.

Change-Id: Id73f45f54767b869873c62f13aeeb470c1a5cd81
2015-05-08 17:10:29 -07:00
Guang Zhu
34092cf80a improve app crash detection in compatibility test
In addition to ensuring that process exists, we also need to
check that it's the right state. Because crashed foreground
activity can still get started as background service.

Bug: 20899208
Change-Id: I101e556ce757af1afb66686827c5851dd6fda620
2015-05-07 11:48:33 -07:00
wsmlby
57e7443d9d Add permission for AppCompatibilityTest.
Bug: 20134812
Change-Id: Iaf9a9963a16af1e2bb157159648db70666a33c48
2015-04-09 12:35:49 -07:00
wsmlby
6bd30ee1a2 Throw error when no intent can be found
bug: 17396762

Change-Id: I10502d5d1e2332d9e6820ee645234c125e937b7a
2014-10-01 20:57:55 +00:00
wsmlby
e87cc9a2f2 Add leanback support to AppCompatiblityTest
Change-Id: Ia9da14b8551c4ec5834a047f0792a5a213a3ac04
2014-09-18 14:09:17 -07:00
wsmlby
dd806b0ed3 Fix AppCompatibility test for different process name of one package.
Change-Id: Ic30e5ee81fe6ea82e88d2c5541dc9fa9eba71043
2014-09-09 16:10:12 -07:00
Maxim Siniavine
dfe1bdcf43 Improve error detection in app compitibility test
Change-Id: I3ee02e41b835715d1b6aaf8048fbb16a6bd00b8a
2014-08-07 18:48:46 -07:00
Tsu Chiang Chuang
14c716be79 Make sure the app is still app after launching.
Bug:8755950

Change-Id: Ie30d84cb94787d8b2e7bdc65e329a311581f4a3f
2013-05-01 07:54:48 -07:00
Maxim Siniavine
85478b5972 Skip apps without launch intent.
If an app from the apk cannot be launched then skip it in compatibility
test, rather than generate a null pointer exception.

Change-Id: I252031f249bfe25282b10394889ab8c5506cabcf
2013-04-10 12:14:11 -07:00
Tsu Chiang Chuang
fea39c3755 App Compatibility test. Launches a given app and detects crashes or ANRs.
Change-Id: I504868ca2b7785849960be287b8d92ca3055b9ff
2012-05-01 17:30:09 -07:00