0% found this document useful (0 votes)
59 views

Practical 9

1. This practical outlines how to write test cases to validate requirements from a Software Requirements Specification document for an assigned project. 2. It describes the elements of a test case template including test ID, summary, related requirements, preconditions, test procedure, and status. 3. Characteristics of good test cases are discussed such as being accurate, economical, traceable, repeatable, and reusable.

Uploaded by

geet.more15
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views

Practical 9

1. This practical outlines how to write test cases to validate requirements from a Software Requirements Specification document for an assigned project. 2. It describes the elements of a test case template including test ID, summary, related requirements, preconditions, test procedure, and status. 3. Characteristics of good test cases are discussed such as being accurate, economical, traceable, repeatable, and reusable.

Uploaded by

geet.more15
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Practical No 9

Title: Write test cases to validate requirements of assigned project from SRS document.
Theory: A test case in software engineering is a set of conditions or variables under which a tester will
determine whether an application or software system is working correctly or not.

The process of developing test cases can also help finding problems in the requirement or design of an
application.

Test case templates:


A test case can have the following elements-
1. Test Suite ID: The ID of the test suite to which this test-case belongs.
2. Test case ID : The ID of the test case.
3. Test case summary: The summary/ objective of the test case.
4. Related requirement: The ID of a requirement this test case relates/ traces to
5. Preconditions: Any preconditions that must be fulfilled prior to execute the test.
6. Test procedure: Step by step procedure to execute the test

7. Status : Pass or Fail. Other statuses can be 'Not executed' if testing is is not performed and ' Blocked' if
testing is blocked.

Characteristics of Good test case:


1. Accurate
2. Economical
3 traceable
4. Repeatable
5. Reusable
Test_Case Test_case Pre- Steps Input Data Expected Actual Status
ID Name requisite Result Result
TC001 To verify User must Step 1: Provide Username: The user is The user is Pass
that the user be valid username in John redirected to redirected
is logged in authorised username textbox. Password: specified to specified
successfully Step 2: To provide John 123 home page. home page.
with valid valid password in
username password textbox.
and Step 3: Click login
password button.
TC002 Department Step 1: Provide Department Department Department Fail
To verify name department name in name: added to added to
that we can should be the name textbox. Chemical system with system and
add a valid and Step 2 : Provide Department its location. not
department must department location location : location.
with a valid contain in the location 2nd floor
information characters textbox
TC003 To verify The Step 1: Provide Department The The Pass
updation of specific department name in name: department department
department department the name textbox. Chemical details are details that
with valid must exist Step 2: Provide Department updated in is location
information. with the department location location: the university is updated
valid in the location First floor management in the
information textbox. system. system
.
TC004 To verify The Step 1: Choosing a Select The system The Pass
that a specified department from department deletes the selected
department department the system's : Statistics selected department
can be must exist dropdown list Click on department Statistics is
deleted from in the Step 2: confirm the 'OK' button from the list deleted
the system system deletion of the to confirm from the
department delete system.
action
TC005 To verify Lecturer Step 1: Provide Lecturer Lecturer is The lecturer Pass
that the name must lecturer name in the Name: added to the name,
system can be valid name textbox Christofer system with contact no
add a lecturer and should Step 2: Provide Fernandes specified and email is
with valid contain Lecturer’s Contact Contact details added to the
information. only number No: system.
characters. Step 3: Provide 989208804
Lecturer’s email-I 1
D in email-address Email-ID:
textbox. christofer1
[email protected]
om
TC006 To verify The name Step 1: Provide Student The student The name Pass
that the of student student name in Name: information of student
system can must name text box Jacob is added to along with
contain Jones system ID and
add a student characters Step 2: Provide course
information and all Student registration Student ID: name is
details must No(ID) 20200071 added to
be specified Step 3: Provide system
in given Course of the Student
texboxes, student. Course:
no texbox Computer
should Engineerin
remain g
empty.

Conclusion: Thus we have studied how to write test cases and successfully designed test cases to
validate requirements for assigned project from SRS document.

You might also like