|
不知道大家怎么用,我这样来用bat脚本的
@cls
set WORKSPACE=D:\RFT\workspace
set rational_ft.install.dir=%WORKSPACE%/rational_test_ft
set CLASSPATH=./RFT_LIB/rational_ft.jar;./RFT_LIB/rational_ft_core.jar;./RFT_LIB/datapool_api.jar;./RFT_LIB/classes12.jar
set DATASTORE=%WORKSPACE%\Project
set LOGFOLDER=./log
set SCRIPTNAME=com.test.Demo
set LOGFILE="test\%date:~4,14%_%time:~0,2%%time:~3,2%%time:~6,2%"
java -Drational_ft.install.dir=%rational_ft.install.dir% -cp %CLASSPATH% com.rational.test.ft.rational_ft -datastore %DATASTORE% -logfolder "%LOGFOLDER%" -log %LOGFILE% -playback %SCRIPTNAME%
pause>nul|echo 按任意键关闭窗口......
日志加了时间,避免冲掉以前的记录 |
|