EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login
Home Software Development Software Development Tutorials Software Testing Tutorial What is Test Case?
Secondary Sidebar
Software Testing Tutorial
  • Advance
    • Cyclomatic Complexity
    • Decision Table Testing
    • Decision Tree Algorithm
    • What is Continuous Integration
    • Mantis Bug Tracker
    • Equivalence Partitioning
    • Gantt Chart Software
    • Acceptance Testing Types
    • Load testing tools
    • Install TestNG
    • Install Unity
    • Defect Management Process
    • Test Plan Template
    • Testing Interview Questions
    • Testing of Mobile application
    • What is Test Automation Frameworks
    • Test Automation Framework
    • Application of Automation
    • Test Automation Process
    • Automation Testing Roles and Responsibilities
    • What is Instruction Cycle?
    • What is Cucumber?
    • 15 Best Popular Bug Reporting Tools
    • What is Automated Testing?
    • Software Maintenance Types
    • Types of Penetration Testing
    • Software Reliability
    • Best Gantt Chart Software
    • Code Coverage
    • Branch Coverage
    • Decision Coverage
    • Statement Coverage
    • What is Test Case
    • Types of Test Case
    • What is Test Scenario
    • Formal Review
    • Alpha Beta Pruning
    • What is Cyclomatic Complexity?
    • Test Coverage
    • How to Write Test Case
    • Testing Documentation
    • Performance Testing Life Cycle
    • Test Harness
    • Test Strategy
    • Software Incident Management
    • What is Debugging
    • What is Defect?
    • Listeners in TestNG
  • Basics
    • What is Software Testing
    • Careers in Software Testing
    • Defect Life Cycle in Software Testing
    • Bug Life Cycle
    • Levels of Software Testing
    • Software Testing Life Cycle
    • Software Tester Work
    • Software Testing Principles
    • Software Testing Services
    • Testing Methodologies
    • Test Approaches
    • Grey Box Testing
    • Types of Software Testing
    • What is a Bug in Software Testing
    • Benefits of Automation Testing
    • What is Automation Testing?
    • Types of Automation
    • Typical Journey of a Software Tester
    • Automation Testing Process
    • Mobile Automation Testing
    • Automation Testing Life Cycle
    • Software Quality Assurance
    • Software Quality Assurance
    • What is Test Environment?
    • Verification and Validation Testing
  • Types of Testing
    • Adhoc Testing
    • Types of System Testing
    • Manual Testing Types
    • Unit Testing Types
    • Unit Testing Benefits
    • Agile Testing
    • What is Agile Testing
    • Acceptance Testing
    • Stress Testing Types
    • Alpha and Beta Testing
    • Application Testing
    • Automation Testing
    • Automation Testing Advantages
    • Benchmark Testing
    • Black Box Testing
    • Domain Testing
    • Dynamic Testing
    • Ecommerce Testing
    • Fuzz Testing
    • Gray Box Testing
    • GUI Testing
    • Installation Testing
    • Interface Testing
    • Interoperability Testing
    • Mainframe Testing
    • Manual Testing
    • Mutation Testing
    • Monkey Testing
    • Negative Testing
    • Penetration Testing
    • Penetration testing phases
    • Penetration testing framework
    • Protocol Testing
    • Recovery Testing
    • Regression Testing
    • Mobile Penetration Testing
    • Accessibility Testing
    • Sanity Testing
    • Scalability Testing
    • Security Testing
    • Spike Testing
    • Stability Testing
    • State Transition Testing
    • Static Testing
    • Gatling Load Testing
    • System Integration Testing
    • Structural Testing
    • Locust Load Testing
    • System Testing
    • Control Flow Testing
    • Unit Testing
    • Cypress testing
    • Volume Testing
    • Web Testing Application
    • What is Exploratory Testing
    • What is Stress Testing
    • What is Usability Testing
    • White Box Testing
    • Types of White Box Testing
    • Compatibility Testing?
    • Use Case Testing
    • Beta Testing
    • Integration Testing
    • Non Functional Testing
    • Non Functional Testing Types
    • What is Functional Testing
    • Functional testing types
    • Cookie Testing
    • Alpha Testing
    • Boundary Value Testing
    • Equivalence Class Testing
    • Glass Box Testing
    • SOA Testing
    • Smoke Testing
    • Visual Testing
    • Visual Paradigm
    • Model-Based Testing
  • Testing techniques
    • Software Testing Methodologies
    • Black Box Testing Techniques
    • Static Testing Techniques
    • Test Case Design Techniques
    • What is Static Analysis
  • Testing tools
    • Manual Testing Tools
    • Visual Testing Tools
    • Automation Testing Tools
    • Functional Testing Tools
    • GUI Testing Tools
    • Penetration Testing Tools
    • Performance Testing Tools
    • SOA Testing Tools
    • Accessibility Testing Tools
    • What is QTP
    • Regression Testing Tools
    • Security Testing Tools
    • Test Management Tools
    • Defect Management Tools
    • Code Coverage Tools
    • Test Coverage Tools
    • Defect Tracking Tools
    • Continuous Integration Tools
    • Install Bugzilla
    • Test data generation tool
    • Unit Testing Tools
    • Web Testing Tools
    • Stress Testing Tools
    • Performance Monitoring Tools
    • Mobile Testing Tools
    • Responsive Testing Tool
    • Cross Browser Testing Tools
    • Risk Based Testing
    • Database Testing Tools
    • WinRunner
    • What is Squish?
    • CubicTest
    • What is WinRM?
    • Bugzilla Tool
    • Code review tools
    • Penetration Testing Open Source Tools
  • Inteview Questions
    • Automation Testing Interview Questions
    • Manual Testing Interview Questions
    • ISTQB Interview Questions
    • Cucumber Interview Questions
    • Software Testing Interview Questions
    • Penetration Testing Interview Questions

