最近由于项目上cts/gts问题太多,于是在帮同事分担部分问题fail项的解决、android5.1和android5.0
下面是简单总结了下相关的一些命令,当然还有很多,这个就需要平时多多留意并学习积累了。
CTS-tradefed host version 5.1_r2 CTS-tradefed is the test harness for running the Android Compatibility Suite, built on top of the tradefed framework. Available commands and options Host: help: show this message help all: show the complete tradefed help exit: gracefully exit the cts console, waiting till all invocations are complete Run: run cts --plan test_plan_name: run a test plan run cts --package/-p : run a CTS test package run cts --class/-c [--method/-m] : run a specific test class and/ormethod run cts --continue-session session_ID: run all not executed tests from a previous CTS session run cts [options] --serial/-s device_ID: run CTS on specified device run cts [options] --shards number_of_shards: shard a CTS run into given number of independent chunks, to run on multiple devices inparallel run cts --help/--help-all: get more help on running CTS List: l/list d/devices: list connected devices and their state l/list packages: list CTS test packages l/list p/plans: list CTS test plans l/list i/invocations: list invocations aka CTS test runs currentlyin progress l/list c/commands: list commands: aka CTS test run commands currently in the queue waiting to be allocated devices l/list r/results: list CTS results currently present in the repository Add: add derivedplan --plan plane_name --session/-s session_id -r [pass/fail/notExecuted/timeout]: derive a plan from the given session Dump: d/dump l/logs: dump the tradefed logs for all running invocations Options: --disable-reboot : Do not reboot device after running some amount of tests.
XTS-tradefed host version 2.1_r2 Available commands and options Host: help: show this message help all: show the complete tradefed help exit: gracefully exit the xts console, waiting till all invocations are complete Run: run xts --plan test_plan_name: run a test plan run xts --package/-p : run a XTS test package run xts --class/-c [--method/-m] : run a specific test class and/ormethod run xts --continue-session session_ID: run all not executed tests from a previous XTS session run xts [options] --serial/s device_ID: run XTS on specified device run xts [options] --shards number_of_shards: shard a XTS run into given number of independent chunks, to run on multiple devices inparallel run xts --help/--help-all: get more help on running XTS List: l/list d/devices: list connected devices and their state l/list packages: list XTS test packages l/list p/plans: list XTS test plans l/list i/invocations: list invocations aka XTS test runs currentlyin progress l/list c/commands: list commands: aka XTS test run commands currently in the queue waiting to be allocated devices l/list r/results: list XTS results currently present in the repository Add: add derivedplan --plan plane_name --session/-s session_id -r [pass/fail/notExecuted/timeout]: derive a plan from the given session Dump: d/dump l/logs: dump the tradefed logs for all running invocations
CTS常用命令:
|