STQA Mini Project
STQA Mini Project
Mini Project
(2019 Course)
Project Title
Dynamic website of covid-19 information using HTML, CSS, JAVASCRIPT and PHP,
MySQL database used to store user account, comment, and registration form details. Regular
Expression testcases for testing purpose.
Team Members
1
Software Testing and Quality Assurance
TITLE
Dynamic website of covid-19 information using HTML, CSS, JAVASCRIPT and PHP, MySQL database
used to store user account, comment, and registration form details. Regular Expression testcases for testing
purpose.
THEORY
Introduction
As the COVID-19 crisis endures and the virus continues to spread globally, the need for collecting
epidemiological data and patient information also grows exponentially. The race against the clock to find a cure
and a vaccine to the disease means researchers require storage of increasingly large and diverse types of
information; for doctors following patients, recording symptoms and reactions to treatments, the need for
storage flexibility is only surpassed by the necessity of storage security. The volume, variety, and variability of
COVID- 19 patient data requires storage in database management systems.
Software requirements
Modules
It has two modules
1. Admin
2. User(Patients)
1. Admin Module
Admin is the superuser of the website who can manage everything on the website. Admin can log in through
the login page
Dashboard: In this section, the admin can see all detail in brief like the total, assigned and the sample
collected and completed tests.
Phlebotomist: In this section, the admin can manage Phlebotomist (add, update, delete).
Testing: In this section, the admin can manage all the tests like assign the test to Phlebotomist and update
the history.
Report: In this section, the admin can generate two types of report. One is between dates reports and another
one is by search. Admin can search the report by order number, name and mobile number.
Notification: In this section, the admin will get a notification for every new test request (notification bell).
Admin can also update his profile, change the password and recover the password.
2
Software Testing and Quality Assurance
2. User(Patient) Module
Code
a. index.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Covid-19 Testing Management System</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/scrolling-nav.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="#page-top">Covid19-TMS</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#about">About Coronavirus </a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#services">Covid-19 Symptoms</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#contact">Prevention</a>
</li>
<li class="nav-item active">
<a class="nav-link js-scroll-trigger" href="new-user-testing.php">Testing</a>
3
Software Testing and Quality Assurance
</li>
<li class="nav-item active">
<a class="nav-link js-scroll-trigger" href="live-test-updates.php">Live Updates</a>
</li>
<li class="nav-item active">
<a class="nav-link js-scroll-trigger" href="login.php">Admin</a>
</li>
</ul>
</div>
</div>
</nav>
<section id="about">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto">
<h2>About this page</h2>
<p class="lead">Coronavirus disease (COVID-19) is an infectious disease caused by a newly
discovered coronavirus. Most people infected with the COVID-19, virus will experience mild to moderate,
respiratory illness & recover without requiring special treatment. Older people and those with underlying
medical problem like cardiovascular disease.</p>
<p class="lead">The COVID-19 virus spread primarily through droplet of saliva or discharge from the
nose when an infected person coughs or sneezes so it’s important that you also practice respiratory
etiquette.</p>
</div>
</div>
</div>
</section>
4
Software Testing and Quality Assurance
</div>
</section>
<section id="contact">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto">
<h2>Prevention</h2>
<ul>
<li>Wash your Hands often</li>
<li>Wear A Face mask</li>
<li>Avoid contact with sick people</li>
<li>Always cover your cough or sneeze</li>
</ul>
</div>
</div>
</div>
</section>
</body>
</html>
b. dashboard.php
<?php
session_start(
);
include_once('includes/
config.php'); if
(strlen($_SESSION['aid']==0)) {
header('location:logout.php');
} else{
?>
5
Software Testing and Quality Assurance
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Covid-Tms | Dashboard</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?
family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,80 0i,900,900i"
rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php');?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/topbar.php');?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
<a href="bwdates-report-ds.php" class="d-none d-sm-inline-block btn btn-sm btn-primary
shadow-sm"><i
class="fas fa-download fa-sm text-white-50"></i> Generate Report</a>
</div>
<!-- Content Row -->
<div class="row">
<?php
//Total tests
$query=mysqli_query($con,"select id from tbltestrecord");
$totaltest=mysqli_num_rows($query);
//Assigned tests
$query1=mysqli_query($con,"select id from tbltestrecord where ReportStatus='Assigned'");
$totalassigned=mysqli_num_rows($query1);
//On the way for sample collection
$query2=mysqli_query($con,"select id from tbltestrecord where ReportStatus='On the Way for Collection'");
$totalontheway=mysqli_num_rows($query2);
//Sample Collected
6
Software Testing and Quality Assurance
//Report Delivered
$query5=mysqli_query($con,"select id from tbltestrecord where ReportStatus='Delivered'");
$totaldelivered=mysqli_num_rows($query5);
7
Software Testing and Quality Assurance
</div>
</div>
</div>
<div class="col-auto">
<i class="fas fa-motorcycle fa-2x text-gray-300"></i>
</div>
</div>
</div>
</a>
</div>
</div>
8
Software Testing and Quality Assurance
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-auto">
<i class="fas fa-clipboard-list fa-2x text-gray-300"></i>
</div>
</div>
</div>
</a>
9
Software Testing and Quality Assurance
</div>
</div>
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="col-auto">
<i class="fas fa-user-nurse fa-2x text-gray-300"></i>
</div>
</div>
</div>
</a>
</div>
</div>
</div>
1
Software Testing and Quality Assurance
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
</body>
</html>
<?php } ?>
Database
covidtmsdb.sql
SET SQL_MODE =
"NO_AUTO_VALUE_ON_ZERO"; SET
AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
1
Software Testing and Quality Assurance
--
-- Database: `covidtmsdb`
--
--
--
-- Table structure for table `tbladmin`
--
--
-- Dumping data for table `tbladmin`
--
--
-- Table structure for table `tblpatients`
--
--
1
Software Testing and Quality Assurance
--
-- Table structure for table `tblphlebotomist`
--
--
-- Dumping data for table `tblphlebotomist`
--
INSERT INTO `tblphlebotomist` (`id`, `EmpID`, `FullName`, `MobileNumber`, `RegDate`) VALUES
(3, '12587493', 'Amit Singh', 9876543212, '2021-05-03 04:51:44'),
(4, '105202365', 'Rahul', 8529631470, '2021-05-03 04:52:06'),
(5, '10802364', 'Sanjeev Tomar', 1234567890, '2021-05-08 09:34:11');
--
-- Table structure for table `tblreporttracking`
--
1
Software Testing and Quality Assurance
--
-- Dumping data for table `tblreporttracking`
--
--
-- Table structure for table `tbltestrecord`
--
--
-- Dumping data for table `tbltestrecord`
--
1
Software Testing and Quality Assurance
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tbladmin`
--
ALTER TABLE `tbladmin`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `tblpatients`
--
ALTER TABLE `tblpatients`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tblphlebotomist`
--
ALTER TABLE `tblphlebotomist`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tblreporttracking`
--
ALTER TABLE `tblreporttracking`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbltestrecord`
--
ALTER TABLE `tbltestrecord`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
1
Software Testing and Quality Assurance
--
-- AUTO_INCREMENT for table `tblpatients`
--
ALTER TABLE `tblpatients`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `tblphlebotomist`
--
ALTER TABLE `tblphlebotomist`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `tblreporttracking`
--
ALTER TABLE `tblreporttracking`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `tbltestrecord`
--
ALTER TABLE `tbltestrecord`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=8; COMMIT;
1
Software Testing and Quality Assurance
Output
b. admin Dashboard
1
Software Testing and Quality Assurance
c. Test Details
d. State-wise Dashboard
1
Software Testing and Quality Assurance
CONCLUSION
Thus, we successfully implemented a dynamic website of covid-19 information using HTML, CSS,
JAVASCRIPT and PHP, in which MySQL database used to store user account, comment, and registration form
details. This project is divided into two parts. One is for new user and another one is for registered user. New
user (First-time user) needs to provide personal and testing Information. A registered user only needs to provide
test information, their personal information will be fetched from the database.