轻量级软件测试自动化
外观
轻量级软件测试自动化(英语:Lightweight software test automation)是设计相对简单及短的计算机程序(称为轻量级测试工具)来测试软件系统的过程。轻量级测试工具不限定某种编程语言,不过最常用Java、Perl、Visual Basic .NET及C#实现。轻量级测试工具的原代码一般不超过四页、撰写时间不超过四小时。轻量级测试自动化常和敏捷软件开发一起使用。
除了轻量级软件测试自动化外,另外三种软件测试自动化的方式是商业测试自动化框架软件、开源测试自动化框架以及重量级测试自动化。轻量级测试自动化的主要缺点是可管理性较弱,因为轻量级测试自动化相对较简单,也容易实现,相较起来,制作不同的测试工具、测试用例文件、测试结果文件……会花掉相当多的时间。不过轻量级测试自动化也有一些明显的好处:相较于商用框架,轻量级测试自动化初期成本较便宜,可变性也较高。相较于开源框架,轻量级测试自动化因为其更新较少,也没有外在的相依性,因此比较稳定。相较于重量级框架,轻量级测试自动化框架要实现及修改都比较简单。轻量级软件测试自动化一般会用来补足上述的测试自动化方式,而不是取代上述的作法。
在回归测试时,轻量级测试自动化非常有用,其测试目的只是验证新加入待测系统的代码不会造成新的软件问题。轻量级测试自动化也可以用在其他软件测试的领域,例如性能测试、压力测试(Stress testing)[1]、负载测试、安全性测试、代码覆盖率分析、软件突变测试[2]等。詹姆斯·麦卡弗里广泛的提出意见,倡导轻量级软件测试自动化。
参考资料
[编辑]- ^ A demonstration of lightweight software test automation applied to stress testing: "Stress Testing", MSDN Magazine, May 2006 (Vol. 21, No. 6).. [2015-08-29]. (原始内容存档于2008-04-20).
- ^ A technique for mutation testing using lightweight software test automation: "Mutant Power: Create a Simple Mutation Testing System with the .NET Framework", MSDN Magazine, April 2006 (Vol. 21, No. 5).
- Definition and characteristics of lightweight software test automation in: McCaffrey, James D., ".NET Test Automation Recipes", Apress Publishing, 2006. ISBN 1-59059-663-3.
- Discussion of lightweight test automation versus manual testing in: Patton, Ron, "Software Testing, 2nd ed.", Sams Publishing, 2006. ISBN 0-672-32798-8.
- An example of lightweight software test automation for .NET applications: "Lightweight UI Test Automation with .NET", MSDN Magazine, January 2005 (Vol. 20, No. 1). (页面存档备份,存于互联网档案馆)
- A discussion of lightweight software test automation for performance testing: "Web App Diagnostics: Lightweight Automated Performance Analysis", asp.netPRO Magazine, August 2005 (Vol. 4, No. 8).
- An example of lightweight software test automation for Web applications: "Lightweight UI Test Automation for ASP.NET Web Applications", MSDN Magazine, April 2005 (Vol. 20, No. 4) (页面存档备份,存于互联网档案馆)
- An investigation of lightweight software test automation in a scripting environment: "Lightweight Testing with Windows PowerShell", MSDN Magazine, May 2007 (Vol. 22, No. 5). (页面存档备份,存于互联网档案馆)