android cts 命令的说明(译)

来源:互联网 发布:iphone6突然没有4g网络 编辑:程序博客网 时间:2024/06/01 07:53

Host


help

showthis message

帮助文档

exit

exitcts command line

退出CTS



Plan


ls --plan

listavailable plans

列出所有Plan

ls --plan plan_name

listcontents of the plan with specified name

列出一个Plan的内容

参数:plan_namePlan的名称

add --plan plan_name

adda new plan with specified name

添加一个Plan

参数:plan_namePlan的名称

add --derivedplan plan_name-s/--sessionsession_id-r/--resultresult_type

derivea plan from the given session

创建一个新的的Plan,这个plan通过指定一个Test_Plan的结果序号和该结果中特定的结果类型。即取得指定结果中,某一类型的所有testcase来组成一个新的Plan

参数:plan_name,创建的新Plan名称

session_id,已有结果的一个ID

result_type,结果中,每个testcase

的结果类型取以下4

值之一:

pass/fail/notExecuted/timeout

注: 如果result_type为空,则默认为pass

如果session_id为空,则默认选取

最近的一次测试结果

rm --plan plan_name/all

removea plan or all plans from repository

删除一个Plan

参数:plan_namePlan的名称

参数为all时,删除所有的Plan

start --plan test_plan_name

runa test plan

运行一个Plan

参数:test_plan_namePlan的名称

start --plan test_plan_name-d/--devicedevice_ID

runa test plan using the specified device

在指定的设备上运行一个Plan

参数:test_plan_namePlan的名称

device_ID,设备ID

start --plan test_plan_name-t/--testtest_name

runa specific test

运行某个Plan中的一个Test

参数:test_plan_namePlan的名称

test_nameTest名称

start --plan test_plan_name-p/--packagejava_package_name

runa specific java package

运行某个Plan中的一个java包,该包由若干个Testcase组成

参数:test_plan_namePlan的名称

java_package_name包的名称

start --plan test_plan_name-t/--testtest_name-d/--devicedevice_ID

runa specific test using the specified device

在指定的设备上运行某个Plan中的一个Test

参数:test_plan_namePlan的名称

test_nameTest名称

device_ID,设备ID

start --plantest_plan_name-p/--packagejava_package_name-d/--devicedevice_ID

runa specific java package using the specified device

在指定的设备上某个Plan中的一个java包,该包由若干个Testcase组成

参数:test_plan_namePlan的名称

test_nameTest名称

device_ID,设备ID



Package


ls -p/--package

listavailable packages

列出所有的package

ls -p/--package package_name

listcontents of the package with specified name

列出一个package的内容

参数:package_name,包的名字

add -p/--package root

addpackages from root to repository

将包从 root目录移到repository目录

rm -p/--packagepackage_name/all

removea package or all packages from repository

删除一个package

参数package_name,包的名字

当参数为all时,删除所有的package



Result


ls -r/--result

listall result of sessions

列出所有的结果

ls -r/--result -s/--sessionsession_id

listdetail case result of a specified session

列出指定的结果

参数:session_id,结果的ID,通过ls–r

可以参阅结果的详细信息,包括ID

ls -r/--resultpass/fail/notExecuted/timeout]-s/--sessionsession_id

listdetail cases of a specified session by the specified result

列出一个结果所使用的全部Testcases,根据结果的详细信息。

参数:pass通过的test个数

fail未通过的test个数

notExecuted未执行的test个数

timeout超时的test个数

session_id结果的ID,通过ls–r

可以参阅结果的详细信息,包括ID



History


history/h

listall commands in command history

列出所有执行过的命令

history/h count

listthe latest count records in command history

列出history中可选择的子命令

history/h -e num

runthe command designated by 'num' in command history

通过指定执行过命令的集合中的序号执行一个命令。

参数:num,执行过的命令集合中的编号



Device


ls -d/--device

listavailable devices

列出所有连接的设备,并显示设备的详细信息:设备ID,设备name,设备status


原创粉丝点击