不考虑自动测试的维护代价,盲目进行自动化测试是有风险的。文中以画板程序升级为例,详细介绍了它的修改过程和相应测试程序的维护代价,利用COCOMOⅡ度量方法,对测试程序和被测试程序的维护代价做一个比较,说明测试程序和被测试程序一样,需要反复维护才能进行回归测试。通过实例和理论分析使测试者清醒认识自动测试的维护代价,合理利用自动化测试。
Cawing on the test automation blindly will have the risk, without considering the test automation maintenance cost. Taking the drawing board as the example, its revision process and the corresponding test program maintenance cost was introduced in detail. Comparing the test program maintenance cost with its test object maintenance by COCOMOⅡ measurement method, automation regression test must be maintained repeatedly like its test object before testing. Test automAtion maintenance cost will be known soberly and test automation will be used reasonably by example and the theoretical analysis.