Questions tagged [android-cts]

An automated testing harness

From the site:

The CTS is an automated testing harness that includes two major software components:

  • The CTS test harness runs on your desktop machine and manages test execution.

  • Individual test cases are executed on attached mobile devices or on an emulator. The test cases are written in Java as JUnit tests and packaged as Android .apk files to run on the actual device target.

The CTS includes the following types of test cases:

  • Unit tests test atomic units of code within the Android platform; e.g. a single class, such as java.util.HashMap.

  • Functional tests test a combination of APIs together in a higher-level use-case.

  • Reference application tests instrument a complete sample application to exercise a full set of APIs and Android runtime services

23 questions
2
votes
1 answer

How to set up Android CTS in Eclipse?

How should I set up Android CTS in Eclipse? I have tried to follow the guide at Android Open Source Project for setting up CTS development in Eclipse. However, I get build errors when trying to set it up in Eclipse Indigo with android-2.3.7_r1 on…
user11171
  • 3,821
  • 5
  • 26
  • 35
2
votes
1 answer

android-gts Setup android-gts on ubuntu16.04

I try to setup andorid-gts on ubuntu16.04. python version is 2.7.16. I have installed below packages: pip install future pip install protobuf pip install auth pip install compiler pip install virtualenv pip install PyPi pip install…
lucky1928
  • 8,708
  • 10
  • 43
  • 92
2
votes
1 answer

What are the correct commands to run the CTS and VTS test plans?

I am about to setup the VTS and CTS tests for our AOSP. Both of the test suites are using the Trade Federation test framework. What is confusing me is how to run the different test plans. According to the documentation…
2
votes
1 answer

Not able to add new group permission in android

I'm trying to add a new group permission in Android but it is not taking effect in my application (new CTS test). Below are the changes : test@test-ubuntu:~/android_aosp/system/core$ git diff diff --git a/include/private/android_filesystem_config.h…
androidFan
  • 611
  • 2
  • 19
  • 31
2
votes
1 answer

Android CTS 7.0: CtsCarrierApiTestCases item failed in "testHasCarrierPrivileges"

I am now trying to run the Android CTS 7.0 on Google Nexus 6 (AOS:7). There is an fail in the item "CtsCarrierApiTestCases" The error message is: android.carrierapi.cts.CarrierApiTest#testHasCarrierPrivileges fail …
2
votes
2 answers

Android CTS - Random test fails

When I run android CTS full test using below command run cts --plan CTS Every time it shows different result for some of the packages, I mean some packages some tests passes/fails randomly every time I re-run full test. But when I run package…
SD.
  • 1,432
  • 22
  • 38
1
vote
1 answer

How to setup and run Android CTS in Windows OS

I want to setup Android CTS in my Windows OS. I didn't found proper links or references to download & install Android CTS for Windows OS. Official document and few more links are provided for Linux OS. Thanks in advance.
Srihari
  • 2,387
  • 9
  • 51
  • 82
1
vote
2 answers

How to stop android CTS with saving the current results?

Is this a command that gives opportunity to stop the running CTS test, for further look through the results, and then continuing running the rest of CTS test?
1
vote
1 answer

CTS error faced

In android CTS 8.1 code there is no CtsDeviceAdmin.apk When I am re-running the failed & not executed modules using retry command then the cts test report shows only previously passed modules result i.e result not updated? How much time takes to run…
1
vote
1 answer

How to build Trade Federation test cases

I am able to compile and execute Trade Federation test cases which are located inside /tools/tradefederation/core/tests. But how can I execute the test cases which are located inside my project? My Unit and Instrumentation test cases are located…
1
vote
1 answer

Regarding CTS Error

How to kill a running CTS instance.Suppose one CTS instance is running on a terminal and if we abruptly close that terminal, that CTS instance will not be closed and when we try to start CTS again in a fresh terminal,we get this error[CTS_ERROR…
KVR
  • 11
  • 1
1
vote
2 answers

Android CTS: "Error during Sync: timeout"

UBUNTU : 12.04 Android CTS : 6.0_r5 ADB version : Android Debug Bridge version 1.0.32 (Revision 09a0d98bebce-android) When running a CTS test on my target board, I got "Error duing Sync: timeout" so any test is not executed. I tried to the same…
1
vote
0 answers

CTS PrivateAttributeTest in M: How to resolve it by using private attribute correctly?

Google have added this new CTS case in M, which is cts/tests/tests/content/src/android/content/res/cts/PrivateAttributeTest.java It enforces that NO vendor custom attribute (type=attr, id=0x0101*) shall be added to…
Heng
  • 11
  • 1
1
vote
0 answers

Android: Adding a custom test to the compatibility test suite

I have created a simple test case using android studio that just checks whether the Device has WiFi Adapter or not and if it has then is it functioning or not. The test case is working fine on Android Studio but i don't have any idea how add that…
u_8398
  • 27
  • 10
1
vote
1 answer

android-cts-4.4-r3 gives NoClassDefFoundError while running cts-tradefed

I am trying to run Android CTS tests on Windows using Cygwin for android-cts-4.4_r3-linux_x86-arm. When I run ./cts-tradefed I get following error: java.lang.NoClassDefFoundError: com/android/cts/tradefed/command/CtsConsole Caused by:…
user2661518
  • 2,677
  • 9
  • 42
  • 79
1
2