#gts 6.0 以後測試如下報錯資訊:
java.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…
#分析這是由于沒有向google申請白名單和key導緻,這就需要ODM廠商向3PL或者google送出某項單測報告,然後送出到google進行注冊備案
這個操作在GTS 6.0 R1以後google開放了key驗證伺服器之後需要測試
單測報告說明如下:
Android 8.1 單測case:
run cts -m CtsSystemCurrentApiSignatureTestCases -t android.signature.cts.api.SignatureTest#testSignature
Android 9 單測case:
run cts -m CtsCurrentApiSignatureTestCases -t android.signature.cts.api.SignatureTest#testSignature
環境配置說明:
首先需要向所在的3PL申請提供如下類似檔案:
APE_API_key-20180809T091132Z-001
每個3PL的注冊資訊是不同的,是以這個檔案是不通用的,具體可咨詢對應3PL
ubuntu配置步驟:
首先将3PL發過來的APE_API_key檔案放置到某一路徑下,我是直接放到home檔案下,
建立key-json檔案,ctrl+H打開隐藏檔案,找到./bashr編輯
添加如下内容:
export APE_API_KEY=/home/emdoor/key-json/pegatronkey.json
export PATH= A P E A P I K E Y : APE_API_KEY: APEAPIKEY:{PATH}
配置完成後儲存,進入gts運作./gts-tradefed
[email protected]:~/gts/6.0.4/android-gts/tools$ ./gts-tradefed
出現如下提示說明配置成功了。
APE_API_KEY: /home/emdoor/key-json/pegatronkey.json