ToReboot工具
ToReboot工具为专门为BizAT开发的用于替代关机与重新启动等行为的小程序。
该程序在最终执行关机之前,要确保系统中的SUTAgent已退出,这样就能保障SUTAgent收集到的测试数据不会丢失。
该工具位于: c:\BizAT\tools\toreboot\toreboot.exe
命令行参数
toReboot [-t timeout] [-p program_name] [-c command_to_run] [-l] [-r] [-s message]
the parameters: all of them are optional.
代码 | 描述 |
---|---|
/t: the timeout in seconds. like -t 10, means the command will be executed in 10 seconds. the default value is 30. | 设置关机前等待的时间,按秒计算,缺省值为30秒 |
/p: the program to wait, the name could be found by rocess.GetProcessesByName(). | 设置要检查的内存中不能存在的进程,如果系统中有这个进程在,则一直等着它消失,缺省要检查的是SUTAgent |
/c: the command to run, could be put its own parameters with quotes. like "startup -r -e". | 等待一定时间后,要执行的命令。缺省的是“shutdown [parameters]” |
/r: reboot to winRE. | 执行的命令为进入WinRE |
/s: show the message at first and wait for the tester to push "ok" to continue. | 在执行命令前,会有个倒计时窗口,这个窗口上要显示的信息可以用这个参数指定,如果不指定,则显示缺省的内容 |
/l: to Logoff | 执行的命令为logoff,即“注销” |
/d:shutdown | 执行的命令为shutdown,即“关机” |
<< BizRunner调用说明 | BizSpy 控件识别工具 >> |