LP-II (Software Testing and Quality Assurance) : Mini Project 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

LP-II (Software Testing and Quality Assurance)

Mini Project 1

Team Members: Riya Disawal (41414)


Ritika Deshpande (41412)

Date of Completion: 2nd December 2020

Mini Project 1: Create a Medical Healthcare System / relevant system by selecting relevant
system environment / platform and programming languages. Narrate concise Test Plan consisting
features to be tested and bug taxonomy. Prepare Test Cases inclusive of Test Procedures for
identified Test Scenarios. Perform selective Black-box and White-box testing covering Unit and
Integration test by using suitable Testing tools. Prepare Test Reports based on Test Pass / Fail
Criteria and judge the acceptance of application developed.

Our Project:

Laptop Shoppee: A desktop app used to order laptops , using Java, NetBeans, MySQL JDBC.
Testing done using JUnit and TestNG.

Test Environment: Laptop Shoppee Application will be loaded on devices with a MySQL database
server. Development done on NetBeans 8.2, JDK 1.8, JUnit4, TestNG. An Ubuntu 18.04
environment.

A. Features To Be Tested

1. Exploratory (Black Box Testing): The purpose of this test is to make sure critical defects
are removed before the next levels of testing can start.

2. Functional Test (White Box Testing): Functional testing will be performed to check the
functions of the application. The input is fed and the output from the application is
validated.

3. User Acceptance Test (Integration Testing): This test focuses on validating the business
logic. It allows the end user to complete one final review of the system prior to deployment.
Test Case ID Test Case Name Objective Description Expected Result
Unit Test 1 LoginTest To check the login Junit equals for AssertEquals true if
functionality of the test data and data exists, else false.
the application. the data in the user AssertFalse returns
database. true if data cannot be
matched.
Unit Test 2 Registration Test To check the Junit assertEquals SQL returns 1 if
registration for the test data insertion and Junit
functionality of and the successful assertEquals true.
the application. registration of user
in the database.
Unit Test 3 FailCalculation To check the false Run false JUnit Test case fails as
Test assertion for the assertEquals to assertion return false.
bill calculation test negative test
function. case.
Unit Test 4 Calculation Test To check the Run test to assert AssertionEquals true
correct /equal the equality of test and test case is passed.
assertion for the input and output
bill calculation with the actual
function. functions results.
Unit Test 5 Timeout Test To test the Run test with Junit Returns true if test
function for timeout executed within time
different timeouts. specifications. limit mentioned.
TestSuite1 Demo TestSuite Test Suite which Run all the tests Most of the test cases
runs all the test for (>85%) passed.
cases with the first iteration.
FailCalculationTes
t and False
Timeout Tests.
TestSuite2 Final TestSuite Test Suite which Remove bugs in Reach up to 95-99%
runs all the test tests and re-run all accuracy in TestNG
cases in the tests in suite. Test report.
second round of
iteration after
removing bugs.
Black Box Test 1 Navigability To check manual Check usefulness Click action performs
navigation and functionality desired results,
through the of buttons and opening required
application navigations. JFrames.
modules.
Black Box Test 2 Error Messages To check for the Input wrong data Display of valid error
proper display of and check for the messages.
error messages. error messages
and pop ups
displayed.
Black Box Test 3 User Access To provide secure User should not be Returns error message
Details data access. able to update or in JoptionPane pop up
delete other user’s if tried to access other
data. user data.
Black Box Test 4 GUI Testing To check the Check working of Swing components
working of radio button work as expected.
various Swing groups click
components. buttons and
display of lists.
Black Box Test 5 Integration User To run through the Application Application works
Acceptance whole should satisfactorily.
Testing project and check work without any
all the errors and glitches
functionalities.

B. Bug Taxonomy

Risk Probability Impact Mitigation Plan


Data Bugs High High • Delete current user specific cookie
User sensitive data loss. data after logout
• User should be able to update only
his/her data.
Functionality Bugs Medium High • C010heck the connection to the
Buttons fail to access database.
proper • Ensure proper functional working
data. through unit tests.
Coding Bugs Medium Critical Ensure proper JDBC connectors

Database connection are present and
failure. database login details are
accurate.
Interface Bugs Low Low • Make UI constant so it looks the
Faulty GUI and same on
navigations. different devices.
• Display of proper error messages.
• Check Swing component’s event
action listener code.
Integration and System Medium Medium • Install required JDK version 1.8,
Bugs JDBC connector.
Improper system setup.
Test and Test Design Bugs Medium Medium • Test and Test Design Bugs
Unsuccessful testing of • Unsuccessful testing of
functionalities. functionalities.

Non-availability of • Due to non availability of the


Independent Test environment, the schedule gets
environment. impacted and will lead to delayed
start of Test execution.
Delayed testing due to new Medium High • During testing, there is a good
issues. chance that someb“new” defects
may be identified and may become
an issue that will take time to
resolve.
• These are defects that can be
raised during testing because of
unclear document
specification.
• These defects can yield to an issue
that will need time to be resolved.
• If these issues
becomeshowstoppers, it will
greatly impact the overall project
schedule.
• If new defects are discovered, the
defect management procedures are
in place to immediately provide a
resolution
C. Execution Strategy
1. Entry and Exit Criteria

• The entry criteria refers to the desirable conditions under which the test
execution may begin; only the migration of the code and fixes need to be
assessed at the end of each cycle. Completely functional Java NetBeans Project
with Database Connectivity.

• The exit criteria refers to the desirable conditions that need to be met in order
to proceed with the implementation. Test Report successfully captured with
atleast 85% test cases passed, and no major defect.

2. Test Cycles

• There will be two cycles for functional testing. Each cycle will execute all the
scripts.
• The objective of the first cycle is to identify and backlog, critical defects, and
most of the
high level defects. It is expected to use some work-around in order to get all
the scripts.
• The objective of the second cycle is to identify remaining high and medium
defects, remove the work-around from the first cycle, correct gaps in the
scripts and obtain performance results.
• UAT Test will consist of one cycle.

3. Validation and Defect Management

• Assuming that all scripts are executed in each of the cycles described above,
additional testing may be done if there is a gap found in the scripts.
• Check the bug taxonomy, identify the reasons for failure. Focus on the
frequently occuring bugs and create tests for them.

4. Test Management Process

• JUnit4 is used for Unit Testing – to test individual functionalities.


• TestNG is used to capture the report generated after running the Test Suite in
NetBeans.
Directory Structure

Unit Testing
Test Suite – Running all Unit Tests together (White Box Testing)

You might also like