研究了一段时间的VectorCAST,从自动化程度上来说,这是一款不错的工具,因此很适用于持续集成中自动构建。
平台很简单:
SVN+JRE+CruiseControl+VectorCAST
--------------------------------------------------
--------------------------------------------------
----------------------------------
-------------- -----------CruiseControl----------
-------------- ----------------------------------
--VectorCAST-- ----------------------------------
-------------- ----------------------------------
--------------------- ------------ -------------
----Compiler--------- ---JAVA----- -----SVN-----
--------------------- ------------ -------------
我问题在于持续集成所要求的测试用例自动运行,需要用脚本控制,好在VectorCAST提供了自动生成脚本功能,所以集成很简单。
关键之处在于CC中configure对bat脚本的执行应该使用如下语句
<schedule interval"120">
<exec command="cmd.exe" workingdir=C:/work" args="/C vcast.bat" errorstr="failed" />
其中args中的/C一定不能少。为了这两个符号我调了两天。郁闷!