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

Testing LAB DA1

This document outlines the coursework for Advanced Software Testing at the School of Computer Science Engineering for the Winter Semester 2024-25. It includes test case designs for a change password module and an income tax calculation program, detailing both positive and negative test scenarios. Additionally, it describes the development of a Jewelry Management System, including various modules like authentication and stock management, along with test cases for each module.

Uploaded by

Shivam Nimje
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Testing LAB DA1

This document outlines the coursework for Advanced Software Testing at the School of Computer Science Engineering for the Winter Semester 2024-25. It includes test case designs for a change password module and an income tax calculation program, detailing both positive and negative test scenarios. Additionally, it describes the development of a Jewelry Management System, including various modules like authentication and stock management, along with test cases for each module.

Uploaded by

Shivam Nimje
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 40

School of Computer Science Engineering

and Information Systems (SCORE)


WINTER SEMESTER 2024-25

Advanced Software Testing


Cycle Sheet 1:

Name: SHIVAM D. NIMJE


Registration Number: 21MIS0075
Subject Name: Advanced Software
Testing

Slot: L49+L50

Course Code: SWE3006


Faculty: Prof. PRASANNA M
Date: 21/01/2025
Q1) Assume that you have been given the task of testing vtop change
password module. Design Test Cases to test the given module and
record the test results in the Test Matrix Table [5]
Project Name : Vtop Application
Module Name: Change Password Module
Reference Document : NA
Created By : 21MIS0075
Date Of Creation : 17-01-2025
Date Of Review 21-01-2025
Q2) Develop a simple Income Tax calculation program by using the
following rules

Design Test Cases and record the test results in the Test Matrix Table
Test Scenario ID Income Tax-1 Test Case ID Tax -1A
Test Case Description IncomeTax – Test Priority High
Positive test case
Pre-Requisite Name, Aadhar, Post - Requisite Correct income tax calculation
Salary, Address and updated salary after tax
(User must provide deductions
these details)
Test Execution Steps :

S.No Action Inputs Expected Actaul Test Test Test


Output Output Browser Result Comments
1. Verify tax for 2,50,000 0.0 0.0 NetBeans Pass No tax Below
income below 3L
Rs. 3,00,000
2 Verify tax for 3,00,000 0.00 0.00 NetBeans Pass Edge case for
income 3L
exactly Rs.
3,00,000
3 Verify tax for 5,00,000 25,000.0 25,000.00 NetBeans Pass 5% tax
income correctly
between Rs. applied
3,00,000 and
7,00,000
4 Verify tax for 7,00,000 35,000.00 35,000.00 NetBeans Pass Edge case for
income 7L
exactly Rs.
7,00,000
5 Verify tax for 95,000.086 NetBeans Pass 10% tax
9,50,000.863 95,000.086
float value correctly
applied

6 Verify tax for 14,00,000 2,80,000.00 NetBeans Pass 20% tax


2,80,000.0
income correctly
between Rs. applied
12,00,000 and
15,00,000
7 Verify tax for 20,00,000 6,00,000.00 6,00,000.00 NetBeans Pass 30% tax
income above correctly
Rs. 15,00,000 applied
8 Verify behavior 0.0 0.0 0.00 NetBeans Pass No tax for
when input is 0 income = 0

Verify behavior < 25,000.00 25,000.00 NetBeans Pass Program trims


9 when input 500000. spaces
contains spaces successfully

Test Scenario ID Income Tax-1 Test Case ID Login-1B


Test Case Description Login – Negative Test Priority High
test case
Pre-Requisite User provides Post - Requisite The system should display an
invalid details error message and the tax
calculation should not proceed
S.No Action Inputs Expected Actual Test Test Test
Output Output Browser Results Comments
1 5,00,000 Dialog Box: Dialog Box: NetBeans Pass Negative
“Salary “Salary values are
Verify behavior when Cannot Be Cannot Be invalid
input is negative Negative” Negative”

2. “abcde” Please Enter a Please Enter NetBeans Pass Handles


Valid a Valid non-
Verify behavior when Numeric Numeric numeric
input is non-numeric Salary Salary input

