CTS frame Resolution (1)-windows CTS Configuration

Source: Internet
Author: User

Environment construction


Download


CTS Tool: Http://source.android.com/compatibility/downloads.html

Windows chooses Android4.4 R3 compatibility Test Suite (CTS)-arm download.


Folder structure


The extracted folder structure is as follows:

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaxrmb290ymfsba==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">


Among them, repository and tools will be used frequently to introduce.


Repository


After entering the repository folder, there will be four files


watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaxrmb290ymfsba==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">


Logs: Store the log file during case run or

Plans: Configure the XML file repository for plan, with the following plan


watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaxrmb290ymfsba==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">


Results: Result file

Testcases:case storage folder, which comes with the following case


watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaxrmb290ymfsba==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">


Tools


Run folder for tool:




Includes the required jar packages and a shell file that can be run under Linux.


Perform


Tools want to run under Windows, you need to add a file under Tools to run under Windows: Cts-tradefed.bat


@echo offsetlocal enabledelayedexpansionsetlocal enableextensions:: Set the CTS root folder, change the current folder to the folder set cts_root=%~dp0\ for the batch itself ... \.:: Set the root folder of the supported jar packages set Jar_dir=%cts_root%\android-cts\tools:: Supported jar packages, the jar packages referenced in the project are included in the set jars= Ddmlib-prebuilt.jar Tradefed-prebuilt.jar Hosttestlib.jar Cts-tradefed.jar Tradefed-prebuilt-orgin.jar Jsoup-1.7.3.jar Gson-2.2.4.jar commons-compress-1.8.1.jar mail.jar javacsv.jar rxtxcomm.jarset JAR_PATH=.for%%i in (% jars%) do (set jar_path=! jar_path!; %%i) Java%rdbg_flag%-cp%jar_path%-dcts_root=%cts_root% com.android.cts.tradefed.command.CtsConsole%*pause


After joining the folder structure such as the following:




Plug in your phone and click Cts-tradefed.bat file to start CTS. will appear such as the following interface:


watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaxrmb290ymfsba==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">


Perform a test test:





Now you go back to see the Respository folder in the logs and Results folder there will be a file:



After the collection of mobile phone information will start testing. For example, with:





After the end of the repository/results/to see the results, click the Testresult.xml file, will open the statistics in the browser:






CTS frame Resolution (1)-windows CTS Configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.