Test Cases, Test Plan, Defect Plan
Test Cases, Test Plan, Defect Plan
TC_Id| TC_Name Steps Input Data Expected Result Actual Result Status
be accepted
TC_04 Submit Click on submit button |Itshould go to next page It is going to next page pass
TC_05 Cancel Click on cancel button |It should remain on It is remaining on the Pass
No. Test Test case Prerequisite Steps Input Expected Actual Remarks
Result
Case-ID Objective
data Result /Status
|Calculator is1. Key in a valid| 135 +100|235(addition. 235 Pass
1 TC_1 To add two
integer and |switched on integer from above ten digits
display the 9999999999 to will be expressed
result on ten + 9999999999 in exponential
|digit calculator |2. Key in operator+
form)
2 TC_2 To subtract Calculator is1. Key in a valid| 135- 100 35(subtraction, 35 Pass
two integer switched on integer from above ten digits
and display the 9999999999 to will be expressed
result on ten + 9999999999 in exponential
digit calculator form)
2. Key in operator -
3. Key in second
operand, a valid
integer from
- 9999999999 To
+999999999
6 TC_6To delete Calculator is Press <- (backspace) One Digit should One Pass
be deleted from Digit is
|digitsone by switched on
one
right hand side deleted
from
right
handside
TC_2 Password field Valid password Valid password Successful login message Pass
should be accepted
TC_3 Password field Invalid password Should not accept Message displayed as Invalid| Pass
Wrong password login or wrong password
TC_4 Date of journey Date format not before It should accept Accepted Pass
the current date
TC_5 Date of return Date greater than the It should accept date Accepted Pass
journey return journey date
5. Design test cases for e-commerce (Flipkart, Amazon) login form
MAns.: Actual Result
TC Id TC_name Steps Input data Expected Status
result
in"abc123" It should accept It is accepted Pass
TC_01 User Enter the username
usermame
name alphanumeric alphabets A-Z the username
Number 0-9
It should accept| It is accepted Pass
TC_02 Password | Enter the password in"abc123" password
alphanumeric alphabets A-Z. the password
Number 0-9
It should goes It is going to next Pass
TC_03 Submit 1. After valid username and
password to next page page
2 Click on submit button
should It shows login page Pass
It
TC_04 Cancel Click on cancel button
with blank fields
remain in login
page with blank
fields
6. Design test cases for Web Pages Testing any Web Sites
Ans. :
Expected result
Test status Req. Ref. Page/Area Scope
ANONYMOUS
Scenario: User views and clicks verify content /design.
Ready 1838-1 Homepage on header links. main nav and dropdown links
desktop
Actions : take
user to those sections.
1. Click on logo
2. Click main nav
register link takes user to
(navigation links) links and registration page.
search takes user to
dropdowns.
search/results
3. Click on Register link.
page.
4. Click on magnifying glass
icon.
5. Enter a search term and
submit.
Scenario : User views carousel verify conten/design
Ready 1838-2 Homepage carousel auto-rotates
desktop hero's.
Test Conditions : user can manually rotate by
1 View autorotation. selecting arrow (page needs to be
refreshed to go back to
2 Click on arrows to manually
rotate. autorotation)
3. Click on links within each carousel marker (black bar under
side moves location to the right
slide.
to represent each slide)
verify all links.
7. Write program and design test cases for the
following Control and decision
statement.
making do
printf("One);
int n,i.k ; break;
i= l; case 2:
printf("Two "):
printf(n Enter a number upto 10:"; break;
scanf("d"&n); case 3:
printf("Three "):
if(n<=l0) break;
{ default;
while(i<=n) printf("Invalid'");
{
printf("d".): eetcht);
i++;
i=l;
printf("nin);
TC_Name Steps Input Expected Result Actual
Pradica
Data Result Slatux
TC_01 If Enter 5 Number should Acepting
number be accepted pass
10
8. Prepare test plan for an identified Mobile project specification, budget and customer's
application. requirements.
V Ans. : 1.3 References
requirements. During this stage engineers usually uninstallation, and updating of the application. Once
encounter issues which appear when the system has the application has been installed, an engineer checks
been integrated. launching process. The application must be loaded
quickly and correctly. Closing the application should
not require much time as well.
4. Risks and ASSump
2.2.3.5 Functional Testing
4.1 Risks
All the functions and features of the application are
tested to verify whether they operate according to the The following risks exist while testing a
specification. application :
mobile
2.2.3.6 Security testing availability of devices
new features and moodification which
Security testing is conducted to find the application have not
vulnerabilities and prevent private data losses. been planned in advance
2.4 Test Report all documents are up-to-date and delivered to the
testing team in time
Test Report helps to summarize testing activity in a
formal way. It should contain : all necessary equipment and tools are provided and
ready for testing
application name and overview
tests schedule is reviewed in case there are any
testing hardware and software environment
obstacles for testing activity.
the number of tests cases executed/passed/failed.
5. Entry and Exit Criteria
For each issue that has been encountered, the following
information is provided: 5.1 Entry Criteria
bug status (open, fixed, etc.) requirements have been defined and approved
bug location test design and tests plan have been created
test environment has been set up
steps to reproduce an issue.
all necessary resources are available.
3. Schedules for Testing
5.2 Exit Criteria
A test schedule is elaborated by Project Managers and
tests cases are executed
helps to monitor the testing process.
the rate of tests cases passed is satisfactory, e.g. 95%
failed test cases are not related to crucial functionality
tests results have been accepted 9. Deliverables
critical defects have been fixed.
The list of testing deliverables usually contains :
6. Test Metrics
tests plan
Test metrics are quantitative measures which help to test cases documents
estimate the testing effort. The most common metrics are : test strategy
requirement coverage test results
test cases coverage test summary report.
number of tests executed 9. Design test plan and test cases for Notepad (MS
number of defects found (taking into consideration Window based) Application.
their priorities and severities) V Ans. :
tests design effort Following are test scenarios for notepad or any other
total test effort. basic text editor.
7. Logging Tests and Reporting Verify that on launching the notepad application, the
notepad editor should open with its default size.
Each found issue should be properly reported using
Verify that user can write/type alphabets from a
special tools and applications.
standard keyboard.
8. Roles and Responsibilities Verify that user can type numerics from a standard
Roles and responsibilities on the project must be clearly keybaord
defined and divided among the project stuff. Verify that user can type special characters and
Commonly, the roles are as follows : symbols on notepad editor window.
Verify that by default the font size is normal or as per
8.1 Project Manager
the specifications.
Project Manager is responsible for managing the whole Verify that user can set the font size and family.
testing process. He/she approves all test documentation, Verify that user can save the text in a file.
considers budget and time terms, and provides
Verify that user can open any exiting file in notepad.
necessary resources.
Verify that file formats not permitted by notepad are
8.2 Test Lead
not loaded and doesn't corrupt the application.
Test Lead is responsible for collecting requirements, Verify that user can append textt to any file and again
planning process, test activity monitoring and project save the file.
reporting. Verify that user can select, copy and paste text.
8.3 Test Engineer Verify that user can select, cut and paste text.
Test Engineer is responsible for tests case preparation Verify that user can select and delete a text.
and execution as well as issue reporting. Verify that user can delete a text using backspace and
delete buttons.
Verify that user can navigate through the text in file We can write number of test cases on notepad
using the arrow keys. application. The basic concept is to validate menu :
Verify that user can navigate through the text in file 1) File 2) Edit
using mouse pointer. 3) Format 4) View
Verify that user can edit and delete data in between the
5) Help
text file.
Each of these menu has submenu.
Verify that user can undo any latest change done in file.
For Menu: Validate the click of each menu
Verify that user can redo any change undone by undo corresponding to relevant result. Say if you open file
option. menu and hit on new, the notepad should open blank
Verify that user can search for single or multiple file and cursor blinking on the top right corner.
characters and words through the file.
E.g.: test case
Verify that user can search and replace single or Test case No. : TXXXX
multiple characters and words through the file.
Test scenario : Validating menu option
Verify that user can resize the notepad window.
Expected Result : if file menu is opened and hit on
Verify that user can minimize the notepad editor new, the notepad should open blank file and cursor.
window.
Actual Result : Notepad successfully opened new file.
Verify that user can maximize the notepad editor
Similarly we can validate for submenu and other
window.
menuS.
TC_Id TC_Name Steps Input Data Expected Result Actual Result Status
TC_01 New 1. Open application New blank file must beOpening New pass
TC_02Open |1. Open application File location and Existing selected file|Opening pass
TC_03|Save Click File ’ Save File location and| Existing file must beSaving selected pass
File name saved File
TC_04 Exit Click File ’ Exit Exit from editor Exiting from pass
editor
10. Prepare defect report after executing test cases for library management system.
Ans.:
ID Lbl
Module Book_ed
Detected Build Version Bel
Status Ss001
11. Prepare defect report after executing test cases for Withdrawn of amount from ATM Machine.
VAns. :
ID A1
Project ATM
Module Withdraw
Status Ss001
12. Prepare defect report after executing test cases for any
login form.
Ans. :
ID L1
Module Login
Detected Build Version LI
Defect Severity
Defect Priority Pr-56
Status Ss001
14. Design and run test cases for MS Word application using an
Automation Tool.
V Ans.:
TC_Id|TC_Name Steps Input Data Expected Result Actual Result Status
TC_01 New 1. Open application New blank file must|Opening New File pass
2. Click on File Menu |be opened
3 Select "New" menu
TC_02 Open 1. Open application File location Existing selected|Opening selected File pass
2. Click on File Menu and File name file should be opened
|3. Select "Open" menu
and browse
required file
TC_03 Save Click File ’ Save File location |Existing file must be Saving selected File pass
and File namesaved
TC_04|Exit Click File Exit Exit from editor |Exiting from editor pass
Lab Ends..