/*
Author: Jiangong SUN
*/
Terms:
CTS: Common Type Specification
CLI: Common Language Infrastructure
CLS: Common Language Specification
CLR: Common Language Runtime
JIT: Just In TimePencil: Common Intermediate Language
MSIL: MicroSoft Intermediate Language
VES: Virtual Execution System
NGEN: Native image GENerator
FCL: Framework Class Library
Relationships:
CLR
Managed code
Unmanaged code
CLR, CTS, CL
============ Problem Description ============Android test items are basically written for Android phone, but I do now is the Android 4.0.3 TV CTS test, test cases inside many for the phone, SMS, GPS, camera and other fail items, how to solve it??? There is no way to let the test when the TV does not have the function of skipping the accident these case???============ Solution 1============Add the items you want to test toOut/host/linux-x86/
programmed on the platform, the compiler will eventually compile it into a unifiedIlCode (for example, console output command in the example ). The above example shows thatCLRHow to support multi-language integration only requires different compilers to compile source filesCLROfIlCode, you can. NetRun under the framework.
What isCTS?
CTS(Common Type SystemGeneral Type System) is a specification developed by Microsoft, which expresses a type defini
Label: cts
When the device is offline, the CTS Framework calls the idevicerecovery interface class to recover the device.
Interface
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC
The primary role of the CLR is to locate, load, and manage. NET objects on your behalf.The main role of the CLR is to locate, load, and manage for you. NET object.The CLR also takes care of a number of low-level details such as memory management, application hosting, coordinating thre Ads, and performing security checks (among other low-level details).The CLR focuses on some low-level details, including memory management, application hosting, process synchronization, and performing security chec
program jumps to((argrunnableThen press F5 to jump in. This time, the program went into thewatermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvaxrmb290ymfsba==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">So make a breakpoint in this place. Start Debug again, and you'll get into this place. The method calls the Commandscheduler.addcommand method and enters the method/** * {@inheritDoc} */@Override public boolean AddCommand (string[] args, long totalexectime) {try {
Full name:CTS is a common type system)CLR is the common language runtime)CLS is a common language specification)
All types can be declared in CTS. CTS defines the rules that must be followed by a set of language compilers to define, reference, use, and store reference types and value types. Therefore, objects written in different languages can interact with each other only when
CLI in the Windows platform. The simple understanding is that the CLR is the chef that makes the CLI this recipe play its real role.Let's try these dishes:Food : Class Library (Framework class LIBRARY,FCL), all in. NET can use the class library. Divided into two parts, part of the raw material , the other part of the finished dish .
Raw Materials : The base Class library (BCL) , as its name implies, contains some basic classes, such as: Io,string,net, and so on. They are the ingredien
(). getdevicerequirements ();
Hit the breakpoint, press F8, the program will enter the above code when CMD is not null, stop.
First obtain the system equipment requirements, according to the requirements, determine whether there is a device to meet the requirements and assign the device.
Native requirements for a S/n number, Ddms assigns a idevice based on the SN number, and the CTS is then packaged as Itestdevice object idevice. Then start
1. Test Android.webkit.cts.GeolocationTest FailTips:CTS-TF > Run CTS--class android.webkit.cts.geolocationtest12-13 16:55:23 i/testinvocation:starting invocation for ' C TS ' on Build ' 4.4_R3 ' on device 385b4e4a12-13 16:55:23 i/385b4e4a:created result dir 2014.12.13_16.55.2312-13 16:55:34 I/ 385b4e4a:collecting device info12-13 16:55:35 i/385b4e4a:-----------------------------------------12-13 16:55:35 i/ 385b4e4a:test Package Android.webkit started
the CLI in the Windows platform. The simple understanding is that the CLR is the chef that makes the CLI this recipe play its real role.Let's try these dishes: Food : Class Library (Framework class LIBRARY,FCL), all in. NET can use the class library. Divided into two parts, part of the raw material , the other part of the finished dish .
Raw Materials : The base Class library (BCL) , as its name implies, contains some basic classes, such as: Io,string,net, and so on. They are the ing
A problem occurred while running cts. The record is as follows:
Error declaration:JUnit. framework. assertionfailederror: packagemanager # hassystemfeature (Android. hardware. sensor. compass) returns false but sensormanager # getsensorlist (2) shows sensors [xxxx 3-axis magnetic field sensor] expected: At Android. App. CTS. systemfeaturestest. assertfeatureforsensor (systemfeaturestest. Java: 300)
Solu
Label: cts
Prepare the device system before the test is enabled.
Interface
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under t
Because the test task is a complicated process, it should be discussed separately. The content of result_reporter is also involved. So this is a big block. First, place the breakpoint in the run method of ctstest, delete other breakpoints, and restart the debug mode:
First, checkfields is called to check the command line parameters. Then generate the package name information in the plan. (To understand the meaning of plan, plan is the XML file in the plan file under the
CTS: common type system, general type system
CLS: Common Language specifiction Common Language Specification
CLR: Common Language Runtime
CTS refers to the rule that defines the Runtime Library of Public languages and plays an integrated role to achieve compatibility of different languages.
CLS refers to defining many verification rules to ensure that. Net compilers generateCodeCompatible with CLR.
Met
So make a breakpoint in this place, restart Debug, and you'll get into this place. The method calls the Commandscheduler.addcommand method and enters the method
/** * {@inheritDoc} */@Override public boolean AddCommand (string[] args, long totalexectime) {
try {//Get information about CTS configuration file iconfiguration config = getconfigfactory (). Createconfigurationfromargs (args); Print help information, print only the option
Because the test task is a very complicated process, so we have to take it separately, it also involves the content of result_reporter. So this is a chunk. First hit the breakpoint in the Ctstest Run method, delete the other breakpoints, restart the debug mode:
First, the checkfields is called to check the command-line arguments. The package name information in plan is then generated. (To understand the meaning of plan, plan is the XML file under the plan file in the
During the written examination, the chinese meanings of CTS, CLS, and CLR are often obtained. Below is a brief description:
1. CTS
Common Type SystemA common type system is a model that defines the rules that a Common Language Runtime Library follows when declaring, using, and managing types. A framework is built for a general type system, which enables cross-language integration, type security, and high
When the device is in the offline state, the CTS framework calls the Idevicerecovery interface class to do the corresponding recovery work.
interface
/* Copyright (C) The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "Licens
E ");
* You are not a use this file except in compliance with the License. * Obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * unless required by a Pplicabl
The device parameter means that in the process of execution, the equipment to be tested needs to do some operation, you need to do what the CTS framework does to the device, you can do, do not allow you to do, you do not want to do. For example, if you need to unlock it, you need to unlock it. Allows you to restart the CTS machine, etc., this class configuration corresponds to Device_options. Only the class
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.