EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login

Use Case Testing

By Swati TawdeSwati Tawde

Home » Software Development » Software Development Tutorials » Software Testing Tutorial » Use Case Testing

Use Case Testing

Definition of Use Case Testing

Use case testing is a type of software testing that comes under the functional black box testing. As it is black box testing, there will be not and execution of the codes. It is used to ensure that the path used by the users is working as expected or not. It makes sure that the user performs its function successfully, without any interruption or error. Use case testing is not performed to determine the quality of the software. It is an end to end testing. Even if it is an end to end testing, it will not ensure the entire coverage of the user’s applications. Note that we cannot decide the deployment of the production environment based on the test results derived from the use case testing.

Use cases are made on the basis of user actions towards the software application and the application response towards the user actions.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Elements of use cases which are given as follows:

  • Actor: It is a user entity that is involved in use case actions.
  • Brief description: It is a description that explains the use case in brief.
  • Precondition: It is a condition that needs to be satisfied before the use case starts.
  • Basic Flow: It is a flow of transaction that is done by the user while interacting with the system or software. As it is a normal workflow, there will be no chances of getting an error from the system. The actor or user will get the expected result from the system.
  • Alternate Flow: A system can also have alternate flow. This is a less common interaction done by the user towards the system.
  • Exception Flow: It is a flow that prevents and user to achieve its goal and throw some error.
  • Post Condition: It is a condition that needs to be checked after the use case.

Use Case Notation

The below image shows the notation used for making a use case.

Use Case Testing-1.1

  • System: It is shown by using a rectangle shape.
  • Use Case: It is shown by using an oval shape. Any action or activity which is carried is shown by using the use case.
  • Actor: The actor is an entity that is used to represent the user.
  • Relationship: Relationship is used to show the flow of the action. It is represented by using an arrow.

How does Use Case Testing Work?

Consider an example where a user needs to buy clothes online. The first user will visit the site and click on the login. After that user will enter his user id and password. After a successful login, the user will search for the item he is intended to buy. After viewing three-four items, the user will add this to the shopping cart and then click on the buy options. After all of these action user will logout the system. So this is an example, where all the transactions are logically connected to each other in a sequential manner. The user will perform these steps to accomplish the task. Use case testing tests these flow of transactions in the entire system from end to end. Use cases are the way that user will likely use to achieve a successful task.

In use case testing, the first step is to check the use case document. We need to first review the document and need to ensure that all the functional requirements are working properly or not. The second step is to ensure that all steps or test cases or automatic. The third step is to check the normal workflow of the system. The fourth step is to ensure that the alternate workflow for the system is working properly. The fifth step is to ensure that all the steps in the use cases are tested. Once we have reviewed these cases, we can write a test case.

Example of Use Case Testing

Consider an example where users try to login to the Gmail account whereas:

Popular Course in this category
Sale
Software Testing Training (9 Courses, 2 Projects)9 Online Courses | 2 Hands-on Projects | 60+ Hours | Verifiable Certificate of Completion | Lifetime Access
4.5 (7,933 ratings)
Course Price

View Course

Related Courses
Penetration Testing Training Program (2 Courses)TestNG Training (4 Courses, 2 Project)
  • Case Name: Gmail account login
  • Actor: User
  • Pre Condition: System must be connected to a network.

A use case for Gmail account login.

A: Actor/ S: System

  • User enters the email ID.
  • The system validates the email ID.
  • The user enters the password.
  • The system validates the password.
  • The system shows the emails to the user.

Extension

  • 1a Invalid email ID. S: System shows an error message.
  • 3a Invalid password. S: System shows an error message.

Advantages of Use Case Testing

Some of the advantages are given below:

  • It helps to understand the requirements of the system.
  • It is a sequence of steps that describes the interaction between user and system.
  • It helps to manage the complexity in the transaction, as it focuses on one task at a time.

Conclusion

Use case testing is testing which is used to test the end-to-end transactions. Based on the requirements uses cases are written and executed. In this article, we have discussed the basics of use case testing, with its working. We have also discussed one sample example to understand the concept in a practical manner.

Recommended Articles

This is a guide to Use Case Testing. Here we also discuss the introduction and how does use case testing work along with advantages. You may also have a look at the following articles to learn more –

  1. Gatling Load Testing
  2. Model-Based Testing
  3. Accessibility Testing Tools
  4. Selenium Load Testing

Software Testing Training (9 Courses, 2 Projects)

9 Online Courses

2 Hands-on Projects

60+ Hours

Verifiable Certificate of Completion

Lifetime Access

Learn More

0 Shares
Share
Tweet
Share
Primary Sidebar
Software Testing Tutorial
  • 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
  • Basics
    • What is Software Testing
    • Careers in Software Testing
    • Defect Life Cycle in Software Testing
    • 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
    • Automation Testing Process
    • Mobile Automation Testing
    • Automation Testing Life Cycle
    • Software Quality Assurance
    • Software Quality Assurance
    • What is Test Environment?
    • Verification and Validation 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
  • 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
    • What is Xpath
    • Test Harness
    • Test Strategy
    • Software Incident Management
    • What is Debugging
    • What is Defect?
    • Listeners in TestNG
  • 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

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

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

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
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.

Let’s Get Started

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

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA Login

Forgot Password?

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

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.

Special Offer - Software Testing Training (9 Courses, 2 Projects) Learn More