Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. Administrator module
This module deals with the Question paper importing, Student list importing, Student
userid and password generation, Report generation, User blocking and Unblocking and
taking the backup.
2. Student Module
This module deals with the student logging into the system and taking the exam.
INDEX
1. INTRODUCTION
2. REQUIREMNETS
3. DESIGN
5 SCREEN SHOTS
7. BIBLIOGRAPHY
INTRODUCTION
i. Students.
ii. Administrator.
The student can login into the system with the userid given to him by the
administrator to take up the exam. He is provided with the question and choices through
which he can select the answers for each question. He is able to move back to the
previous question and can change the previously selected answers.
The administrator can import the question paper, import the student list and
generate the userid & password, generate the reports and take printouts. Administrator
can generate the marks report of the particular user. Administrator can generate the rules
& instructions for each exam.The administrator can also set the time for each
examination. Administrator is able to take the backup of the question paper and also the
details of the student
REQUIREMNETS
Modules
1. Student
2. Administrator
1. Student
1.1 Login
1.2 Post Login
1.3 Instruction
1.4 Examination
1.5 Completion
1.1Login
1.1.1 In login page student have to use the login which was given before
exam and generated by administrator.
1.1.4 If student enters wrong userid then in such case a message will
displayed- userid is invalid.
1.1.5 If student login successfully then post login page will displayed
1.2 Post login
1.2.1 User information page will be displayed where Following
information will be displayed
A) Name of the student
B) Roll number of student
C) Course name
1.2.1 After info page there will be exam specific information/ instruction
page.
1.3 Instruction
1.3.1 In this scenario all instruction about the exam will be displayed to
user.
1.3.1 In admin instruction all the info given by the admin will be shown.
The information of admin saves in a file (instruction.info) and it
contain instruction about the exam like number of questions, time,
negative marking etc.
1.3.2 Admin info will be loaded from that file by the admin.
1.4 Examination
1.4.1 First region is header region where name of the exam and institute
name etc information will be displayed.
1.4.2 In right top corner region, there will be a timer which show the
remaining time of exam
1.4.3 Second region contain the question and options. Each question has
four choices. There are checkboxes for each choice,checking the
checkbox selects the answer for that question.
1.4.4 In third region there will be just like a status bar where the
information related to paper will be displayed like number of
questions , total answered questions, unread questions etc. Which
help user to find his/her status.
1.4.6 user clicks on the next button to get the next question
1.4.7 user clicks on the submit button to save the answer and move to
the next question
1.4.8 A quit button is provided for the user to end his exam
1.5 completion
1.5.2 Once given the exam he is not able to login again using that id and
password as that id will be blocked after that.
2. Administrator
2.1 Examination Section
2.2 Report Scenario
2.3 backup scenario
2.4 settings scenario
2.1 Examination
2.2.1.1 the student list format should be in the CSV format (Comma
separated values).
2.2.1.2 The .csv file contains three columns they are student name,rollno
and the course name.the roll no is unique for each student.
2.1.2.2 Once uploaded paper will be save in database. After that when
exam or test will start they will be loaded automatically.
2.1.3.1 Admin can set the time duration of the exam,set the
marks/question,set the neagative marking for each question ,set the
exam name .
2.1.3.2 All the rules related to exam are saved in the file
(admininstuction.iif).
2.1.3.3 These rules will be shown to user, before the start up of the exam
Example: ‘DAC2003’
2.1.3.3 Password also randomized from selected range and after selecting
the number it will be converted into hex code and that will be
password for that particular userid.
Example: like the number range is 50000 to 100000 . and selected
number is 63577. Then in such case password will be ‘E445’ as
this code is hex code of selected number.
2.1.4.1 admin can unblock the users before the exam starts
2.2 Report
2.2.1 Question Paper print
2.2.2 Complete mark sheet of particular course
2.2.3 Mark sheet of individual student.
2.2.4 Userid and password list
2.2.5 Show instructions
2.2.3 – Mark sheet of individual student by taking the roll number of the
student
2.2.5 displays the instruction generated by the admin for the particular
exam
2.3 backup
2.3.1 In this scenario backup of the question paper is taken and the student list and
also the answers by the student and stored in the master table and the
generated userid and password are blocked
DESIGN
Class Design
SET-GET METHODS..
Class Diagram
E-R Diagaram
userid
userid courseName
lls
enro
Student Admin
k n
ta co uct
es d
s
Exam
exami questionpape
studentmap
d r
Interface Design.
There are only two major interfaces used in the project they are
1) businesslogic layer interface is present between the business logic layer and the
presentation layer
<<interface>>
BusinessLogicInterface
Login table
Userid password Rollno status
varchar varchar number varchar
FK
Student table
RollNO: Roll No. of the student used to uniquely identify the student and is made as
primary key of the Student table.
Name:It holds the Student Name.
Marks:Marks field hold the marks of the student.
Question Table
Qid Question CH1 CH2 CH3 CH4 Ans
Number Varchar Varchar Varchar Varchar Varchar Number
PK
CH1:This filed contains the first Option for the corresponding Question
CH2:This filed contains the second Option for the corresponding Question
CH3:This filed contains the third Option for the corresponding Question
CH4:This filed contains the fourth Option for the corresponding Question
Ans: CH1:This filed contains the Answer for the corresponding Question
MasterData Table
DummyStudent table
Rollno Name Paperset Marks
Number varchar Varchar Number
PK
TESTING
what is testing?
why testing?
• Detect programming errors:- Even though we have best developers
developing the product still there may be flaws somewhere due to
misconception, due to lack of understanding in integrating modules of 2
great developers. Most of the time developers think that their code is
perfect, it cannot have bugs and that’s where the problem is. They think
that finding bugs in their code means that some one is proving them
inefficient. Hence we test code not to prove a developer inefficient but to
find bug in code not in developer.
• Testing at earlier stage is much cheaper than testing at later stage.
• If Client find bugs which were uncovered earlier then we loses credibility
and may lose business as well.
• There are several functionality related that occur in real life scenarios
related only so while testing at customer site during beta testing we can
uncover these defects there and then.
• To release a bug free product seems to be a dream yet to be fulfilled,
hence it is a real challenge to release a product that is bug-free.
TESTCASES
ADMIN TESTCASES
Database is similar to a data file in that it is a storage place for data like a data,
database not present information directly to a user. The user runs an application that accesses data
from the database and presents it to the user in an understandable format.
Database system is more powerful than data files. The data is more highly organized, in a
well designed database, there are no duplicate pieces of data that the user or application
has to be update at the same time. Related pieces of data are grouped together in a single
structure or record, and relationship can be defined pieces of data are grouped together in
a single structure or record & relationships can be defined between there structures &
record.
When working with data files an application must be coded to work with the specific structure of
each data file. In contrast each database contains a catalog that applications use to determine how
data is organized generic database application can use that catalog to present user with the data
from different database dynamically without being tied to a specific data format.
A database typically has two components the file holding the physical database and the database
management system (DBMS) software that application use to access data, The DBMS is
responsible for enforcing the database structure including-
• Ensuring that data is stored correctly & that the rule defining data relationship is not
violated.
• Recovering all data to point of unknown consistency in case of the system failures.
MySQL is currently the most popular open source database server in existence
JAVA EE 5, JSP, TOMCAT
JAVA EE 5
Java EE 5 is a strong, significant release, making it the most complete platform for
enterprise development.
JSP
A JSP page is a text document that contains two types of text: static data, which can be
expressed in any text-based format (such as HTML, SVG, WML, and XML), and JSP
elements, which construct dynamic content.
The recommended file extension for the source file of a JSP page is .jsp. The page can
be composed of a top file that includes other files that contain either a complete JSP page
or a fragment of a JSP pageThe JSP elements in a JSP page can be expressed in two
syntaxes, standard and XML, though any given file can use only one syntax. A JSP page
in XML syntax is an XML document and can be manipulated by tools and APIs for XML
documents
JavaServer Pages (JSP) technology allows you to easily create web content that has both
static and dynamic components. JSP technology makes available all the dynamic
capabilities of Java Servlet technology but provides a more natural approach to creating
static content.
A language for developing JSP pages, which are text-based documents that describe how
to process a request and construct a response.An expression language for accessing server-
side objects.Mechanisms for defining extensions to the JSP language
Java Servlet Technology
A servlet is a Java programming language class that is used to extend the capabilities of
servers that host applications accessed by means of a request-response programming
model. Although servlets can respond to any type of request, they are commonly used to
extend the applications hosted by web servers. For such applications, Java Servlet
technology defines HTTP-specific servlet classes.
The life cycle of a servlet is controlled by the container in which the servlet has been
deployed. When a request is mapped to a servlet, the container performs the following
steps.
If the container needs to remove the servlet, it finalizes the servlet by calling the servlet’s
destroy method.
We can monitor and react to events in a servlet’s life cycle by defining listener objects
whose methods get invoked when life-cycle events occur. To use these listener objects
you must define and specify the listener class.
Model–view–controller
The model is used to manage information and notify observers when that information
changes. The model is the domain-specific representation of the data upon which the
application operates. Domain logic adds meaning to raw data (for example, calculating
whether today is the user's birthday, or the totals, taxes, and shipping charges for
shopping cart items). When a model changes its state, it notifies its associated views so
they can be refreshed.
Many applications use a persistent storage mechanism such as a database to store data.
MVC does not specifically mention the data access layer because it is understood to be
underneath or encapsulated by the model. Models are not data access objects; however, in
very simple apps that have little domain logic there is no real distinction to be made.
Active Record is an accepted design pattern which merges domain logic and data access
code - a model which knows how to persist itself.
The view renders the model into a form suitable for interaction, typically a user interface
element. Multiple views can exist for a single model for different purposes. A viewport
typically has a one to one correspondence with a display surface and knows how to
render to it.
The controller receives input and initiates a response by making calls on model objects.
A controller accepts input from the user and instructs the model and viewport to perform
actions based on that input.
Simple Version implementing Java Servlets and JavaServer Pages from Java EE:
Model
The model is a collection of Java classes that form a software application intended
to store, and optionally separate, data. A single front end class that can
communicate with any user interface (for example: a console, a graphical user
interface, or a web application).
View
The view is represented by a JavaServer Page, with data being transported to the
page in the HttpServletRequest or HttpSession.
Controller
The Controller servlet communicates with the front end of the model and loads
the HttpServletRequest or HttpSession with appropriate data, before forwarding
the HttpServletRequest and Response to the JSP using a RequestDispatcher.
The Servlet is a Java class, and it communicates and interacts with the model but does not
need to generate HTML or XHTML output; the JSPs do not have to communicate with
the model because the Servlet provides them with the information—they can concentrate
on creating output.
TOMCAT:
Apache Tomcat (or Jakarta Tomcat or simply Tomcat) is an open source servlet
container developed by the Apache Software Foundation (ASF). Tomcat implements the
Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and
provides a "pure Java" HTTP web server environment for Java code to run.
Tomcat should not be confused with the Apache web server, which is a C implementation
of an HTTP web server; these two web servers are not bundled together. Apache Tomcat
includes tools for configuration and management, but can also be configured by editing
XML configuration files.