轻量级软件测试自动化()是設計相對簡單及短的電腦程式(稱為轻量级測試工具)來測試軟體系統的過程。轻量级測試工具不限定某種程式語言,不過最常用Java、Perl、Visual Basic .NET及C#實現。轻量级測試工具的原代碼一般不超過四頁、撰寫時間不超過四小時。轻量级测试自动化常和敏捷软件开发一起使用。
除了轻量级软件测试自动化外,另外三種软件测试自动化的方式是商業测试自动化框架軟件、開源测试自动化框架以及重量級测试自动化。轻量级测试自动化的主要缺點是可管理性較弱,因為轻量级测试自动化相對較簡單,也容易實現,相較起來,製作不同的測試工具、測試用例檔案、測試結果檔案……會花掉相當多的時間。不過轻量级测试自动化也有一些明顯的好處:相較於商用框架,轻量级测试自动化初期成本較便宜,可變性也較高。相較於開源框架,轻量级测试自动化因為其更新較少,也沒有外在的相依性,因此比較穩定。相較於重量級框架,轻量级测试自动化框架要實現及修改都比較簡單。轻量级软件测试自动化一般會用來補足上述的测试自动化方式,而不是取代上述的作法。
在回归测试時,轻量级测试自动化非常有用,其測試目的只是驗證新加入待測系統的程式碼不會造成新的軟體問題。轻量级测试自动化也可以用在其他軟體測試的領域,例如、壓力測試(Stress testing)、、安全性測試、代碼覆蓋率分析、等。詹姆斯·麥卡弗里廣泛的提出意見,倡導轻量级软件测试自动化。
參考資料
*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.
*[http://msdn2.microsoft.com/en-us/magazine/cc163864.aspx 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).
*[http://msdn2.microsoft.com/en-us/magazine/cc163814.aspx 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)]
*[http://msdn2.microsoft.com/en-us/magazine/cc163430.aspx An investigation of lightweight software test automation in a scripting environment: "Lightweight Testing with Windows PowerShell", MSDN Magazine, May 2007 (Vol. 22, No. 5).]
相關條目
- 測試自動化
*
- iMacros
- 软件测试
评论 (0)