Software Testing
Software Testing
1 Agenda
•The arithmetic calculation problem takes two inputs from the user.
• The following are the arithmetic operations considered:
1. Addition
2. Subtraction
3. Multiplication
4. Division
The selection of operation to be done on the inputs is input from the user. The actual operation is
performed and the result is displayed to the user.
Test Case Design Aim
AIM: To design test cases for the problem of Arithmetic Calculations such as addition, subtraction,
multiplication and division.
Test Case Design - Template
Test Case ID Test Case Input Expected Actual Output Test Status
Name Output
Test Case ID Test Case Input Expected Actual Output Test Status
Name Output
You are given a pointer to the root of a binary search tree and values to be inserted into the tree. Insert the values
into their appropriate position in the binary search tree and return the root of the updated binary tree. You just have
to complete the function.
Input Format
You are given a function,
Node * insert (Node * root ,int data) {
}
Constraints
No. of nodes in the tree 500
Binary Search Program - Problem Statement
Output Format
Return the root of the binary search tree after inserting the value
into the tree.
Sample Input
4
/\
27
/\
13
Test Case ID Test Case Input Expected Actual Output Test Status
Name Output
1
Develop a Login Form and
Prepare Test Case Report
Test Case Report - Problem statement
1. Email
2. Password: It should have alphanumeric, Length should be 8 to 32.
3. Phone Number: Phone Number should have only Numbers, Country code is required
After successful Verification email should send to the user
On Required fields * should show. Now, let's begin with our test cases.
Test Case Report
Test Case ID Test Case Name Description Steps to Execute Test Data Expected Result
1 User Interface Check all Click on NA UI should as per the
the text Radio requirement
boxes, buttons and
radio dropdowns
buttons,
etc
2 Required Fields Check the 1. Do not enter NA It should
required any value in showa
fields by the field. mandatory
not filling 2. Click on the symbol (*)
any data Register on
button. mandatory
fields.
3 Email Validation Check all the valid 1. Enter valid [email protected] It should
email Emails. [email protected] not show
2. Click on the any
Register validation
Button. message
4 Password Validation Check the 1. Enter value Password It should
password which is show
limit when alphanumeric validation
enter value less than 8. message
less than 2. Click on
min Register
button
Develop a Student marksheet
application and conducting
testing
Marksheet Application - Module 1
1. Verify that the application has a portal to add subject wise questions and their options.
2. Verify that the examiner can set the examination details like 'Exam Name', 'Subject', 'Exam Code' etc.
3. Verify that the examiner can set the total number of questions and based on the number of questions, the
examiner is presented with the window to add question details.
4. Verify that the examiner can set details for each question - Question, Options, Marks etc.
Marksheet Application - Module 2
Test scenarios for Student's section
1. Verify the student can choose the examination based on the exam name or code.
2. Verify that the student should see the options to fill the required details like name, roll number, etc before starting
the exam.
3. Verify that after filling the required details user should see the option to begin the exam along with instructions.
4. Verify that once the examination begins a timer gets started based on the test duration.