TC 计划

上一篇 / 下一篇  2008-01-31 22:20:01 / 个人分类:Test complete

TestComplete的计划运行


        可以在批处理文件中使用TC的这些退出代码,例如:
REM Clears the screen
CLS
@ECHO OFF
REM Launches TestComplete,
REM executes the specified project
REM and closes TestComplete when the run is over
START \W C:\TestCompleteFolder\Bin\TestComplete.exe /r /e C:\TestCompleteFolder\Projects\MyProj\MyProj.mds
IF ERRORLEVEL 3 GOTO CannotRun
IF ERRORLEVEL 2 GOTO Errors
IF ERRORLEVEL 1 GOTO Warnings
IF ERRORLEVEL 0 GOTO Success
 
CannotRun
ECHO The scrīpt cannot be run
GOTO End
 
:Errors
ECHO There are errors
GOTO End
 
:Warnings
ECHO There are warnings
GOTO End
 
:Success
ECHO No errors
GOTO End
 
:End
 
命令行参数
        TC的命令行参数如下所示:
        TestComplete.exe [file_name [/run [(/project:project_name) | (/project:project_name /projectitem:item_name) |          (/project:project_name /unit:unit_name /routine:routine_name)] [/exit]][/SilentMode][/ns]
        可以指定运行整个TC项目,也可以指定执行某个单元的某个脚本程序,运行模式可以是安静模式,还可以指定启动TC时是否显示Splash界面。
 


TAG:

 

评分:0

我来说两句

Open Toolbar