CTS/GTS相关命令

本文主要总结了Android开发中与CTS(Compatibility Test Suite)和GTS(Google Test Suite)相关的命令,帮助开发者解决在Android 5.1和5.0上遇到的问题。内容包括常见命令的使用和积累学习的重要性。
摘要由CSDN通过智能技术生成

最近由于项目上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常用命令:
  1. run cts --plan CTS 全部测试所有plan
    run cts --plan -c class_name(类名) -m method_name(具体方法名)
    run cts --plan -p package_name( 包名) -m method_name(具体方法名)
    继续执行未测试项: run cts --continue-session session_id
    l d 显示连接的设备
    l packages 列出cts 包
    l r 列出results结果
    --disable-reboot 不重启设备
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值