3 Verify behavior when "@$$#" Please Enter a Please Enter NetBeans Pass Special
input is a special Valid a Valid characters
character Numeric Numeric are invalid
Salary Salary

4 Verify behavior when (blank Salary Field Salary Field NetBeans Pass Blank
input is blank input) cannot be cannot be input is
empty empty invalid

5 Verify behavior when 100abc Please Enter a Please Enter NetBeans Pass Mixed
input contains mixed Valid a Valid input is
characters Numeric Numeric invalid
Salary Salary
POSITIVE TEST CASES
NEGATIVE TEST CASES
Q3) Problem Statement given by Customer:
A leading Jewellery showroom in Vellore needs software application to maintain the day to
day activities. It is going to be used by Owner and Office Staff Members. Develop the
following modules
 Authentication module
 Stock Management module , Purchase Management module
 Sales Management module , Repair Management module

For the Jewelry Management System, I have used MySQL as the database for managing
various aspects of the system. The database is connected and structured with multiple tables
such as appuser, category, customer, product, and repair. The appuser table stores user details,
while the product table keeps track of product information, including item names, quantities,
prices, and categories. The repair table is used to track product repairs with details such as
repair status, description, and cost. Data is efficiently retrieved and displayed from these
tables to support system operations.

MYSQL :

1. Authentication module
Test Scenario ID Login-1 Test Case ID Login-1A
Test Case Description Login – Positive Test Priority High
test case
Pre-Requisite A valid user account Post - Requisite User should be successfully
logged in and redirected to the
appropriate dashboard
(e.g., HomePage for admin)

S. Action Inputs Expected Actual Test Test Text


N Output Output Browser Resu Comment
O lt s
1 Login with Email: Admin Admin NetBeans Pass Tested
valid superadmin@testemai successfully successfully positive
credentials l.com, logs into the logs into the scenario;
system, and system, and system
Password: admin HomePage HomePage behaved as
is visible is visible expected.
2 Login Email: Admin Admin NetBeans Pass Admin
with valid superadmin@testemai successfully successfully successfully
credential, l.com, logs into the logs into the logs out and
logout, system, and system, and re-logs into
and re- Password: admin HomePage HomePage the system
login is visible is visible without
issues.

Test Scenario ID Login-1 Test Case ID Login-1B


Test Case Description Login – Test Priority High
Negative test
case
Pre-Requisite NA Post - Requisite The user should
remain on the login
page

S. Action Inputs Expecte Actual Test Test Text


N d Output Browse Resu Comments
O Output r lt
1 Login Email: Incorrect Incorrect NetBean Pass Negative test
with wrongemail@te Email or Email or s
invalid stemail.com, case passed;
email Password Password proper
Password: validation
admin message
displayed.
2 Login Email: NetBean Pass
with both <empty>, Incorrect s
Incorrect Email or Negative test
fields Email or case; system
empty Password: Password
Password did not allow
<empty> blank login.

3 Login Email: NetBean Pass


with superadminemai Incorrect s
Incorrect Proper validation
email in l.com (without Email or Email or message for
invalid '@'), Password Password incorrect email
format
Password: format.
admin
4 Login Email: NetBean Pass
with superadmin@tes Incorrect Incorrect s Negative
valid temail.com, Email or Email or scenario
credential Password Password validated;
s but Password: password
wrong wrongpass mismatch
password correctly
handled.

Negative Test Case Example


"System displays the error message 'Incorrect Email or Password' when invalid credentials are
entered during login."
Positive Test Case Example
"Admin is successfully redirected to the Home Page after providing valid login credentials."

Home Page
2. Stock Management module
(Manage Category)
Test Scenario ID ManageCategory-1 Test Case ID ManageCategory-1A
Test Case Manage Category Test Priority High
Description
– Positive test case
Pre-Requisite 1)Admin Post - Requisite 1) The newly added
successfully logs category should be visible
into the system. in the category list.

2)The category 2)Data is correctly saved


