CTSæ¦è¦ãç°å¢ãåºæ¬æä½
ä»åã¯ãCTSæ¦è¦ãç°å¢ãåºæ¬æä½ã«ã¤ãã¦è¨è¼ãããã¾ãã
ãªããæ¬å
容ãå®æ½ããä½ããã®åé¡ãæ害ãªã©ãçºçããå ´åãå½ç¤¾ã¯ä¸åã®è²¬ä»»ãè² ãã¾ããã
ããã¾ã§èªå·±è²¬ä»»ã§å®æ½ãã¦ãã ããã
ãããã®ãã¨ãèªèé ããä¸ã§ããå©ç¨ãåèã«ãã¦ãã ããã
ï¼.ã¯ããã«
ãæ¨ä»ã注ç®ãæµ´ã³ã¦ããAndroidã§ãããCTSã¨ããã®ã¯ãã¿ãªãããåç¥ã§ããããï¼
ãååã¯èãããã¨ãã£ã¦ããå®éã使ã£ããã¨ç¡ã人ãã»ã¨ãã©ã ã¨æãã¾ãã
ããªããªããã¢ããªãã³ãã¼ã«ã¯ãã¾ãé¢ä¿ãªããã¨ã§ããããããããAndroidãå©ç¨ãã¦ãä¸ã«
ãä½ããã®ãã¼ããåºããã¨ãã人ãã¡ï¼ã¡ã¼ã«ãå人å«ãï¼ãã¾ãã¯frameworkãæ¹å¤ï¼Bug対å¿ãªã©)ãã
ãAndroid Open Source Projectsã«submitãããã¨ãã人ã«ã¨ã£ã¦ã¯ãå®ã¯é¿ãã¦ã¯éããªãéã§ãã
ãæ¬è¨äºã¯ããããªäººãã¡ã®ããã«æ§ãã¾ãã
ãæ ªå¼ä¼ç¤¾ããªãªã¢ã³ããµã¼ãã¹ãããã
ãæè¡é¨ãè¤äºæ´ç¥(twitterID:@i_m_yosuke)ã
ã(æ ¡æ£)ã
ãæè¡é¨ãè¤ç°ç«å²(twitterID:@ryuuuji)ã
ãâ»è¤ç°ããããã§ãã¯ãããã¨ãã
ã1.CTSæ¦è¦
ã1.1ãCTSã®ç®ç
ããCTSï¼æ£å¼ã«ã¯Compatibility Test Suiteã以ä¸ãCTS)ã¯ãGoogle社ã
ããAndroid Platformæ¡ç¨ç«¯æ«ã«å®æ½ã義åä»ãã¦ããTest群ã§ããGoogle社ã¯ã
ããä»ã¾ã§OEMããããã¯ãã£ãªã¢ä¾åã§ãã£ãPlatformãAndroidã§æ±ç¨åãã¾ããã
ããCTSã¯ãAndroid Marketã§é å¸ãããã¢ããªã±ã¼ã·ã§ã³ãã
ããã©ã®OEMã®Android端æ«ã§ãã¹ã ã¼ãºã«å©ç¨å¯è½ãªããï¼OEMã«ãã£ã¦ãç¹åãããããªãããï¼ã«ã
ãã主è¦ãªå ¬éAPIãå®è¡ãããã§ãã¯ãã¾ãã
ããä¸ã®ä¸ã«AndroidPlatformæ¡ç¨ç«¯æ«ãé å¸ããå ´åããããTest群ãå ¨ã¦passãããã¨ã
ããäºææ§ãä¿ã¤ã¨ãã証ã«ãªããããããããã»ã¹ãçµã¦åãã¦ãAndroid端æ«ãã
ããåä¹ããã¨ãåºæ¥ãã®ã§ã¯ãªãã§ããããã
ããè足ã§ãããAndroid 2.3 Compatibility Definition Document(CDD)ã¨ããã
ããAndroid Platform使ç¨ããããã®Requirementãããã¾ãã
ãããã¡ãããããã¦ãç®ãéããããã¨ããå§ããã¾ãã
ããåç §ï¼ãhttp://source.android.com/compatibility/2.3/android-2.3.3-cdd.pdf
ãã注ï¼æ¬å 容ã¯ã2011å¹´8æ22æ¥ç¾å¨ãGoogle社ãæä¾ããç°å¢ãå ã«ä½æãã¦ããã¾ãã
ã1.2ãCTSã®åä½
ããCTSã¯ãèªååããããã¼ãã¹ã§ãã以ä¸ã®äºã¤ãå«ã¿ã¾ãã
ããã»ãã¹ãå®è¡ã®ç®¡ç
ããã»ã¿ã¼ã²ããããã¤ã¹ä¸ã§å®è¡ããããã¹ãã±ã¼ã¹ã®APKãã¡ã¤ã«
ãã大ã¾ããªæé ã¨ãã¦ã¯ã以ä¸ã®ããã«ãªãã¾ãã
ãã1.CTSãDownload
ãã2.ã¿ã¼ã²ããããã¤ã¹ã®æ¥ç¶
ãã3.ã¢ã¯ã»ã¹ããªãã£ãã¹ãå®è¡æºå
ãããaï¼android-cts/repository/testcases/CtsDelegatingAccessibilityService.apk ãã¤ã³ã¹ãã¼ã«
ãããbï¼ä»¥ä¸ã®æé ã§ã¤ã³ã¹ãã¼ã«ããã¢ã¯ã»ã¹ããªãã£ãµã¼ãã¹ãæå¹ã«ãã¾ãã
ãããããSettings > Accessibility > Accessibility > Delegating Accessibility Service
ããï¼ï¼ã¢ãããã¹ãã¬ã¼ã¿ãã¹ãå®è¡æºå
ãããï½ï¼android-cts/repository/testcases/CtsDeviceAdmin.apk ãã¤ã³ã¹ãã¼ã«
ãããï½ï¼Settings > Location & security 以ä¸ã«ããandroid.deviceadmin.cts .* ãå ¨ã¦æå¹ã«ãã¾ãã
ããï¼ï¼ï¼£ï¼´ï¼³ãèµ·åãã¾ãã
ããï¼ï¼ï¼£ï¼´ï¼³ã¬ãã¼ããä½æããã¾ãã
ããåç §ï¼ãhttp://source.android.com/compatibility/cts-intro.html
ã1.3ãCTSã®ãã¹ãç¯å²
ãããã¹ãç¯å²ã¯ä»¥ä¸ã®éãã§ããï¼ç¾å¨ã大ããåãã¦ï¼ã¤ã«ãªãã¾ãï¼
ããåç §ï¼http://source.android.com/compatibility/cts-intro.htmlãï¼.ãCTSã®ç°å¢ä½ã
ã2.1ãå¿ è¦ãªãã®
ããï¼ãã¼ãï¼
ããã»PCã-ãDownloadããCTSãå®æ½ãã¾ãã
ããã»ã¿ã¼ã²ããããã¤ã¹ãâãAndroid Platformãæ¡ç¨ããããã¤ã¹ã§ãã
ããï¼ã½ããï¼
ããPCã«å¿ è¦ãªãã®
ããã»Android DevelopersãããSDKãDownloadãã¦ãã ãããï¼PC OSã«é©åãããã®ï¼
ãããâ»Buildç°å¢ãæ´ã£ã¦ããã¨ãããã¨ãåæã¨ãªãã¾ãã
ãããåç §ï¼ãhttp://developer.android.com/sdk/index.html
ããNote.
ããCTSå®æ½ç°å¢ã«ã¤ãã¦ãPCå´ã®OSã¯ããã¡ãå´ã§ç¢ºèªåãã¦ããã®ã¯ãLinuxï¼Ubuntuï¼ãMacOSã§ãã
ããWindowsã«é¢ãã¾ãã¦ã¯ãCTSå´ç°å¢ãWindowsã«é©åãã¦ããªãé¨åããããå®è¡Errorã¨ãªãã¾ãã
ããCTSå´ç°å¢ãæ¹å¤+Cygwinã§ãåä½ã¯ç¢ºèªãã¦ãã¾ããæ©ä¼ãããã°å¥éç´¹ä»ãããã¾ãã
ããã»Android Open source project ãããã¿ã¼ã²ããããã¤ã¹ã®Firmware versionã«ããããCTSã
ãããPCã®ä»»æã®å ´æã«Downloadãã¦ãã ããã
ãããåç §ï¼ãhttp://source.android.com/compatibility/downloads.html
ãNote.
ããCTSã¯ãã¿ã¼ã²ããããã¤ã¹ã§æ¡ç¨ããã¦ããFirmware versionã«ãããã¦ãé¸æããå¿ è¦ãããã¾ãã
ããAndroid2.3(Gingerbread)æ¡ç¨ã®å ´åãCTS2.3R5ãå®æ½ãã¹ãCTS versionã¨ãªãã¾ããï¼å³2.1-2åç §ï¼
ã2.2ãå®æ½æºå
ãã2.1.1ã CTSå®æ½ãã©ã«ãä½æ
ããã2.1ç« ã§DownloadããCTS 2.3R5(android-cts-2.3_r5-x86.zip)ãä»»æã®å ´æã§è§£åãã¾ãã
ã解åå¾ãå³2.2-2ã®ãããªãã©ã«ããä½æããã¾ãã
ã 2.2.2ãç°å¢å¤æ°ã®è¨å®
ãããCTSã¯ã/android-cts/tools/startctsãå®è¡ãããã¨ã§èµ·åãã¾ããstartctsã¯ã
ãããã¹ã¯ãªããã§æ¸ããã¦ãããCTS2.3R5ã§ã¯ããã®ã¹ã¯ãªããä¸ã§ç°å¢å¤æ°ã
ãããï¼ã¤ä½¿ç¨ãã¦ãã¾ãã
ããç°å¢å¤æ°ãã®ï¼ãCTS_ROOTif [ -z "${CTS_ROOT}" ]; then # CONFIGURATION # Set this variable to the root of unzipped CTS directory # This only needs to be changed if this script has been moved CTS_ROOT="$(dirname $0)/.." fi;ããé常使ç¨ã®å ´åãç¹ã«æèãå¤æ´ãè¨å®ããå¿ è¦ã¯ãããã¾ããã
ããç°å¢å¤æ°ãã®2ãSDK_ROOT# Add SDK_ROOT to the PATH for backwards compatibility with prior startcts # commands that required SDK_ROOT to find adb. if [ -n "${SDK_ROOT}" ]; then PATH=${SDK_ROOT}/platform-tools:${SDK_ROOT}/tools:${PATH} fiãã~/.bashrcã«ãexportã追å ãã¾ãã
export SDK_ROOT=~/android-sdk-linux_x86Note.
.bashrcãå¤æ´ããã«ãä¸è¨ã®ããã«SDK_ROOTã®åæå¤ãç´æ¥ä¸ãã¦ãæ§ãã¾ããã# Add SDK_ROOT to the PATH for backwards compatibility with prior startcts # commands that required SDK_ROOT to find adb. SDK_ROOT=â~/android-sdk-linux_x86â if [ -n "${SDK_ROOT}" ]; then PATH=${SDK_ROOT}/platform-tools:${SDK_ROOT}/tools:${PATH} fi
ã2.2.3ãCTSå®è¡
ãããCTSå®è¡ããã«ã¯ãåè¿°ã®ããã«startctsãå®è¡ãã¾ãã
ä¸è¨ã®ããã«cts_hostããã³ããã表示ãããã°æ£å¸¸ã«èµ·åããã¦ãã¾ãã
ï¼.ãCTSã®æä½ï¼åºæ¬ç·¨ï¼
ã3.1ããã©ã³CTSã®ç¢ºèª
ããCTSã®ãã©ã³ã¯ãâls –planâã§ç¢ºèªãããã¨ãåºæ¥ã¾ãã
ããç¾å¨ã¯ãè¨8種é¡æä¾ããã¦ãã¾ãããã©ã³CTSã¯ããã®ãã¡ã®ã²ã¨ã¤ã§ãã
ããNote.
ããGoogle社ã¸ã¯ããã©ã³CTSï¼å³3.1-1ã®èµ¤ä¸¸ï¼å®æ½ãä½æãããã¬ãã¼ããæåºãã¾ãã
ããæ¬è¨äºã§ã¯ããã©ã³CTS以å¤ã®èª¬æã¯å²æãããã¾ããããã©ã³CTSã§å®æ½ãããå種ãã¹ãã
ããç®çå¥ã«å°åãããããããªãã®ã ã¨èãã¦ãã ããã
ããã©ã³CTSãæä¾ããé ç®ãâls --plan CTSâã§ç¢ºèªãããã¨ãå¯è½ã§ãã
ãç¾å¨ã¯ãè¨42é ç®ã®ãã¹ãããã±ã¼ã¸ãæä¾ããã¦ããã¾ãã
ã3.2ããã©ã³CTSã®å®æ½
ãã3.2.1ããã©ã³CTSå®æ½æ¹æ³ãã®ï¼
ããããã©ã³CTSã¯ãâstart –plan CTSâã§å®è¡ããã¾ãã
ãããæ¸å¼ï¼start --plan test_plan_name
Note.
ããèªåã§ã端æ«Rebootãç¹°ãè¿ããªããããã©ã³CTSã®é ç®ãé ã«å®æ½ãã¦ããã¾ãã
ãã3.2.2ããã©ã³CTSå®æ½æ¹æ³ãã®ï¼
ããããã©ã³CTSãå³3.1-2ã§è¡¨ç¤ºãããã¹ãããã±ã¼ã¸åä½ã§å®æ½ãããã¨ãå¯è½ã§ãã
ãããâ-pâãªãã·ã§ã³ã«ã¦ããã¹ãããã±ã¼ã¸åãæå®ãã¾ãã
ãããæ¸å¼ï¼start --plan test_plan_name -p java_package_name
ãããä¸è¨ã®ä¾ã§ã¯ãâandroid.apidemos.ctsâãå®æ½ããã¦ãã¾ãã
ããNote.
ããæå®ããããã¹ãããã±ã¼ã¸ã«å«ã¾ãããã¹ãã·ããªãªãå ¨é¨å®è¡ãããå¾ã
ããcts_hostããã³ããã表示ããã³ãã³ãå ¥åå¾ ã¡ã¨ãªãã¾ãã
ãã3.2.3ããã©ã³CTSçµæ確èª
ãããCTSå®æ½çµæã¯ãandroid-cts/repository/results ç´ä¸ã«ãCTSéå§æ¥ä»ãã©ã«ããä½æãããããã«æ ¼ç´ããã¾ãã
ããNote.
ããresultsãã©ã«ãã®ä¸ã«ãzipãã¡ã¤ã«ãä½æããã¾ãã
ããããã¯ãåè¿°ã®CTSå®æ½çµæãæ ¼ç´ãããCTSéå§æ¥ä»ãã©ã«ããcompressãããã®ã§ãã
ããGoogle社ã¸ã¯ããã®zipãã¡ã¤ã«ãæåºãã¾ãã
ãCTSå®æ½çµæãã©ã«ãã«ã¯ãå³3.2.3-2ã§ç¤ºããããªãã¡ã¤ã«ç¾¤ãåå¨ãã¾ãã
ããtestResult.xmlã«å®è¡æ¯ã«çµæãåæ ããã¦ããã¾ãããã®çµæã¯ããã©ã¦ã¶ã§ç¢ºèªå¯è½ã§ãã
ããtestResult.xmlããã©ã¦ã¶ã§Openããã¨ä¸è¨ãå³3.2.3-3ã®ããã«è¡¨ç¤ºããã¾ãã
ããä»ã®æ å ±ããã©ã¦ã¶ã¹ã¯ãã¼ã«ã«ãã£ã¦è¡¨ç¤ºããã¾ãã
ããCTSãã¨ã©ã¼ãæ¤ç¥ããå ´åãä¸è¨ã®ããã«ãResultåã赤ããªããã¨ã©ã¼è©³ç´°ã表示ããã¾ãã
ããNote.
ããFailure Detailsã«è¡¨ç¤ºãããã¨ã©ã¼å 容ã§ã¯ã
ããã©ã®ãããªAPIã使ç¨ããçµæã¨ã©ã¼ã¨ãªã£ãã®ããå¤å¥ãã«ããå ´åãããã¾ãã
ãããã®å ´åãCTSã½ã¼ã¹ã³ã¼ãï¼AOSPããåå¾å¯è½ï¼ã解æããã¨ã©ã¼è¦å ã
ããAPIãç¹å®ããå¿ è¦ãããã¾ãã
以ä¸ã§ãã
å½è¨äºå
容ãPDFåãã¦ã¾ãã
ä¸è¨LinkããDownloadã§ãã¾ãã
BS_CTS_Doc01(概要).pdf
BS_CTS_Doc02(環境).pdf
BS_CTS_Doc03(基本操作).pdf