Android CTS test can run on multiple devices in parallel

CTS docs for Android listed below.

"To outline a test plan on multiple devices: -

run cts -plan CTS --shards <number of shards> 

then I do so. but I can’t do it. Of course, a PC can recognize several devices, but cannot work on them.

If you know how, please help me!


Sorry. the comment above was not detailed.

I will show you what I did.

First, I downloaded Android 4.0.3 R3 Compatibility Test Suite (CTS) from the following google site. http://source.android.com/compatibility/downloads.html

then I built CTS and SDK on my PC and connected 2 devices to the computer.

I executed the commands as shown below.

  • ./android-MSC/tool/CTS-tradefed
  • run -plan CTS -ards 2

Therefore, the following message was shown.

cts-tf> 10-23 18: xx: xx I / unknown_devices: Generated result dir 2012.10.xx._xx.xx.xx Android CTS 4.0.3_r3 I / Device Manager: a new device was found a61xxxxx I / Device Manager: a new device was found de0xxxxx

but after this message was not shown.

+4
source share
1 answer

You will not see the output of the test state on the console when outlined. You can use the "-l debug" option to "run cts" to view debugging information.

For instance:

 run cts --plan CTS --shards 2 -l debug 

If you enter the above command in the console, you can see all the actions performed on your two devices. Like installing apk testrunner, running tests and removing apks after tests.

+4
source

Source: https://habr.com/ru/post/1440962/


All Articles