management in the database.
window is .
accessible
S. Action Inputs Expected Actual Test Test Text
N Output Output Browse Resu Comments
O r lt
1 Enter a Category is Category is
Save NetBeans Pass Verify save
valid successfully successfully
category functionalit
category saved, and a saved, and a
with valid y with
name (e.g., success success
data valid input.
"Gold") and message is message is
click displayed. displayed.
"Save".
2 Update Select Category is Category is NetBeans Pass Ensure
category with "Fashion successfully successfully update
valid data Jewellery", updated, and updated, and functionality
update to a success a success works
"Diamond", message is message is correctly.
and click displayed. displayed.
"Update".
3 Reset Enter Input field is Input field is Verify reset
category input "Pearl" in cleared. cleared. NetBeans Pass functionalit
field the text y with valid
field and input.
click
"Reset".
4 Close the Click the The category The category NetBeans Pass Check if the
manage "Close" management management window
category button. window is window is closes
window closed, and closed, and correctly.
the Home the Home
Page is Page is
displayed. displayed.

Positive Test Case Example


"System successfully updates the category 'Diamond' to 'Fashion Jewellery' when the update
action is performed."
Test Scenario ID ManageCategory-1 Test Case ID ManageCategory-1B
Test Case Description Manage Category Test Priority High
– Negative test
case
Pre-Requisite Admin successfully Post - Requisite No data should be saved
logs into the system. to the database.

The category An appropriate error


management message ("All fields are
window is accessible required") should be
displayed.

The input field should


remain active for the
user to retry.

S. Action Inputs Expected Actual Test Test Text


no Output Output Brows Result Comments
er
1 Save with Leave A dialog box A dialog NetBea Pass Validate
an empty the with the box with ns that
category categor message “All the message empty
name y name fields are “All fields input is
field required” are not
empty appears. required” allowed.
and appears.
click
"Save".
2 Update Select an A dialog box A dialog NetBea Pass Ensure empty
with an existing with the box with ns input for
empty category, message “All the update shows
input leave the fields are message error.
field input required” “All fields
field appears. are
empty, required”
and click appears.
"Update"
.
3 Reset Do not No action No action NetBea Pass
without enter data occurs, and occurs, ns Verify reset
entering and click the input field and the functionality
data "Reset". remains input field when no data
blank. remains entered.
blank.

Negative Test Case Example


"System displays the error message 'All fields are required' when a category is saved with an
empty name."
2. Stock Management module
(Manage Product)
Test Scenario ID ManageProduct-1 Test Case ID ManageProduct -1A
Test Case Description Manage Product Test Priority High
– Positive test case
Pre-Requisite Admin successfully Post - Requisite 1) The newly added
logs into the system. product should be
visible in the product
The product list.
management 2) The data is
window is accessible correctly saved in the
database..

S.N Action Inputs Expected Actual Test Test Text


O Output Output Browser Resu Comments
lt
1 - Item Product is Product is NetBea Pass Ensure all
Name: successfully successfull ns fields are
"Gold saved, and a y saved, validated
Save Ring" success and a correctly.
product message is success
with Quantity: displayed. message is
valid 10 displayed.
data
Descriptio
n: "Elegant
design"

Price per
Unit: 5000
Category:
"Gold".
2 - Select Product is Product is NetBea Pass Confirm
product: successfull successfull ns the
Update "Gold database
y updated, y updated,
product Ring" reflects
and a and a
with the
success success
valid - Update updated
message is message is
data Quantity: quantity.
displayed. displayed.
20.

3 Reset - Item The input The input NetBea Pass Ensure


produc Name: field is field is ns no
t input "Silver cleared. cleared. residual
field Necklace" data
remains
- Click after
"Reset" resetting
.
4 Close Click the The The NetBea Pass Verify
the "Close" product product ns the
product button. manageme manageme home
window nt window nt window page is
is closed, is closed, properly
and the and the loaded
Home Page Home Page after
is is closing
displayed. displayed. the
window.

Positive Test Case Example


"System successfully adds the product 'Gold Earring' with a quantity of 10 and a price per
unit of 22,000."

Positive Test Case Example


"System successfully updates the product 'Gold Earring' by increasing its quantity by 2 (from
18 to 20)."
Test Scenario ID ManageProduct-1 Test Case ID ManageProduct -1B
Test Case Description Manage Product Test Priority High

