0% found this document useful (0 votes)
54 views10 pages

Chapter 5 Implementation and Testing

Chapter 5 discusses the implementation and testing of a project, detailing various implementation approaches, coding details, and module assignments. It outlines the testing strategies employed, including functional and performance testing, as well as unit and integration testing for the Admin and Employee modules. The chapter emphasizes the importance of tracking module completion status and the effectiveness of the system through rigorous testing methods.

Uploaded by

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

Chapter 5 Implementation and Testing

Chapter 5 discusses the implementation and testing of a project, detailing various implementation approaches, coding details, and module assignments. It outlines the testing strategies employed, including functional and performance testing, as well as unit and integration testing for the Admin and Employee modules. The chapter emphasizes the importance of tracking module completion status and the effectiveness of the system through rigorous testing methods.

Uploaded by

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

Chapter 5 Implementation and Testing

5.1 Implementation Approaches

Sr. No. Implementation Plan Action


1. Module List of Project Modules
2. Percentage Completed List the Percentage of each
module completed.
1. Status Module status such as:
Completed, On Schedule, Behind Schedule, Cancelled
2. Day Started Date module begun 5. Day to be Completed Estimated date of
module
completion.
6. Actual Completion Date Date modu le was
completed.
7. Module Assignment Name of Module Owner
8. Importance of Module Module Priority such as:
High, Medium or Low

Sensitivity Label: General


5.2 Coding Details and Code Efficiency:
LOGIN PAGE
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Login_Model
extends CI_Model{ public function construct(){ parent:: construct();
}

public function userExist($email, $password){


$this->db->select('*');
$this->db->from('users');
$this->db->where('user_email =', $email);
$this->db->where('user_password =', $password);
$result = $this->db->get();

if ($result->num_rows() > 0) { return $result-


>row();
}
}
}
?>

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>

Sensitivity Label: General


ASSIGN TASK
<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>

</tbody>
</table>
</div>

Sensitivity Label: General


ADD EMPLOYEE

<div class="box-header with-border">


<h3 class="box-title">Add Employee</h3>
</div>
<?php echo form_open('User/adduser'); ?>
<div class="box-body">
<?php $msg = $this->session->flashdata('message'); if(! empty($msg)): ?>
<div class="alert alert-dismissible alert-success">
<?php echo $msg; ?> </div> <?php endif; ?>
<div class="form-group">
<label for="user_name">Employee Name</label>
<?php echo form_input(['name' => 'user_name', 'class' => 'form-control',
'id' => 'user_name', 'placeholder' => 'Enter Employee Name']); ?>
<?php echo form_error('user_name', '<div class="text-danger">', '</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']);
?>

<?php echo form_error('user_image', '<div class="text-danger">', '</div>');

Sensitivity Label: General


?>

</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');
}

public function index(){


$data = null;
$data['get_all_user'] = $this->User_Model->getAllUser($data);
$data['get_all_senior'] = $this->User_Model->getAllSenior($data);
$data['content_view'] = 'Dashboard/dashboard-view';
$data['countEmployees'] = $this->User_Model->countEmployees();
$data['countTasks'] = $this->ToDo_Model->countTasks();
$data['countTasksDone'] = $this->ToDo_Model->countTasksDone();
$data['countTasksPending'] = $this->ToDo_Model->countTasksPending();
$data['countTasksAssigned'] = $this->ToDo_Model->countTasksAssigned();
$this->templates->admin($data);
}
}
?>

Sensitivity Label: General


ASSIGN TASK
<h3 class="text-center bg-primary" style="padding: 7px;">Task Details </h3><br>

<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">

Sensitivity Label: General


<div class="form-group">
<label class="control-label col-sm-5">Task Title</label>
<div class="col-sm-7">
<input type="text" placeholder="Task Title" id="task_title" name="task_title" list="expense"
class="form-control" value="<?php echo $row['t_title']; ?>"
<?php if($user_role != 1){ ?> readonly <?php } ?> val required>
</div> </div>
<div class="form-group">
<label class="control-label col-sm-5">Task
Description</label>
<div class="col-sm-7">
<textarea name="task_description" id="task_description" placeholder="Text Deskcription" class="form-
control" rows="5" cols="5"><?php echo
$row['t_description']; ?></textarea>
</div> </div>
<div class="form-group">
<label class="control-label col-sm-5">Strat Time</label>
<div class="col-sm-7">
<input type="text" name="t_start_time" id="t_start_time" class="form-control" value="<?php echo
$row['t_start_time']; ?>">
</div> </div>
<div class="form-group">
<label class="control-label col-sm-5">End Time</label>
<div class="col-sm-7">
<input type="text" name="t_end_time" id="t_end_time" class="form-control" value="<?php echo
$row['t_end_time']; ?>">
</div> </div>

<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>

<?php while($rows = $info->fetch(PDO::FETCH_ASSOC)){ ?> <option value="<?php


echo $rows['user_id']; ?>" <?php if($rows['user_id'] == $row['t_user_id']){
?> selected <?php } ?>><?php echo $rows['fullname']; ?
></option>
<?php } ?>
</select>
</div>

Sensitivity Label: General


5.3 Testing approaches

The testing approaches which we used are:

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.

Performance Testing Techniques

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.

Sensitivity Label: General


5.3.1 Unit Testing

THE MAIN MODULES ARE


1. ADMIN MODULE 2. EMPLOYEE MODULE

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

5.3.2 Integration Testing

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.

Sensitivity Label: General


sk gets unsubmitted. The adm

Sensitivity Label: General

You might also like