Related Courses

Software Testing Course

Penetration Training Course

TestNG Training Course

What is Test Case?

By Priya PedamkarPriya Pedamkar

What is Test Case?

Introduction to Test Case

A test case is a document that contains a various set of data, conditions to be performed and the expected result for the particular condition, developed by the software testers to perform the execution of the particular part of the software to verify the working of the software against requirements. To perform the test, this case use parameters like test scenario, test ID, prerequisites, description, test data, test step, test results, test parameters, actual results, various environment, environment information.

All in One Software Development Bundle(600+ Courses, 50+ projects)
Python TutorialC SharpJavaJavaScript
C Plus PlusSoftware TestingSQLKali Linux
Price
View Courses
600+ Online Courses | 50+ projects | 3000+ Hours | Verifiable Certificates | Lifetime Access
4.6 (86,130 ratings)

Template

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

It usually has the following fields. However, the format of the fields may differ from company to company, depending on the test management tool used by them.

ID The ID is given to the test case.
Description The description of the test case.
Related Requirement The ID is given to the requirement that this test case maps to.
Prerequisites Any preconditions or requirements that are to be satisfied before running the test.
Test Steps Step-by-step instructions were given to run the test.
Test Data Data that is used while conducting the test.
Expected Result The result that is expected from the test, logged before running the test.
Actual Result The actual result obtained after running the test
Status The status obtained after running the test. It can be Pass, Fail, Not Executed, Blocked.
Comments Any remarks to be given for the test.
Environment Information Includes Network/Hardware/Software information in which the test is run.

How to Write a Test Case?

Below are the steps:

Step 1: Assign a Number and a Description.

Step 2: In order to run it, we need Test Data. Without the test data, we would not have the proper information to test, making the task laborious.

Step 3: To run it, we need to have a certain set of instructions to carry out the test. These steps are called Test Steps. The need for this arises, when the author resigns from the project or is on a break. Then someone else from the project will need to take up the testing. Written steps will help them.

Step 4: The aim of them is to examine the behavior of the application. To perform this, we will need to have an Expected Result. After its execution, expected results will be compared with the Actual Result from the test, and accordingly, a Status will be assigned to it.

Step 5: We can also have an Additional field like the Prerequisite field, which tells us the conditions to be met before the test run, a Post-Conditions field, which tells us the conditions to be met after the test run, etc.

Example:

ID Description Test Steps Test Data Expected Result Actual Result Status
TC01 Check Employee Login with valid Data

1. Go to the login page.

2.Enter Userid

3.Enter password

4. Click on the Login button

Userid= admin

Password= abc12345

User should be able to log in As Expected Pass
TC02 Check Employee Login with invalid Data 1. Go to the login page.

2.Enter Userid

3.Enter password

4. Click on the Login button

Userid= admin

Password= 12345abc

User should not be able to log in As Expected Pass

Importance of Test Case

They have a huge impression on the testing phase. Writing them is as significant as the testing process itself. It helps us think through the specifics and ensures that we are tackling them from as many outlooks as possible.

The importance of having it is that anyone can retest the test using them. They are potent artifacts that are useful to future teammates, in addition to providing documentation on how an application performs. To sum up, They provide the following significance:

  • They ensure good coverage of the test, making sure the main functionality is not missed during testing.
  • It allows them to think of different ways of confirming the features of the application, thoroughly.
  • Negatives are also written, making the testing a thorough process, with little being overlooked.
  • They are reusable, as anyone can refer them and run the test.

Useful Tips and Tricks

When writing them, keep in mind the following information:

  • It should be simple and concise, with not more than 15 steps.
  • Each of them is to be made reusable.
  • Avoid repetition.
  • Additional test setup information is to be provided like software, hardware, operating system, version of the application under test, prerequisites for the test, etc.
  • It should be written in a way that we test only one thing at a time, with no overlaps.
  • Ensure that all scenarios, positive and negative, are covered, giving us 100% coverage.
  • They should be created with the end-user in mind.

Conclusion

To conclude, They can enhance our efforts in overall testing and can improve our software quality to great ends, while saving us time and effort due to the reusability of test cases.

Recommended Articles

This is a guide to What is Test Case. Here we have discussed the Template, Importance, and Useful Tips and tricks. You may also look at the following articles to learn more –

  1. What is Software Development?
  2. Software Engineering Interview Questions
  3. Career as a Software Developers
  4. Types of Test Case
Popular Course in this category
Software Testing Training (11 Courses, 2 Projects)
  11 Online Courses |  2 Hands-on Projects |  65+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

Penetration Testing Training Program (2 Courses)4.9
TestNG Training (4 Courses, 2 Project)4.8
1 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

C# Programming, Conditional Constructs, Loops, Arrays, OOPS Concept

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more