资源描述
QC 缺陷链接关系
潘勤异
2011-9-20
QC的缺陷链接涉及比较多,摘录QC的联机帮助如下:
About Linking Defects
You can link a defect to the following entities: requirements, tests, test sets, test instances, runs, run steps, and other defects. Defect linkage is useful, for example, when a new test is created specifically for a defect. By creating this linkage, you can determine if the test should be run based on the status of the defect.
A defect can be linked directly or indirectly to an entity. When you add a defect link to an entity, Quality Center adds a direct link to this entity and indirect links to other related entities. In addition, during a manual test run, if you add a defect, Quality Center automatically creates a linkage between the test run and the new defect.
The following diagram illustrates the flow of indirect linkage:
For example, when you link a defect to a run step, Quality Center adds an indirect link to its run, test instance, test set, and test. If the same test is covered by a requirement, an indirect link is also added to the requirement. Note that the indirect linkage is a one-directional flow. For example, if you link a defect to a run it is not indirectly linked to its run steps.
项目中的使用
结合咱们的项目,如下图所示:测试实验室与缺陷的关联关系。
想把测试集合与缺陷进行直接链接,则点击测试集合名,然后在右侧点击‘链接的缺陷’,再点击‘链接现有的缺陷’,然后在弹出窗口中输入缺陷ID,则完成测试集合与缺陷的关联(直接链接)。
我觉得咱们既要关注测试集合的链接缺陷,也同时需要关注测试用例关联的缺陷,因此,上述方法不适合咱们使用。咱们添加链接关系的方式如下:
1. 在测试实验室的测试网格中双击失败的测试用例
2. 在弹出窗口中,点击‘链接和范围’
3. 选择已有的缺陷(也可以新建),以链接已有的缺陷为例,点击‘链接现有缺陷’
4. 在弹出的需要链接的缺陷窗口中选择你想要链接的缺陷(可以过虑搜索)
5. 选择好缺陷,点击‘链接按钮’。
这样,我们完成了对这个用例的一个缺陷(直接链接),同时该缺陷对测试集合也产生了一个关联关系(间接链接)。
For开放人员
对于开发人员:
如果想看本集合所有关联缺陷,则直接在测试集合上点击‘链接的缺陷’。
如果想看每个用例对应的缺陷,则在‘执行网格’双击需要看的测试用例,在弹出的‘测试实例属性’窗口中,点击‘链接和范围’,查看本用例关联的具体缺陷。
展开阅读全文