以下是一個如何設計文檔化、高效、有用測試用例的檢查表(checklist)
· Accurate: tests what the descrīption says it will test. 正確性:確保測試標題描述部分的內容正確性。 Economical: has only the steps needed for its purpose. 經濟性:只為確定需要的目的設計相應的測試步驟。 Repeatable, self standing: same results no matter who tests it. 可重復性:自我一致性,即不管誰執行此用例,結果一樣。 Appropriate: for both immediate and future testers.51Testing軟件測試網 · 適應性:既能適應短期需要,又能考慮長遠需要。 · Traceable: to a requirement. · 可追蹤性:用例能追蹤到一個具體的需求。 · Self cleaning: returns the test environment to clean state.· 自我清理性:單個用例不會影響整個測試環境,即用例執行完了可以恢復原有的測
試環境。
Structure and testability 結構化和可測試性Has a name and number
· 含有規范的測試標題和編號。
· Has a stated purpose that includes what requirement is being tested 含有一個確定的測試某一個特定需求的目的。Has a descrīption of the method of testing
· 含有關于測試方法的描述。
Specifies setup information - environment, data, prerequisite tests, security access 指定條件信息-環境、數據、預置的條件測試、安全入口等。
延伸閱讀
文章來源于領測軟件測試網 http://www.k11sc111.com/