Effectively Writing Use case in 5 Minutes in Software Testing
What is a Use Case:-
Use case means the interaction between the actor,system and expected output.
Actor is basically the User who is using the end product/System.
System is the software or product which is to be used by end user.
It helps in precisely generating test cases against each requirement.
Here is the real life e.g. of live app on playstore for which I have designed use cases.
About VuLiv:-
About VuLiv:-
VuLiv, Media Player with Infinite Possibilities is here to help you Live Life Better (Liv Lyf B’tr). VuLiv is a platform that helps you do anything you can to stay entertained and beat boredom with just a few taps and swipes on your smartphone!
This BEAUTIFUL PLAYFUL USEFUL media player app is a hub that brings together your videos, pictures and Music, all at one place! Experience endless hours of entertainment, just tap to PLAY and enjoy exclusive videos from the internet or watch your favourite videos from some of the most popular video sharing platforms like YouTube and Dailymotion. Finally LIVE, a marketplace for exclusive experiences that money can’t buy! Get the Best Daily Deals on top brands or send a gift to someone you love or recharge your mobile on the go. What more, you can grab a chance to live memorable experiences!
Use case of VuLiv
Name:Login
Purpose:Allow user to Login Vuliv
Optimistic Flow:-
1-Actor logs into the system.
2-Actor views different option on Home Screen Menu
3-On tapping Hamburger Menu Actor sees different options like Play,Music Etc
Pessimistic Flow:-
Problem 1-Actor logs into the the system without Account prompted to enter Email Address and Password
Problem 2 Actor uses incorrect Email address and Correct password prompted to use correct credential.
Test Cases written are in BDD framework using Gherkin Framework
Test Cases:
Given I am a Vuliv user
When I log in with correct credentials
Then I should be able to see different option in Hamburger menu like Play,Music,videos Photos.
Given I am a Vuliv user
When I log in with incorrect credentials
Then I should not be able to Sign in
And I should be prompted with a Validation message to log in with Correct Credentials.
Name:-Photos
Purpose:-User should be able to see Photos
Optimistic Flow:-
1-Actors logs in with correct credential he sees different option.
2-Actor Taps on photos, sees all his photos in the smartphone
Pessimistic Flow:-
1-Actor has Image extension file not supported by Vuliv
2-Actor has no images in the Smartphone
Test Case:
Given as a Vuliv user
When I have tapped on Photos option
Then I should be able to see all the photos in my devices
Given I navigates to Photos Section from Hamburger Menu
When there are no Images on the device
Then I should see the “Message No Image present on your Device”
Name Music:
Purpose:-Listen Song
Optimistic Flows:
1-The Actor can listen Song
2-The Actor can modify content of the songs like delete,Fast forward,pause etc
Pessimistic Flow:
Problem 1:Actor has an unsupported File Format not supported by Vuliv
Problem:Actor has No music in the Smartphone Playlist
GIven I have navigated to Music Section
When I see list of Songs available
Then I should be able to select the song
And the song should start playing
GIven I have Navigated to Music Section
When there are no Songs in the SMartPhone
Then I should see message “Please add some Song’s”
Similarly we can add more use cases against each requirement.
Comments
Post a Comment