軟體測試

Test.pptx

軟體測試

2021/10/23 (增加連結)
2022/01/05 (增加連結)

軟體測試

軟體測試是個很重要也很複雜的工作 (詳參:Software testing),有不同種類的測試,目前大部分的測試已經發展出自動化工具,也使得測試工作越來越容易了。

  • Test smart: How to select testing techniques for agile team

    • Guide development vs. Critique the product

      • Guide development

        • These are the tests that are performed before coding happens or concurrently as coding proceeds

      • Critique the product

        • Those that critique (evaluate) the product after coding is complete

    • Business facing vs. Technology facing

      • Business facing

        • tests that are readable by business stakeholders and could be performed by testers, product owners, designers

      • Technology facing

        • tests that are written by or with the help of technical team members

  • Software QA in Scrum

測試的類型

廖家盛 (2015)整理了常見的測試類型:

  • 單元測試:單一程式的測試

  • 功能測試:模組或功能階層的測試

  • 整合測試:系統整體的測試,有些公司會有不同層級的整合測試,將最後的測試稱為系統測試

  • 探索性測試:除了已規劃的測試案例之外,進行未規劃的測試

  • 壓力測試:了解系統所能承受的壓力,以及在壓力下的表現

  • 容錯測試:了解系統面對未預期錯誤的容錯程度

  • 使用者介面測試:使用者透過系統介面進行測試

  • 安全性測試:進行資訊安全的相關測試

  • 回歸測試:新增或更動功能時,測試過去已經測試且未被更動的功能

測試方式與工具

廖家盛 (2015)整理五個個案公司進行的測試及方式,發現大部分的公司還是以人工測試為主,也整理了一些個案公司所使用的測試工具:

功能性測試

非功能性測試

常用的測試工具

Debug

測試計畫

測試計畫大概的內容

  • 測試目的

  • 測試範圍

  • 測試完成標準

  • 測試時程

  • 資源需求

    • 人力需求

    • 設備需求

      • 硬體環境

    • 軟體環境

  • 測試案例

  • 不列入本次系統測試部分

  • 測試完成須交付之文件

  • 參考文件

要如何進行功能性測試

  • 撰寫測試個案

    • 測試個案名稱、測試步驟、預期結果

  • 測試結果

    • 通過、不通過(發現之問題)

要如何進行非功能性測試

  • 壓力測試

    • 壓力測試之目標 (上線人數、反應時間)

    • 壓力測試之環境

  • 安全測試

參考資料