简体   繁体   English

[Android] [CTS] SimpleSignatureTest错误。 此测试比较什么XML?

[英][Android][CTS] SimpleSignatureTest Error. What XML does this test compare?

Problem: I am not sure where and what xml file this cts test is comparing against. 问题:我不确定此cts测试在哪里比较哪个XML文件。

When I run this particular CTS test case run cts -p android.tests.sigtest 当我运行此特定的CTS测试用例时,请run cts -p android.tests.sigtest

it fails and complains as follows: 它失败,并抱怨如下:

08-20 15:40:40.957  7195  7208 I TestRunner: failed: testSignature(android.tests.sigtest.SimpleSignatureTest)
08-20 15:40:40.957  7195  7208 I TestRunner: ----- begin exception ----- 
08-20 15:40:40.957  7195  7208 I TestRunner:  
08-20 15:40:40.957  7195  7208 I TestRunner: junit.framework.AssertionFailedError:  
08-20 15:40:40.957  7195  7208 I TestRunner: mismatch_field:   android.os.Build#BOARD(java.lang.String) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at junit.framework.Assert.fail(Assert.java:50) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at android.tests.sigtest.SimpleSignatureTest.testSignature(SimpleSignatureTest.java:118) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at java.lang.reflect.Method.invokeNative(Native Method) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at java.lang.reflect.Method.invoke(Method.java:511) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at junit.framework.TestCase.runTest(TestCase.java:168) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at junit.framework.TestCase.runBare(TestCase.java:134) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at junit.framework.TestResult$1.protect(TestResult.java:115) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at junit.framework.TestResult.runProtected(TestResult.java:133) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at junit.framework.TestResult.run(TestResult.java:118) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at junit.framework.TestCase.run(TestCase.java:124) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555) 
08-20 15:40:40.957  7195  7208 I TestRunner:    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1799) 
08-20 15:40:40.957  7195  7208 I TestRunner: ----- end exception ----- 
08-20 15:40:40.967  7195  7208 I TestRunner: finished: 

From the prints the problem is 从打印出来的问题是

08-20 15:40:40.957 7195 7208 I TestRunner: mismatch_field: android.os.Build#BOARD(java.lang.String)

And by looking at Build.java I see it reading from "ro.product.board" 通过查看Build.java,我看到它是从"ro.product.board"读取的

public static final String BOARD = getString("ro.product.board"); ( http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/android/os/Build.java ) http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/android/os/Build.java

after tracing "ro.product.board" for a while I see it is defined in the make file. 跟踪“ ro.product.board”一段时间后,我看到它在make文件中定义。 /device/abc_company/device_name.mk

This is totally fine. 很好

But looking at the test case itself, I see it is reading an xml file. 但是看一下测试用例本身,我看到它正在读取一个xml文件。 It looks this xml file is already in binary (eg. *.apk) so I don't know where it is or what it is. 看起来该xml文件已经是二进制文件(例如* .apk),所以我不知道它在哪里或什么。

start(r.getXml(f.getInt(rClass))); ( ftp://ftp.heanet.ie/mirrors/sourceforge/s/su/supernovaics/ics/cts/tests/SignatureTest/src/android/tests/sigtest/SimpleSignatureTest.java ) ftp://ftp.heanet.ie/mirrors/sourceforge/s/su/supernovaics/ics/cts/tests/SignatureTest/src/android/tests/sigtest/SimpleSignatureTest.java

At the very end what I would like to know is where this xml file is. 最后,我想知道的是该xml文件的位置。

Thanks... 谢谢...

o从文件frameworks / base / api / current.txt在api.xml文件中生成了预期的集合。o在路径out / target / common / obj / APPS / SignatureTest_intermediates / api中生成了api.xml文件。 XML文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 android studio 中的按钮错误。 写在 java 但显示错误。 我应该怎么办? - Button error in android studio. Written in java but shows error. What should i do? 引起:java.lang.RuntimeException:找不到Android类错误。 是什么造成的? - Getting Caused by: java.lang.RuntimeException: Android classes not found error. What is causing it? 无法识别与服务器的Android连接或抛出错误。 我究竟做错了什么? - Android connection to server not being recognized or throwing an error. What am I doing wrong? 方法声明给出错误。 是什么赋予了? - method declaration gives an error. What gives? 非常简单的Spring MVC配置错误。 我的web.xml和依赖的servlet配置文件出了什么问题 - Very simple Spring MVC configuration error. What is wrong int my web.xml and dependent servlet config file 没有已知的包错误。 Android 5.0 - No known package error. Android 5.0 startActivity() 方法返回错误。 / 片段 - Android - The startActivity () method returns an error. / Fragment - Android Java InputMismatchException错误。 是什么原因造成的? - Java InputMismatchException error. What causes it? VariableDeclaratorId和放错位置的构造错误。 安卓系统 - VariableDeclaratorId and misplaced construct error. Android Jenkins测试邮件配置错误。 java连接错误 - Jenkins test mail configuration error. java connection error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM