GMS测试

ToolsTestResultDetailsSolution
CTS / cts/8.1_r14android.provider.cts.MediaStore_FilesTest#testGetContentUrifail

junit.framework.AssertionFailedError: expected:<19> but was:<18>
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.failNotEquals(Assert.java:287)
at junit.framework.Assert.assertEquals(Assert.java:67)
at junit.framework.Assert.assertEquals(Assert.java:199)
at junit.framework.Assert.assertEquals(Assert.java:205)
at android.provider.cts.MediaStore_FilesTest.testGetContentUri(MediaStore_FilesTest.java:123)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at android.support.test.internal.runner.junit3.AndroidTestSuite$2.run(AndroidTestSuite.java:111)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)

SPCSS00579931

一,清除本地Media Storage数据
1、Settings -> Apps & notifications ->See all apps
2、菜单选择“show system”,找到“Media Storage”
3、选项“Storage”,CLEAR DATA、CLEAR CACHE

二,手机插入SD卡,不要设置成内部存储,格式化设置长外部存贮即可

三,测试一遍后,需要重复第一步清理打桩数据,再进行下一次测试。

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getLastPathSegment()' on a null object reference
at android.content.ContentUris.parseId(ContentUris.java:85)
at android.provider.cts.MediaStore_FilesTest.testGetContentUri(MediaStore_FilesTest.java:114)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at android.support.test.internal.runner.junit3.AndroidTestSuite$2.run(AndroidTestSuite.java:111)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)

GTS / gts-retry/6.0_r4com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions
com.google.android.placement.gts.CoreGmsAppsTest#testCoreGmsAppsPreloaded
failjava.lang.AssertionError: Unable to execute because service account is not authorized to access information for this device. Please verify device properties are set correctly and account permissions are configured to the Business Logic Api.. at org.junit.Assert.fail(Assert.java:88) at com.android.compatibility.common.util.BusinessLogicTestCase.failTest(BusinessLogicTestCase.java:117) at com.android.compatibility.common.util.BusinessLogicTestCase.ensureAuthenticated(BusinessLogicTestCase.java:101) at com.android.compatibility.common.util.BusinessLogicTestCase.handleBusinessLogic(BusinessLogicTestCase.java:54) at java.lang.reflect.Method.invoke(Native Method) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:52) at android.support.test.internal.runner.junit4.statement.RunBefores.evaluate(RunBefores.java:76) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at android.support.test.runner.AndroidJUnit4.run(AndroidJUnit4.java:101) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at org.junit.runner.JUnitCore.run(JUnitCore.java:115) at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:56) at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:389) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2107)没写key,在手机端烧录key文件,在电脑端配置3PL key(如K101 MM是富士康)

CTS/cts/8.1_r14

VTS /cts-on-gsi/8.1_R7

android.hardware.camera2.cts.NativeStillCaptureTest#testStillCapture

android.hardware.camera2.cts.RobustnessTest#testMandatoryOutputCombinations

fail

Test failed to run to completion. Reason: 'Test run failed to complete. Expected 2 tests, received 1'. Check device logcat for details

///

   
java.lang.Exception: There were 4 errors:
java.lang.Throwable(Test failed for camera 1: Output combination { [PRIV, PREVIEW] [JPEG, MAXIMUM] } failed due to:
captureCallback.onCaptureCompleted(
android.hardware.camera2.impl.CameraCaptureSessionImpl@cf84cf5,
android.hardware.camera2.CaptureRequest@de4db06a,
isA(android.hardware.camera2.TotalCaptureResult)
);
Wanted *at least* 3 times:
-> at android.hardware.camera2.cts.RobustnessTest.testOutputCombination(RobustnessTest.java:1500)
But was 2 times:
-> at java.lang.reflect.Method.invoke(Native Method)
)
java.lang.Throwable(Test failed for camera 1: Output combination { [YUV, PREVIEW] [JPEG, MAXIMUM] } failed due to:
captureCallback.onCaptureCompleted(
android.hardware.camera2.impl.CameraCaptureSessionImpl@78ed556,
android.hardware.camera2.CaptureRequest@a99dac35,
isA(android.hardware.camera2.TotalCaptureResult)
);
Wanted *at least* 3 times:
-> at android.hardware.camera2.cts.RobustnessTest.testOutputCombination(RobustnessTest.java:1500)
But was 2 times:
-> at java.lang.reflect.Method.invoke(Native Method)
)
java.lang.Throwable(Test failed for camera 1: Output combination { [PRIV, PREVIEW] [YUV, PREVIEW] [JPEG, MAXIMUM] } failed due to:
captureCallback.onCaptureCompleted(
android.hardware.camera2.impl.CameraCaptureSessionImpl@d455692,
android.hardware.camera2.CaptureRequest@923a9bdb,
isA(android.hardware.camera2.TotalCaptureResult)
);
Wanted *at least* 3 times:
-> at android.hardware.camera2.cts.RobustnessTest.testOutputCombination(RobustnessTest.java:1500)
But was 2 times:
-> at java.lang.reflect.Method.invoke(Native Method)
)
java.lang.Throwable(Test failed for camera 1: Output combination { [PRIV, PREVIEW] [PRIV, RECORD] [JPEG, RECORD] } failed due to:
captureCallback.onCaptureCompleted(
android.hardware.camera2.impl.CameraCaptureSessionImpl@68f9ea8,
android.hardware.camera2.CaptureRequest@e7663fa7,
isA(android.hardware.camera2.TotalCaptureResult)
);
Wanted *at least* 3 times:
-> at android.hardware.camera2.cts.RobustnessTest.testOutputCombination(RobustnessTest.java:1500)
But was 2 times:
-> at java.lang.reflect.Method.invoke(Native Method)
)
at android.hardware.camera2.cts.testcases.Camera2AndroidTestCase.tearDown(Camera2AndroidTestCase.java:124)
at junit.framework.TestCase.runBare(TestCase.java:140)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at android.support.test.internal.runner.junit3.AndroidTestSuite$2.run(AndroidTestSuite.java:111)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)

 

1、与机器性能有关

https://online.mediatek.com/FAQ#/SW/FAQ21242

2、与测试光线有关,测的时候试试灯光亮一点或暗一点

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值