51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2631|回复: 0
打印 上一主题 下一主题

[转贴] Test Cases as knowledge base

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-8-22 22:50:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
原始链接:
http://www.testingreflections.com/node/view/4047

This month I’m battling (and want to sweet out my feelings) in my company with main stakeholders regarding the role of test cases and run-logs. They do believe:
1)Test Case content has the only reason to extend specifications with details in form of input data and expected results for each particular input. Approved by customers they define more exact development scope.
2)Test Case execution having main purpose to collect pass/fail statistics to be used as quality evaluation or shop/no-ship decision.

I’ve just red STP august 2006 column “Bringing logic into play“. The several pages long story pretend to be about deductive reasoning. Yuri Cherkan talks about direct issues of this approach. No offence to Yuri and his article, but I’m afraid he demonstrated inattentional blindness – ignoring the actual problem. I wonder how this issue is alive for years (and accepted as common wisdom) despite the fact that people like Cam Kaner are trying to fight them for decades. I could suggest to learn basics: Black Box Software Testing: By Cem Kaner & James Bach about Oracle problem, heuristic (instead of final and strict) reasoning, bug advocacy, the phenomenon of inattentional blindness and other problems of relying on test scripts.

Test Case content audience
I’ll address test case execution issue in next blog entry. I will not try to offend “commonly accepted wisdom” about test case content, which I started already in Why do we write Test Cases?.

In the first of two described cases we suppose customers or stakeholders to be the main audience. We demonstrate them what the best things we have done to make sure quality is there in the product.
In the second case our main audience is engineering. We demonstrate developers why do we believe the ticket reported is a bug.

I practice wiring test cases where the main audience is testers. I know this may be weird as most of testers, when there are no request from others to write tests cases, don’t bother themselves with writing. However there are at least two good reasons to do so:
a) Pre-planned exploratory testing. Before go frenzy into exploring the software product functionality try to understand the scope of testing by analyzing whatever documents you have and talking whoever willing to share any bit of information. Note what should be tested, what are the risks, etc. Maybe test case is too sound name for those notes as they may not include validation steps, but be simply notes like “try what happens when this...” or “pay more attention to that ...”. And still those are items that you could mark passed, failed, blocked or not tested – once your tests are done. You could make one more testing session to complete those not tested. You could plan more tests to test failed and blocked. And so on.
b) Regression testing is another case. The most misused case. Do you use for regression testing purpose subset of test cases created to do initial testing? Or do you develop specific regression test cases? In the second case you need to dynamically change them based on current project context, as regression risks tend to change. Why don’t you simply make test cases notes for one who will be doing regression tests. Test cases may be too sound again. Notes may not include validation steps or even execution steps. There could be notes like: “try to input from both keyboard and mouse”, “try all 4 cases: skip data entry, leave default, change values and input empty”, “check data in database”, “back button should not reset values already entered”. Those notes have a goal to help you to do regression as fast as possible. It may include data to be imported (saving your time to input it manually). Again you could pass, fail, block or do not test each of them.

You can’t however in both cases use them as reasoning for defect advocating and you can’t really use them as test evidence. You should rely on testers skills. It is up to tester how to interpret things like “check data in database”.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-27 04:08 , Processed in 0.068147 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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