Professional Documents
Culture Documents
Group 2 - Health Laboratory Testing - Paper PDF
Group 2 - Health Laboratory Testing - Paper PDF
Group 2 - Health Laboratory Testing - Paper PDF
Group 2
Author:
Rei Adiel Sitohang (2020010167)
Rangga Raditya Putra Pratama (2020010089)
Class:
3SC2
Faculty:
Mr. Mhd Idham Khalif, S.Kom
2021
PROJECT ON
Health Laboratory Testing
Developed by
2
Health Laboratory Testing
3
CERTIFICATE
This is to certify that this report titled “Health Laboratory Testing” embodies the original
work done by Rei Adiel Sitohang and Rangga Raditya Putra Pratama in partial fulfillment
of their course requirement at NIIT.
Coordinator:
Mhd Idham Khalif ,S.Kom
4
ACKNOWLEDGEMENT
Authors would like to praise to Allah, Most Merciful bless and so authors can finish this
Project entitled “Health Laboratory Testing”. Author would like to thanks to Mr. Mhd Idham
Khalif, S.Kom as Lecturer who has given useful suggestion which are help author in writing
this paper.
The writer realized that this paper far from perfection, then the writer will be very
unfettered the chest and was encouraged, if colleagues and the guide's agreeing lecturer gave
the suggestion & criticism for this paper perfection.
5
SYSTEM ANALYSIS
System Summary:
Health Laboratory is a website used to help employees to manage the laboratory product
inventory so that employees don't need to check the product manually in the laboratory
storage.We can also manage our employees in this application.
6
CONFIGURATION
sssssssssss
7
TYPE OF TESTING TOOLS
• JUnit
JUnit is a unit testing framework for java. Used and writed by developer for testing a specific
area of a functionality of the code to be tested. JUnit is a testing framework for java programming
language.JUnit has been important in the development of test-driven,development,and is one of
family of unit testing framework which is collectively know as xunit that originated with sunit
• JaCoCo
JaCoCo is a free code coverage library for Java, which has been created by the EclEmma team
based on the lessons learned from using and integration existing libraries for many years. The
plugin works as a transparent additional services that colors all java files according to the unit
test coverage information.
8
TESTING IMPLEMENTATION
1. DAOLoginTest.java
2. EmployeesTest.java
10
TESTING IMPLEMENTATION
3. DAOProductTest.java
11
TESTING IMPLEMENTATION
12
TESTING IMPLEMENTATION
4. ProductTest.java
13
TESTING IMPLEMENTATION
14
TESTING IMPLEMENTATION
1. Get employees data Checks whether Not empty, Not empty, Pass
from database the length of the means that the means that the
arraylist of the data exists data exists
employees
object is empty
or not
2. Add Employees data Checks whether To index page, To index page, Pass
to database the method means that means that
returns the successfully successfully
correct value add data add data
3. Save Employees data Checks whether To index page, To index page, Pass
to database, this case the method means that means that
used for button click returns the successfully successfully
in register form correct value add data add data
5. Show product data Checks whether Not empty, Not empty, Pass
from database the length of the means that the means that the
arraylist of the data exists data exists
product object is
empty or not
6. Get product data from Checks whether Not empty, Not empty, Pass
database by product id the length of the means that the means that the
arraylist of the data exists data exists
product object is
empty or not
15
TESTING IMPLEMENTATION
No. Test Case Test Data Expected Actual Result Result
Result
7. Add product data to Input product data Not null, Not null, Pass
database correctly, after means that means that
executing the successfully successfully
method, check add data add data
whether the product
object is not null or
not
8. Delete product data Checking the Null, means Null, means Pass
from database product object after that that
executing the successfully successfully
method whether it is delete data delete data
null or not
9. Update product data Check the product Same result, Same result, Pass
from database name after the means that means that
update method is successfully successfully
run, if the results are update data update data
the same then the
test is successful
10. Get all product Checks whether the Same result, Same result, Pass
record from ArrayList length of means that means that
database, to show the Product object successfully successfully
product data in table matches the show all data show all data
expectation
11. Get product data by Checks whether the To dashboard To dashboard Pass
ID, this case used for method returns the page, means page, means
search button correct value that that
successfully successfully
search data search data
16
TESTING IMPLEMENTATION
13. Edit product data from Checks whether To dashboard To dashboard Pass
database, this case used the method page, means page, means
for update button returns the correct that that
value successfully successfully
update data update data
17
RESULT
1. DAOLoginTest.java
2. EmployeesTest.java
3. DAOProductTest.java
18
RESULT
4. ProductTest.java
19
RESULT JaCoCo
20