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
0
votes
3 answers

Starting CTS from the commandline

How do I start the Android CTS from the command line, I have tried every combination that I can think of: ~/programs/android-cts/tools$ ./startcts --config ../repository/host_config.xml start -plan CTS and the like does not work. Any input will be…
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
0
votes
0 answers

Is there any steps to configure android-cts latest version 13 on docker?

Android CTS Failed with exception [ANDROID_PARTNER_SERVER_ERROR|500505|DEPENDENCY_ISSUE] in docker container. Able to run the same cts on linux PC, but not from docker container. Linux PC is Ubuntu 20.04 Configured android-cts[Android…
Binil
  • 1
  • 2
0
votes
1 answer

is it possible to stop the cts and save the current logs

I am running android-cts . The commands I run are mentioned below, cts-tf run-cts --plan --cts-camera It is being running for two days . How do I stop the current task and save the existing logs . Also it is mentioned in documentation ,that the cts…
vik
  • 11
  • 2
0
votes
2 answers

android-cts-8.1_r3 execution is not starting

On starting, facing the below issue[followed all the precondition steps] 03-29 04:49:11 W/DynamicConfigPusher: Cannot download and parse json config from URL…
user3872486
  • 97
  • 1
  • 2
  • 10
0
votes
1 answer

How to run testcases in frameworks/base/core/tests/coretests

I want to run some of the testcases inside frameworks/base/core/tests/coretests. For example, I want to run "VirtualDisplayTest" in frameworks/base/core/tests/coretests/src/android/hardware/display/ . I want to run them on my nexus 10 tablet…
Sushil
  • 8,250
  • 3
  • 39
  • 71
0
votes
1 answer

INSTALL_FAILED_UID_CHANGED ERROR While Android CTS TEST

cts-tf > run cts -p android.uiautomator 07-23 16:00:48 I/TestInvocation: Starting invocation for 'cts' on build '4.2_r1' on device 0123456789ABCDEF 07-23 16:00:48 I/0123456789ABCDEF: Created result dir 2013.07.23_16.00.48 07-23 16:00:49 E/CtsTest:…
Ethan
  • 13
  • 1
0
votes
1 answer

Android CTS test - test_execCreatedJar failing

I'm trying to debug this test which is failing on our device while it works within the emulator. The test generates a .jar file and will try to extract the .dex and run the same. I debugged the call stack and found that in the emulator, the sequence…
droid_dev
  • 303
  • 4
  • 15
-1
votes
1 answer

Different results running android cts test with adb as root vs not as root

The cts test testNoDebuggingFeaturesRestriction from com.android.cts.devicepolicy.ManagedProfileTest fails for me when I run adb as root but it passes when I don't. I am not sure I understand which is the correct behaviour. Is it OK that the results…
user2248720
  • 11
  • 1
  • 6
1
2