Even though we all agreed on this in principle, we had examples of disorganized or poorly thought out test matrices, etc. If you do a poor job of design, no one will be able to understand or maintain what you’ve done.
雖然我們原則上都同意以上觀點,但是我們還是能舉出組織不好或思考不周的測試矩陣。如果你的設計工作做的不好,那么沒有人會理解并維護你做的東西。
21. There can be multiple interfaces to enter data into a data file that drives data-driven testing. You might pick one, or you might provide different interfaces for testers with different needs and skill sets. (Consensus)
有多個接口可以把數據輸入到數據文件中,以驅動數據驅動測試。你可以選擇一個,或者為不同需要和技術的測試者提供不同的接口。(一致同意)
Framework-driven approach
框架驅動方法
For a while, the framework discussion turned into an extended discussion of the design of a procedural language, and of good implementation practices when using a procedural language. We grew tired of this, felt that other people had tackled this class of problem before, and we edited out most of this discussion from our agreements list. I’ve skipped most of the remaining points along these lines. Here are a few framework-specific suggestionss:
在一段時間里,對框架的討論變成了討論設計過程語言以及良好實現過程語言的延伸。我們對此變得厭倦了,覺得已經有人在以前解決了這類問題,并且我們已經從我們的協議列表中刪去了這個議題。我省略了沿著這條思路下去的多數要點。以下是一些針對框架的建議:
22. The degree to which you can develop a framework depends on the size / sophistication of your staff. (Consensus).
是否開發框架取決于你的員工的數量和熟練程度。(一致同意)
23. When you are creating a framework, be conscious of what level you are creating functions at. For example, you could think in terms of operating at one of three levels:
當創建一個框架時,要注意你在哪個級別上創建函數。例如,你可以考慮下面三種級別之一:
menu/command level, executing simple commands; 菜單/命令級,執行簡單命令
object level, performing actions on specific things; 對象級,對具體事物實行操作
task level, taking care of specific, commonly-repeated tasks. 任務級,負責具體的經常反復執行的任務
You might find it productive to work primarily at one level, adding test cases for other levels only when you clearly need them.
你會發現主要在一個級別上工作是高效的。所以,只有當你明確了需要在其它級別上添加測試用例后,才可以這么做。
There are plenty of other ways to define and split levels. Analyze the task in whatever way is appropriate. The issue here is that you want to avoid randomly shifting from creating very simple tests to remarkably long, complex ones. (Consensus)
文章來源于領測軟件測試網 http://www.kjueaiud.com/