– Negative test case


Pre-Requisite Admin successfully logs Post - Requisite 1) The product is not
into the system. saved in the system.

The product management 2) A dialog box with


window is accessible the message “All
fields are required”
should appear.

3) The product list


should not be updated
with the empty
product name

S.N Action Inputs Expected Actual Test Test Text


O Output Output Browser Result Comments
1 Save - Leave A Dialog A Dialog NetBean Pass Ensure
with the Item Box with Box with s field
empty Name the the validation
product field message message works
name empty. “All “All correctly
fields are fields are for missing
- Enter required” required” inputs.
valid data appears. appears.
in other
fields.

- Click
"Save".
2 Save - Enter a A A Dialog NetBean Pass Confirm that
with negative Dialog Box with s invalid
invalid quantity Box the inputs do not
quantity (e.g., -5) with the message allow data
or a non- message “Error submission.
numeric “Error saving
value . saving product.
- Click product. Incorrect
"Save" Incorrec integer
t integer value for
value for column
column 'quantity'
'quantity ” appears.
'”
appears.

3 -Enter an A A Dialog NetBean Pass Validate the


Save invalid Dialog Box with s system
with price (e.g., Box the rejects
invalid -100 or with the message invalid
price "abc"). message “Error price inputs
“Error saving and
- Click saving product. provides
"Save" product. Incorrect meaningful
Incorrec integer error
t integer value for messages.
value for column
column 'price'”
'price'” appears.
appears.
4 Update - Select an A A Dialog NetBean Pass Ensure
with existing Dialog Box with s validation
empty product. Box the works for
input - Leave all with the message updates
fields fields message “All with empty
empty. “All fields are fields.
- Click fields required”
"Update". are appears.
required

appears.

Negative Test Case Example


"System displays the error message 'Error saving product. Incorrect integer value for column
'quantity'' when invalid data is entered for the quantity field.

Negative Test Case Example


"System displays the error message 'Error saving product. Incorrect integer value for column
'price'' when invalid data is entered for the price field."
Negative Test Case Example
"System displays the error message 'All fields are required' when an existing product is
selected, all fields are left empty, and the 'Update' button is clicked."
3.Purchase Management Module
Test Scenario ID Purchase Test Case ID Purchase
Management -1 Management -1A
Test Case Purchase Test Priority High
Description Management –
Positive test case
Pre-Requisite Admin successfully Post - Requisite The order is
logs into the system. successfully
processed.
The purchase
management A PDF bill is
window is accessible generated with
correct order details
(Order ID, Date,
Total Paid).

The order is added


to the system, and
the quantity of the
product is updated in
the inventory.

S.N Action Inputs Expected Actual Test Test Text


O Output Output Brows Res Comments
er ult
1 Select a Select a valid Order Order NetBe Pass All expected
customer, customer from details details are ans actions were
product, the Customer are saved saved completed
and enter List. successf successful successfully.
quantity, ully, and ly, and a PDF was
then click Select a valid a PDF PDF bill generated
on “Add product from bill is is without
to Cart” the Product generate generated errors.
List. d with with
details details
Enter a (Order (Order
quantity. ID, Date, ID, Date,
Total Total
Click the “Add Paid). Paid).
to Cart”
button. Also, the Also, the
order order
Click the quantity quantity
“Save Order” is is
button. updated. updated.
2 Add Select a valid All All NetBe Pass Products
multiple customer from selected selected ans were
products the Customer products products added, and
to cart List. are are the
Select a valid added to added to subtotal
the cart, the cart, matched
product from
and the and the expectatio
the Product
subtotal subtotal ns.
List. is is
Click the “Add calculate calculate
to Cart” d d
button. correctly correctly
Add multiple . .
products

3 Remove Click on the The The NetBe Pass Removal


products product from product product is ans dialog
from cart the product is removed worked as
list. removed from the expected
A Dialog Box from the cart.
cart. Product
with the
message "Do was
you want to successful
remove this ly
product?" removed.
appears.
Click on
"Yes".

Positive Test Case Example


"System displays the message 'Added successfully' when a customer selects a product,
enters the quantity, and clicks on 'Add to Cart'."

