初识Q-Patterns

上一篇 / 下一篇  2009-01-29 16:39:30 / 个人分类:测试用例


这是一个非常新的测试需求分析和测试用例设计技术,特别适用于测试需求不明确、文档不全的情况,而且把测试用例的重用性发挥到了极致,如果设计得当,基本可以做到design once, apply all的地步。不仅仅可以适应于跨项目,跨产品,甚至跨行业,跨公司都可以重用测试用例。
Q-Pattern中的Q是Question的意思,这是一个由一系列的问题组成的一个问题集的设计方法,针对不同颗粒的需求,小到一个下拉框,大到C/S级别的应用,都可以由一个包含许多问题集组成,针对不同的被测对象,回答这些问题就可以生成一系列的完成对产品覆盖的测试用例集。

<q-patterns的纪录格式>

我也一直对上一篇里所Q-patterns所带给我们的benifit充满了期待。

下面让我我尝试把它的例子简单的做一个剖析。

之前可以来简单的介绍一下推荐用来记录Q-Patterns的格式:

<! This is a template for writing Q-Patterns. All statements withing <> are for information only and should be removed when the template us used for writing Q-Patterns.>

Name of the pattern <A short name for the Q-Pattern>

名称,这是所有的都需要的,有了名称我们才可以通过名称快速的找到自己想要得q-patterns

Classification <What type of Q-Pattern is this>

分类,很所时候,数据之所以对我们有意义,就是因为有了分类统计这种东西,分类也是我们对问题分析的一个最基本的技能

Metadata
        Author <Name of the author>
       
        Author Contact information <contact information>

        Pattern Version <xx.yy/xx.yy(draft)>
       
        Template Version <Version of the template. 00.01(draft)>
       
        Keywords <>

这些元数据用来描述q-pattern的比如作者,版本,关键字等信息,里面的内容不是必须,属于配置管理的信息

Intent/Explanation/definition <Short descrīption of this Q-Pattern>

目的,这个q-patterns要解决的问题,一些说明,好像test case的测试目的或者目标

Questions
        Administration
        Usage
        User Interface
        Internationalization
        Localization
        Security
        Performance
        Response Time (Launch, Fetch, insert/delete/update, Display)
        Concurrency
        Max and Min parameters (Datasize etc.)
        Memory requirement
        Disk Space requirements
?

这是q-patterns的核心了,在这里记录所有的questions,这里的questions是分成了很多个category分别摆放的,这些分类可以根据自己的需要而自行调整,找到适合自己的分类

Examples

示例,q-patterns的例子

Associated patterns <Name(s) of Q-patterns that are related to this pattern>

相关的patterns,可以在这里把相关的其他patterns罗列出来,但是并没有深入的探讨可以建立什么样的关联

Specialization <List of Q-Patterns that are specilization of this Q-Pattern>

继承自己的特殊的子patterns,q-patterns可以继承和具体化,反之可以抽象成为通用的patterns,这样可以实现重用的目的,而抽象化也有助于经验的传播

specialization of <The parent Q-Pattern that this Q-Pattern is a specilization of>

父类q-pattern,不知道q-patterns里是不是支持多继承?呵呵,能继承已经是很好的一个idea了


 


TAG: 测试用例

 

评分:0

我来说两句

日历

« 2024-04-25  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 10682
  • 日志数: 19
  • 建立时间: 2008-12-20
  • 更新时间: 2009-01-29

RSS订阅

Open Toolbar