惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google Online Security Blog
Google Online Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
Cisco Talos Blog
Cisco Talos Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Scott Helme
Scott Helme
Project Zero
Project Zero
E
Exploit-DB.com RSS Feed
S
Secure Thoughts
K
Kaspersky official blog
L
Lohrmann on Cybersecurity
NISL@THU
NISL@THU
WordPress大学
WordPress大学
N
News and Events Feed by Topic
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LINUX DO - 热门话题
小众软件
小众软件
P
Privacy & Cybersecurity Law Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
Hacker News: Ask HN
Hacker News: Ask HN
AWS News Blog
AWS News Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hacker News: Front Page
F
Full Disclosure
Latest news
Latest news
Schneier on Security
Schneier on Security
The Hacker News
The Hacker News
T
Troy Hunt's Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Jina AI
Jina AI
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
TaoSecurity Blog
TaoSecurity Blog
G
GRAHAM CLULEY
Forbes - Security
Forbes - Security
V
V2EX - 技术
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Vulnerabilities – Threatpost
C
Cyber Attacks, Cyber Crime and Cyber Security
MongoDB | Blog
MongoDB | Blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
P
Privacy International News Feed
C
Check Point Blog
N
News and Events Feed by Topic

博客园 - Frankg

升级女朋友7.0到妻子1.0 每日构造与冒烟测试(转载,里面有微软每日构建的影子) 唐式减压法 打羽毛球记 查看数据库中的触发器 西安火锅大全 第一次测试管理小结 《怒放的生命》 低调做人,高调做事。 和尚的故事 注意保护眼睛! 强大的数据库比较工具:SQL Delta 推荐个不错的桌球俱乐部 何经华:我在职场30年 - Frankg Special Test Web 测试方法 怎样专业描述软件缺陷 测试缺陷分析务实篇 缺陷分类与管理之:需求缺陷 VS 程序缺陷
From Requirements To Test Cases
Frankg · 2008-04-03 · via 博客园 - Frankg

From Requirements To Test Cases

This document is trying to give some guideline about how to do the requirement analysis, test plan and test case writing. The actual tasks and results should not be restricted by the guidelines documented here. As QA is more a creative activity, QA engineers should be creative to think about test cases and try everyway to break the system, at the same time stay focused so that a quality task can be done in a limited time.

An Example

Ideally any requirement can be divided into number of scenarios (user operations) and each scenario into number of test cases.

If you are testing a login screen, the requirement can be something like "Login screen should have username/password text fields and login/cancel buttons".
We can have scenarios from this requirement like,

1. Ensure that user with a valid username/password should be able to login.
2. If password/username is wrong user should not be able to login, an error page will be sent back.
3. If a valid user tries with invalid password 3 times he should be get locked for 24 hours.

For each scenario mentioned above we can have number of test cases depends the constraints. Test cases of first scenario will be like.
Assume there is a constraint for username length minimum-4 and password-6 characters.


1.a Try to login with valid username with length-4 and password with length-4.
1.b username with length 5 and password-4
1.c If there is an upper length limit can have test cases for that also....

What is a scenario?

A scenario (test requirement/testing points/functional points) is defined as a situation for a certain system behavior to happen. For any requirement, we need to really understand the requirement and classify the system behavior into multiple categories. As in the example above, three different scenarios are listed.

Scenario will help us think about the testing purpose for the particular feature.

From Requirements to scenarios

Here are some default scenarios to find out the scenarios based on the requirements.

  • UI page
    • Any submit action that results in different pages as normal flow
    • Anything that results in abnormal flow
    • Input validation
    • Accuracy of the results
    • Spelling check
    • Graphic issues (color, shape, alignment)
  • API argument change/New API
    • Normal behavior with correct arguments
    • Abnormal flow with wrong arguments
    • Out of range arguments
    • Missing arguments
    • Null arguments
    • Empty string, zero, negative cases
    • Performance testing
    • Related portal testing
    • Regression testing on API and Portal
  • File processing
    • Normal behavior for file processing
    • Wrong file format testing
    • Testing the notification mechanism when file format is wrong and not coming
    • Test the impact for big size file.
    • Test on wrong file name or format
    • Test on zero size file
    • Test on wrong file creation time
  • Scheduler
    • Change the time waiting period
    • Change the time activation time
    • Change the property file format and value
    • Verify scheduler internal is longer enough
  • Message and keyword change
    • Message format and spelling
    • Normal behavior flow
    • Abnormal behavior flow
    • Default message
    • Test when keyword is empty string
    • Test different messages at multiple tries
    • Test number of messages sent
  • Backend API initialized features such as download retry
    • Normal behaviors
    • Abnormal behaviors
    • Related MO testing
    • Related portal testing
    • Regression testing

From scenarios to test cases

A test case is the exact steps to verify a system behavior based on different constraints of inputs.  

Test case will help us think about the exact steps to execute the test.

For each scenario, different user input, constraints, variables need to be identified. When such constraints, variables changes, the test case will need to be changed as well. Therefore a new test case will be produced. Overall, the number of test cases depends on the number of different combination for the constraints in the environment.