Chapter 5 Implementation and Testing
Chapter 5 Implementation and Testing
EMPLOYEE VIEW
<ulclass="sidebar-menu" data-widget="tree">
<li class="treeview">
<a href="#">
<i class="fa fa-users"></i> <span>Employee Section</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li class=""><a href="<?php echo
base_url('User/addUserPage'); ?>"><i class="fa fa-circle-o"></i> Add
Employee </a></li>
<li class=""><a href="<?php echo
base_url('User/viewUserPage'); ?>"><i class="fa fa-circle-o"></i>
View All Employee </a></li>
</ul>
</li>
<div class="table-responsive">
<table class="table table-bordered table-single-product">
<tbody>
<tr>
<td>Task Title</td><td><?php echo $row['t_title']; ?
></td>
</tr>
<tr>
<td>Description</td><td><?php echo $row['t_description']; ?></td>
</tr>
<tr>
<td>Start Time</td><td><?php echo $row['t_start_time']; ?></td>
</tr>
<tr>
<td>End Time</td><td><?php echo $row['t_end_time']; ?
></td>
</tr>
<tr>
<td>Assign To</td><td><?php echo $row['fullname']; ?
></td>
</tr>
<tr>
<td>Status</td><td><?php if($row['status'] == 1){ echo "In
Progress";
}elseif($row['status'] == 2)
{ echo "Completed";
}else{ echo "Incomplete";
} ?></td>
</tr>
</tbody>
</table>
</div>
</div> </div>
<div class="box-body">
<div class="form-group">
<label for="user_role">Employee Role</label>
<?php echo form_input(['name' => 'user_role', 'class' => 'form-control',
'id' => 'user_role', 'placeholder' => 'Enter Employee Role']); ?>
<?php echo form_error('user_role', '<div class="text-danger">', '</div>');
?> </div> </div>
<div class="box-body">
<div class="form-group">
<label for="user_email">Email address</label>
<?php echo form_input(['type' => 'email', 'name' => 'user_email', 'class'
=> 'form-control', 'id' => 'user_email', 'placeholder' => 'Enter Employee Email']); ?>
<?php echo form_error('user_email', '<div class="text-danger">', '</div>');
?> </div> </div>
<div class="box-body">
<div class="form-group">
<label for="user_password">Password</label>
<?php echo form_password(['name' => 'user_password', 'class' => 'formcontrol', 'id' => 'user_password',
'placeholder' => 'Enter Employee Password']); ?>
<?php echo form_error('user_password', '<div class="text-danger">',
'</div>'); ?>
</div>
</div>
<div class="box-body">
<div class="form-group">
<label for="user_password">Image</label>
<?php echo form_input(['name' => 'user_image', 'type' => 'file', 'class' =>
'form-control', 'id' => 'user_image', 'placeholder' => 'Upload user image']);
?>
</div> </div>
</div>
<div class="box-footer">
<?php echo form_submit('', 'Add Employee', ['class' => 'btn btn-primary' ]);
?> </div>
<?php echo form_close(); ?>
</div> </div> </div> </section>
DASHBOARD
?php class Dashboard extends MY_Controller{
public function construct(){
parent:: construct();
$this->load->model('User/User_Model'); $this->load->model('ToDo/ToDo_Model');
}
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-bordered table-single-product">
<tbody>
<tr>
<td>Task Title</td><td><?php echo $row['t_title']; ?></td>
</tr>
<tr>
<td>Description</td><td><?php echo $row['t_description']; ?></td>
</tr>
<tr>
<td>Start Time</td><td><?php echo $row['t_start_time']; ?></td>
</tr>
<tr>
<td>End Time</td><td><?php echo $row['t_end_time']; ?></td>
</tr>
<tr>
<td>Assign To</td><td><?php echo $row['fullname']; ?></td>
</tr>
<tr>
<td>Status</td><td><?php if($row['status'] == 1){ echo "In
Progress";
}elseif($row['status'] == 2)
{ echo "Completed";
}else{ echo "Incomplete";
} ?></td>
</tr>
</tbod
EDIT TASK
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="well">
<h3 class="text-center bg-primary" style="padding: 7px;">Edit Task </h3><br>
<div class="row">
<div class="col-md-12">
<form class="form-horizontal" role="form" action="" method="post" autocomplete="off">
<div class="form-group">
<label class="control-label col-sm-5">Assign To</label>
<div class="col-sm-7">
<?php
$sql = "SELECT user_id, fullname FROM tbl_admin WHERE user_role = 2";
$info = $obj_admin->manage_all_info($sql);
?>
<select class="form-control" name="assign_to" id="aassign_to" <?php if($user_role !=
1){ ?> disabled="true" <?php } ?>> <option value="">Select</option>
Functional Testing
FUNCTIONAL TESTING : It is a type of testing that validates the system against the functional
requirements/specifications. The purpose of Functional tests is to test each function of the application, by
providing appropriate input, verifying the output against the Functional requirements. Functional testing
mainly involves black box testing, and it is not concerned about the source code of the application. This
testing checks User Interface, APIs, Database, Security, Client/Server communication and other functionality
of the Application Under Test. The testing can be done either manually or using automation.
Performance Testing
Performance testing, a non-functional testing technique performed to determine the system parameters in
terms of responsiveness and stability under various workload. Performance testing measures the quality
attributes of the system, such as scalability, reliability and resource usage.
Load testing - It is the simplest form of testing conducted to understand the behavior of the system under a
specific load. Load testing will result in measuring important business critical transactions and load on the
database, application server, etc., are also monitored.
Stress testing - It is performed to find the upper limit capacity of the system and to determine how the
system performs if the current load goes well above the expected maximum.
ADMIN MODULE :
In Unit testing we first performed the testing on the Admin module. All the units of
Admin Module has been tested Individually. Admin models include units like creating task for employee ,
Editing task, Viewing Login and Log out time, Editing Admin/Employee Credentials. Assigning task for
employee. Able to edit task after assigning
EMPLOYEE MODULE
Later we performed the testing of the Employee Module. Edit all the units of employee Module has
been tested individually. Employee module includes units like creating task for self, Viewing task assigned by
the admin. Completing the task, Viewing To do Task and checked whether it is performing as per our
requirement
For each unit of all the Module like admin and Employee has firstly tested unit wise and
after completing the unit testing, we have combined the units of each module and then
integrated it and checked the output that whether it is performing as per the requirement.