何時要使用測試自動化?

When to use automated tests
http://ubertest.hogfish.net/?p=75

March 31st, 2009
Published in Scary Tester

測試自動化是非常有用和令人印象深刻的工具, 可以幫助測試更有效率. 但是, 測試自動化並不是適用所有的專案, 可能是因缺乏時間, 或是因為技術上的限制.

測試自動化需要花時間去打造, 根據測試人員能力的不同, 它可能需要花人工執行測試的3~10倍時間, 去打造自動化測試. 因此, 如果此測試會被執行3~10次以上, 才值得考慮要去做測試自動化.

測試自動化適合以下狀況
- Regression testing for a stable system that will be run on a regular basis
- Fast data creation in test systems where the database must be wiped on a regular basis

測試自動化並不適合以下狀況
- Testing new functionality – this should be done manually before automated tests are created
- Regression testing systems that are expected to have significant user interface changes. 
Large changes to the user interface require a lot of maintenance for automated tests.

何時自動化你的測試, 有時候你可以很聰明的只自動化很容易維護的部份, 如果有些測試變成很難去維護, 可以考慮去捨去這些部份

請記得, 在一直執行相同的步驟下, 自動化測試並不會找到很多bug. 因為人們的去注意很多事情, 可是自動化的程式只會檢查程式邏輯中有處理的部份.

如果需要更多的資訊, 請參考以下書籍:
- Lessons Learned in Software Testing by Cem Kaner, James Bach and Bret Pettichord
- Just Enough Software Test Automation by Daniel J. Mosley and Bruce A. Posey


arrow
arrow
    全站熱搜

    kojenchieh 發表在 痞客邦 留言(0) 人氣()