Positive Test Case Example


"System generates a PDF bill with order details when a customer clicks on 'Save Order
Details'."
Positive Test Case Example
"System allows a customer to add multiple products to the cart successfully.
Test Scenario ID Purchase Test Case ID Purchase
Management -1 Management -1B
Test Case Purchase Test Priority High
Description Management –
Negative test
case
Pre-Requisite Admin successfully Post - Requisite The order is not
logs into the system. processed due to an
error message (e.g.,
The purchase "Insufficient funds"
management or "Product out of
window is accessible stock").

The system does not


add the order to the
database, and the
product quantity is
not updated.

S.N Action Inputs Expected Actual Test Test Text


O Output Output Brows Result Commen
er ts
1 Attempting Select a valid The The NetBe Pass Error
to purchase a customer. system system ans message
quantity Select a displays displays appeared
greater than product with an error an error correctly
the available limited stock message: message: when
stock for a (e.g., "Gold "Product "Product quantity
selected Ring"). is out of is out of exceede
product. Enter a stock" and stock" d
quantity displays and available
greater than the displays stock.
the available available the
stock (e.g., quantity. available
15 for a quantity.
product with
stock
quantity of
10).
Click the
“Add to
Cart” button

2 Attempting Select a valid A NetBe Pass Error


to add a customer. Dialog ans message
product Select a valid The Box appeared
without product. system with the and
specifying Leave the should message product
the quantity Quantity display an “Quanti was not
field blank. error ty Field added to
Click the message: is the cart
“Add to "Quantity required as
Cart” button. Field is ” expected
required." appears. .
The
product
should not
be added
to the cart.

3 Attempting Select a valid The A NetBe Pass Custome


to add a product. system Dialog ans r details
product to Leave the should Box were
the cart Customer display an with the required
without Name and error message to
selecting the message: “Please proceed;
Mobile
customer "Please add system
Number
details add some some worked
fields blank. products as
product
Enter a valid to cart or s to cart expected
quantity. select or select .
Click the customer." custome
“Add to The r”
Cart” button. product appears.
should not
be added
to the cart.
4 Attempting Select a valid The A Dialog NetBe Pass Both
to Add a customer. system Box with ans product
Null Product Leave the should the and
to Cart Product field display an quantity
message
Without blank. error fields
“Quantit
Selecting the message: were
Leave the y Field
Product But "Quantity required;
Quantity Field and and
Selecting the
Customer field blank. Product Product system
Name and Click the Field are Field are handled
Mobile “Add to required." required. this case
Number Cart” button. No ” correctly
product appears. .
should be
added to
the cart.

Negative Test Case Example


"System displays the error message 'Product is out of stock' along with the available quantity
when a customer attempts to purchase a quantity greater than the available stock for a
selected product."
Negative Test Case Example
"System displays the error message 'Quantity Field is required' when a customer attempts to
add a product without specifying the quantity."
Negative Test Case Example
"System displays the error message 'Please add some products to cart or select customer'
when attempting to add a product to the cart without selecting customer details."

4.Sales Management Module


Test Scenario ID Sales Management Test Case ID Sales Management
-1A
Test Case Sales Test Priority High
Description Management –
Positive test case
Pre-Requisite Admin successfully Post - Requisite
logs into the system.

The sales
management
window is accessible

S.N Action Inputs Expected Actual Test Test Text


O Output Output Browser Resu Comments
lt
1 View all 1. Open All All NetBea Pass Error
orders Sales correspondin orders of ns message
for a Managemen g orders for the appeared
selected t Module. the selected custome correctly
custome 2. Click on a customer r are when
r should be displaye quantity
valid
displayed in d. exceeded
customer
the Order available
from the List table. stock.
Customer
List table.

2 Display 1. Open The correct The NetBea Pass Error


the PDF Sales PDF bill correct ns message
bill for a Managemen should be PDF bill appeared
selected t Module. displayed for should and
order 2. Click on a the selected be product
order. displaye was not
valid order
d for the added to
from the selected the cart
Order List order. as
table.
expected
3. Verify .
that the
correspondi
ng PDF bill
is displayed.
Test Scenario ID Sales Management Test Case ID Sales Management
-1B
Test Case Description Sales Management Test Priority High
– Negative test case
Pre-Requisite Admin successfully Post - Requisite
logs into the system.

The sales
management
window is accessible

S.N Action Inputs Expected Actual Output Test Test Text


O Output Browse Resu Commen
r lt ts
1 Attempt 1. Open NetBea Pass Error
to view Sales ns message
orders Manageme The appeared
for a nt Module. The correctly
Order Order
custome 2. Click on List when
r a valid List quantity
should be should
without customer blank. exceede
selectin from the be blank. d
g any Customer available
custome List table. stock.
r `

Positive Test Case Example


Here system displays all orders and bills for a selected customer
5.Repair Management Module
Test Scenario ID Repair Test Case ID Repair
Management Management -1A
Test Case Description Repair Test Priority High
Management –
Positive test case
Pre-Requisite Admin successfully Post - Requisite The repair record is
logs into the system. successfully saved to
the database.
The repair
management The repair record is
window is accessible visible in the system
after insertion.

The relevant
product and
customer details are
linked correctly to
the repair record.

S. Action Inputs Expected Actual Test Test Text


N Output Output Brows Res Comment
O er ult s
1. Add a Product ID: A new repair NetBea Pass All details
new 1, record should The new ns entered
repair Customer be added to repair should be
record ID: 2, the repair record is stored in
table. successfully the repair
Repair Date: added to the table
2025-01-20, database correctly.
with correct
Status: values.
"Pending",

Description:
" Ring
Repair",

Cost: 100
2. Update The status of The repair NetBea Pass The repair
the Repair ID: 2, the repair status is ns status
status of New Status: should be successfully should be
a repair "Completed" updated to updated to updated as
"Completed". "Completed". per the
user input.
3. Delete a Repair ID: 3 The repair The repair NetBea Pass Deleting
repair record should record with ns the record
record be deleted Repair ID 3 is should
from the deleted remove it
system. successfully completely
from the from the
system. database.
Positive Test Case Example
"System displays the message 'Added successfully' when valid customerID, productID, repair
date, status, cost, and description are provided."

Test Scenario ID Repair Test Case ID Repair


Management Management -1B
Test Case Description Repair Test Priority High
Management –
Negative test case
Pre-Requisite Admin successfully Post - Requisite Post-Requisite:
logs into the system. The system does not
save the repair
The repair record to the
management database.
window is accessible
The user is presented
with an error
message indicating
the issue (e.g.,
missing fields,
invalid data input).

The repair record is


not visible in the
system after
attempting insertion

S. Action Inputs Expected Actual Output Test Test Text


NO Output Browser Resul Commen
t ts
1. Add a Product ID: 10 The system NetBea Pass Repair
repair , should show an ns date is
record Customer ID: error stating a
Error message
with 2, that the repair mandat
appears
missin date is ory
stating that
g Repair Date: required. field
all fields are
repair "", and
required and
date should
cannot be empty.
Status: not be
"Pending", left
empty.
Description:
"Ring Repair",

Cost: 100
2. Add a The system NetBea Pass The
Error
repair Product ID: should show ns descript
message
record 101, an error appears ion field
with Customer stating that stating should
missin ID: 202, the that all not be
g Repair description is fields empty.
descrip Date: required. are
tion "2025-01- required
20", Status: and
"Pending", cannot
be
Description empty.
: "",
Cost: 100
3. Add a Product ID: The system Error NetBean Pass Negativ
repair 101, should message s e cost
record Customer display an appears should
with ID: 202, error stating indicating not be
negativ Repair that the cost that the cost allowed
e cost Date: cannot be cannot be .
"2025-01- negative. negative.
20", Status:
"Pending",
Description
: "Screen
Repair",
Cost: -50
Negative Test Case Example
"System displays the error message 'ERROR FOR INPUT STRING' when a non-numeric
value (e.g., 'ABCDE') is entered for cost."
Negative Test Case Example
"System displays the error message 'ALL FIELDS ARE REQUIRED' when any field
(customerID, productID, repair date, status, cost, or description) is left empty."

You might also like