Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of the most complete Command Line interpretation and use of Android CTS V2

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you an example analysis of the most complete command line interpretation and use of Android CTS V2. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Host command

Help displays a generic collection of commands.

Help all displays this collection of available commands.

Version shows what version of the current CTS is, for example, I am currently displaying Android Compatibility Test Suite 8.1_r1 (eng.admin.20190524.115059).

The last one is exit, which is used to exit the console, but if there are other tasks being executed, you can not exit until they are finished. If you don't care about this, it's OK to ctrl+c directly. There is also an immediate exit command exit-c.

Run command

Run cts is a common command that executes all CTS test cases by default.

The run cts-dev command is more or less the same as the above command, except that it runs in developer mode, skipping some tests such as checks, in order to save time and bypass device configuration verification and settings, such as pushing media files or checking Wi-Fi connections, as when-- skip-preconditions uses this option. This command also skips device information collection and all system status checks. It also runs tests only on a single ABI.

The run retry command is for android 9.

Under the above main command, you can add some optional parameters, as described below:

-- plan planname runs planname's test plan.

-m modulename runs all the test cases in the modulename module.

-- retry sessoinid reruns the failed use case in the previous task, and this sessionid executes the number shown in the first column of l r.

-s serialid specifies the id operation of the device.

List command

The list command has the same meaning as the word, which shows the desired result, which can be abbreviated to l.

L m displays all the test modules.

L r displays all test results.

Session Pass Fail Modules Complete Result Directory Test Plan Device serial (s) Build ID Product

01 12 1 of 1 2018.11.07_14.50.21 cts R1J57La1367b40 OPM1.171019.025 xxxxx

L / d shows all connected devices, both offline and online.

L I shows which command is currently running, and there is a command to see what is currently waiting to be executed, which is l / c.

Add command

This is used a little more, creating a subplan based on the results of the tasks in the previous l r. For example, create a test suite for the use case that performs Failed in Task 1.

The command is add subplan-n session1Failed-- session 0-- result-type failed.

Saved to the android-cts\ subplans directory after creation, so the created subplan is permanent, and you can also view all the subplans with l / s, which is very convenient and will continue to be executed next time.

You can also manually modify and customize the subplan, refer to this document.

Remove command

Remove allCommands removes all commands that are waiting for execution, and commands waiting for execution can use l / c above.

Other commands such as dump and set are rarely used, so please find them yourself if you need them.

Forget how to use the command, you can directly use help xx to display details, for the use of Linux above, in the console, press del can not be deleted, press ctrl+del can be deleted.

The above is the analysis of the most complete command line explanation and use of Android CTS V2 shared by Xiaobian. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report