51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2837|回复: 2
打印 上一主题 下一主题

[转贴] Automation and Requirements

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-9-23 12:39:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
原始链接请见:
http://www.logigear.com/newslett ... nd_requirements.asp

Introduction

In many of the test automation projects that we are involved with using our Action Based Testing methodology, management has expressed a need to relate tests and test results to system requirements. The underlying thought is that automation will create extra possibilities to control the level of compliance to requirements of the system under test. In this article I will explore some of the aspects and considerations regarding tests and requirements.

System and Test Requirements with Action Based Testing

Action Based Testing encourages testers to create “test requirements”, as part of the test modules (spreadsheets with the tests to be carried out). The test requirements govern the scope of test cases that are in the test module, in other words they detail the intention the tester has with the cases described.

For example, a system requirement is typically formulated like “the system should …”. A test requirement typically reads as “test if …”. As a short hand we often leave the “test if“ out, so a test requirement could read “the system does not accept password shorter than 6 characters”, to be understood as “test if the system does not accept password shorter than 6 characters”.

Now the next question is: how do the test requirements relate to system requirements? In many cases the link is very direct. As illustrated in the example above on minimum password length, the test requirement will relate one-on-one to a system requirement. In other cases a system requirement is a composite statement, which would lead to several test requirements.

For example “the system should enforce that passwords are at least 6 characters in length and contain at least 1 digit”, would lead to (1) “the system does not accept passwords shorter than 6 characters” and (2) “the system requires a password to have at least 1 digit”.

Good Test Design: Going Beyond System Requirements

Another possibility is that a test requirement specifies that a test to be created that does not directly relate to any system requirement. For example a valid test requirement could state “test with 5 users from different states who are using the same mailbox”. This means the test should create a test case in which the described situation is simulated, but there is very likely no system requirement talking about 5 users.

Test requirements that are unrelated to system requirements illustrate an important consideration regarding system requirements and tests: a test designer should use system requirements as input and make sure all of them are covered in test cases, but a good test designer should go beyond that narrow mission. System requirements mostly focus on single elements of a system under test. A tester should make sure that the elements of the system work well together, and that the system can handle complex situations that the developer might not necessarily have thought about, because they were not specifically addressed in system requirements.

One potential benefit of automation is to provide information related to system requirements. However, this needs to be carefully organized to be effective. Consider the following picture in which some relationships have been illustrated.

The solid arrows show how system requirements are, directly or indirectly, related to test requirements, which in turn are related to test cases, which in turn are related to test results. A test tool like TestArchitect will give you the possibility to establish relations 1-3 in the above picture as follows:

   1. In the details panel for a test requirement it is possible to register a “source”, this field can contain the identifier of the system requirement to which the test requirement relates.
   2. The same detail panel also shows the test cases in the test modules (after they have been created and the module has been checked in at least once), and checkmarks to indicate which one(s) cover the test requirement.
   3. The relation from the test results to the test case will be shown in the test results. Once the test result is checked in the test case details panel will show the latest result.

To easily obtain the consolidated relation (4) make sure the “source” fields of the test requirements are consistently populated, the test requirements are related to test cases and test run results (of successful runs) are checked in. This will make it easy to use the report generator in TestArchitect to show the test results per system requirement: define a report that shows test requirements, and as grouping field specify the “source” field.

Conclusion

This article has outlined that good test design has three major components:

    * Creating test cases that directly relate to system requirements
    * Creating test cases that indirectly relate to system requirements
    * Creating test cases that do not directly relate to system requirements

The third item is often overlooked and can be very critical in a successful teat automation effort.

More Information

    * More information about Action Based Testing may be found here.
    * More information on TestArchitect may be found here.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2006-9-23 16:31:05 | 只看该作者
thank you
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2007-2-28 14:35:10 | 只看该作者
顶!
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-22 21:02 , Processed in 0.070777 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表