Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail
Fail message:
String v1 = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 500");
assertTrue(v1.contains("Events injected"));
assertTrue(v1.contains("Sending Touch")); // fail here
This test case will check touch event exist or not after run monkey
"monkey --pct-touch 0 --pct-motion 0 --pct-majornav 0 --pct-syskeys 0
--pct-anyevent 0 --pct-rotation 0 -v -v -p xxx 500", this cmd set
touch Event percentages: %0, which will reduce touch event ratio.
CTS 4.2_r3 Version: which didnot set touch Event percentages, default
touch Event percentages will be 10%: static final String MONKEY_CMD=
"monkey --pct-majornav 0 --pct-syskeys 0 --pct-anyevent 0".
This issue also can be reproduced in Nexus 5 when set Nexus5 to special
date/time: such as 2014-05-19 09:34 or 2014-05-19 09:53 or 2014-05-19 09:38
or 2014-05-19 09:42,then run this test case "run cts -c
com.android.cts.monkey.VerbosityTest -m testVerbosity"
So we suggest to delete " --pct-touch 0" in MONKEY_CMD
Change-Id: I8f47b0afabdd716523dc8ae7a8a73c803da70fa7
Signed-off-by: Junjie.Hu <junjie.hu@mediatek.com>
1 file changed