輕量級軟件測試自動化

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書

輕量級軟件測試自動化(英語:Lightweight software test automation)是設計相對簡單及短的電腦程式(稱為輕量級測試工具)來測試軟件系統的過程。輕量級測試工具不限定某種程式語言,不過最常用JavaPerlVisual Basic .NETC#實現。輕量級測試工具的原代碼一般不超過四頁、撰寫時間不超過四小時。輕量級測試自動化常和敏捷軟件開發一起使用。

除了輕量級軟件測試自動化外,另外三種軟件測試自動化的方式是商業測試自動化框架軟件、開源測試自動化框架以及重量級測試自動化。輕量級測試自動化的主要缺點是可管理性較弱,因為輕量級測試自動化相對較簡單,也容易實現,相較起來,製作不同的測試工具、測試用例檔案、測試結果檔案……會花掉相當多的時間。不過輕量級測試自動化也有一些明顯的好處:相較於商用框架,輕量級測試自動化初期成本較便宜,可變性也較高。相較於開源框架,輕量級測試自動化因為其更新較少,也沒有外在的相依性,因此比較穩定。相較於重量級框架,輕量級測試自動化框架要實現及修改都比較簡單。輕量級軟件測試自動化一般會用來補足上述的測試自動化方式,而不是取代上述的作法。

回歸測試時,輕量級測試自動化非常有用,其測試目的只是驗證新加入待測系統的程式碼不會造成新的軟件問題。輕量級測試自動化也可以用在其他軟件測試的領域,例如效能測試英語Software performance testing壓力測試(Stress testing)[1]負載測試英語load testing安全性測試代碼覆蓋率分析、軟件突變測試英語mutation testing[2]等。詹姆斯·麥卡弗里廣泛的提出意見,倡導輕量級軟件測試自動化。

參考資料

  • 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.
  • 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).

相關條目