`

How to design Test Case

 
阅读更多
Test case definition

“A test case has components that describe an input, action or event and an expected response, to determine if a feature of an application is working correctly.” Definition by Glossary.

Simply put, a test case is a scenario made up of a sequence of steps and condition or variables, where test input are provided and the program is run using those input, to see how it performs. An expected result is outlined and the actual result is compared to it. Certain working conditions are also present in the test case, to see how the program handles the conditions.

Every requirement or objective that the program is expected to achieve, needs at least one test case. Realistically, it definitely takes more than one test case to determine the true functionality of the application being tested. The mechanism used to judge the result of the test case.

Test cases, at root level, are used to measure how a program handles errors or tricky situations such as if one input is incorrect or if both input are incorrect. They are also expected to expose hidden logical errors in the program’s code, which have gone undetected.

The functionality of the web sites

In testing the functionality of the web sites, the following should be tested:
Links
a. Internal Links
b. External Links
c. Mail Links
d. Broken Links

Forms
a. Field validation
b. Error message for wrong input
c. Optional and Mandatory fields

Database
Testing will be done on the database integrity.

Cookies
Test will be done on the client system side, on the temporary internet files.

Performance:
Performance testing can be applied to understand the web site’s scalability, or to benchmark the performance in the environment.
a. Connection Speed
b. Load
c. Stress

Usability:
Usability testing is the process by which the human-computer interaction characteristics of a system are measured, and weaknesses are identified for correction.
a. Ease of learning
b. Navigation
c. Subjective user satisfaction
d. General appearance

Server Side Interface:
In web testing the server side interface should be tested. This is done by verifying that communication is done properly. Compatibility of server with software, hardware, network and database should be tested.

Client Side Compatibility:
The client side compatibility is also tested in various platforms, using various browsers.

Security:
The primary reason for testing the security of a web is to identify potential vulnerabilities and subsequently repair them.
a. Network Scanning
b. Password Cracking
c. Log Review
d. Integrity Checkers
e. Virus Detection


The Premise

1. Writing effective test case is a skill and that can be achieved by some experience and in-depth study of the application on which test cases are being written.

2. Test cases should be written by a team member who understands the function or technology being tested and each test case should be submitted for peer review.

3. Communicate with PM and Dev, ask questions.

4. Learn framework and know clear logic.

Metrics

Test case coverage metrics exist. The section contains a summary of fundamental points, dimension, and measures (Conditions: Pass, fail and error).

E.g. Design a matrix to cover the process for sending notifications of mobile aware in previous release
Notification Type User Role Message Content Map Path Alert Types Features
Emergency GIS Org leader Title&Body No Zip Code Disabled GISNot -1 -3 -4 -6 -8 -10 -11 -12
EMNot -1 -2 -3
Standard GIS Org leader Pre-Recorded No Address Enabled GISNot -2 -5 -8 -10 -11
Emergency NON-GIS Org leader Pre-Recorded n/a n/a n/a NoGISNot -1 -5 -7 -8 -10 -11 -12
Standard NON-GIS Group leader Title&Body n/a n/a n/a NOGISot -2 -3 -4 -6 -7 -8 -10 -11
Both Emergency GIS &Emergency NON-GIS Org leader Title&Body Map Zip Code Disabled Summary
Both Standard GIS &Standard NON-GIS Org leader Pre-Recorded Map Address Enabled Summary

Extract one Notification Type such as Emergency GIS, consider conditions: pass, fail and error.
1. Send notification of Emergency GIS successfully
2. Failed to send notification of Emergency GIS
3. Warning messages for every field, List Message Content as an example.
a. Input nothing in Message Content, there should be a warning message such as Message Content is required.
b. Length limited
c. Character, number and special characters
d. Boundary value
e. Copy/paste
f. Navigate to other pages after accessing message contact, then backing, to check message contact

Design test cases using testlink

A variety of approaches to document test cases: the range from developing detailed, comprehensive steps to write general descriptions. In detailed test cases, the steps describe exactly how to perform the test. In descriptive test cases, the tester decides at the time of the test how to perform the test and what data to use.

Title: Short and according to a naming convention that enables you or your QA team to know generally what the test case covers. Mark high priority case for picking out regression test case.
Summary: Brief idea about case.
Precondition: Condition that should be fulfilled before the test is performed.
Step Action: Clear steps to execute the test case for someone not familiar with the application. For instance, ‘Click XX button, Enter number’.
Expected Result: What result it should be.
分享到:
评论

相关推荐

    How to manage Test Case in TFS

    在IT行业中,测试案例(Test Case)管理是软件质量保证的关键环节。对于使用Team Foundation Server (TFS)作为版本控制和项目管理工具的团队来说,有效地管理测试案例至关重要。本篇将详细介绍如何在TFS中管理和创建...

    How-to-design-a-test-case.rar_design a test_test case desi_tes

    在软件开发过程中,测试用例设计是至关重要的一个环节,它直接影响到软件的质量和测试的效率。本资料“如何设计测试用例”深入探讨了这一主题,旨在帮助软件测试工程师提升理论水平和实践技能。...

    how to write better test case

    ### 如何撰写更优质的测试用例 #### 引言 测试用例的设计是软件测试过程中一个至关重要的环节。良好的测试用例不仅能确保软件质量,还能提高测试效率、降低维护成本。本文将详细介绍如何设计出适应需求不断变化的高...

    How-to-design-System-test-case.zip_test case_测试用例

    《如何设计系统测试用例》 测试用例是软件测试中的关键组成部分,它详细定义了在测试过程中应执行的操作以及期望的结果,旨在确保软件的质量和功能完整性。本资料集“如何设计系统测试用例”由行业资深专家精心整理...

    ArtificialIntelligenceTestACaseStudyofIntelligent

    To meet the urgent requirement of ... As an example, we present how to design reliable intelligence test for intelligent vehicles. Finally, we discuss the future research directions of intelligence test.

    Aspect.Oriented.Software.Development.with.Use.Cases [chm]

    The authors show how to identify, design, implement, test, and refactor use-case modules, as well as extend them. They also demonstrate how to design use-case modules with the Unified Modeling ...

    Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development (3rd Edition)

    iterative, and skillful agile modeling practices. <br>Developers and students will learn object-oriented analysis and design (OOA/D) through three iterations of two cohesive, start-to-finish case ...

    Beginning Software Engineering(Wrox,2015)

    Beginning Software Engineering teaches you the practical, hands-on skills needed to design and build robust, efficient, and consistently reliable software. Using jargon-free English, this book uses ...

    Software.Testing.2nd.Edition (Sams)软件测试(英文版)

    Test-to-Pass and Test-to-Fail Equivalence Partitioning Data Testing State Testing Other Black-Box Test Techniques Summary Quiz Chapter 6. Examining the Code Static White-Box Testing: ...

    EMC for Product Designers, Fourth Edition

    Most importantly, it shows how to incorporate EMC principles into the product design process, avoiding cost and performance penalties, meeting the needs of specific standards and resulting in a ...

    Introduction.To.Algorithms,.Second.Edition

    their design and analysis accessible to all levels of readers. We have tried to keep explanations elementary without sacrificing depth of coverage or mathematical rigor. Each chapter presents an ...

    cisco_router_performance_field_guide.zip

    would to know where and how to use them. There is not enough room in a single book to cover every possible solution or every single command and option you could use to accomplish a task. I do ...

    HBase.High.Performance.Cookbook.epub

    This book is intended for software quality assurance/testing professionals, software project managers, or software developers with prior experience in using Selenium and Java to test web-based ...

    Rails.Angular.Postgres.and.Bootstrap.2nd.Edition

    See how creating an advanced Postgres index for a case-insensitive search speeds up your back end - enabling you to create a dynamic user experience using Angular 2. Create reusable components that ...

    Quality Code: Software Testing Principles, Practices, and Patterns

    You’ll learn how to choose the best testing techniques for every situation, from the most common scenarios to threading. Two complete case studies put it all together, walking you through testing a ...

Global site tag (gtag.js) - Google Analytics