Sei sulla pagina 1di 30

ASSIGNMENT FRONT SHEET <No.

3>
Qualification

BTEC HND Diploma in Computing and Systems Development

Unit number and

Unit 41: Programming in Java

title
Assignment due

Assignment submitted

Learners name

Assessor name

Learner declaration:
I certify that the work submitted for this assignment is my own and research sources are fully acknowledged.
Learner signature

Date

Grading grid
P4.

P4.

P4.

P4.

P4.

M3

D1

D2

D3

Assignment title

Research Proposal

In this assignment, you will have opportunities to provide evidence against the following criteria.
Indicate the page numbers where the evidence can be found.

Assessment criteria

Expected evidence

Task
no.

LO4. Be able to test and document Java solutions

4.1 critically review

Produce a test plan and execute

and test a Java

it.

programming solution
4.2 analyse actual test
results against
expected results to
identify discrepancies

Give a conclusion after


conducting a test plan. Show the
percentage of the tests run
correctly or incorrectly.

4.3 evaluate

Produce questionnaires for

independent feedback

colleagues to independently

on a developed Java

test your program. Analysis of


the feedback from the
2

Assessors Feedback

4.4 create user


documentation for the
developed Java
4.5 create technical
documentation for the
support and

The program should include user


manual.

The technical booklet must be


developed.

Assessment criteria

Expected Evidence

Feedback
(note on Merit/Distinction if applicable)

Merit descriptor No. (M1)


Merit descriptor No. (M2)
Merit descriptor No. (M3)
Distinction descriptor No.
(D1)
Distinction descriptor No.
(D2)
Distinction descriptor No.
(D3)

Summative feedback

Assessors

Date

Signature

4.1 critically review and test a Java programming solution


Criticaly review
The desktop application which is created provides a solution for the given problem
Student Management System. This is a desktop application which provides the
information about the student, class,

course and management of the testing

system.
The review of the solution:

Students and staff have the unique id and password to login. After login they
can view details in the system.

After login, student can choose a course and do testing. He/she can also view
their result after testing, they can view their marks.

Staff can view all the details of the system. They have the right to remove,
edit or add the student and also have the right to add or edit or remove the
teacher as well as also have the right to remove, edit or add new class. On
the other hand they can add and edit students mark.

Staff can view the students result after testing. They can also view the
updates which are provided by the application.

Advantages:
This system is very simple and easy to use
The system offert an effective management for the school
The system offert an directly testing for student which is very helpful in studying
Disadvantage:

This application is only suitable for small system.


There are so many functions which are not provided such as: timetable for students,
present checking, teacher management
It doesnt offert a connection between the school with students parent.
Test plan
1. Scope of The Tests
1.1 The Student Management System Application version 1.0
1.2 The documents: Requirement Document, Analysis Document, Coding
Document, Design Document, Database Document.
1.3 Testing time: from December 15st 2016 to Jan 15st 2017
2. Testing Environment:
2.1 Testing app: All the features developed in SMS
2.2 Software
Documentation tool
Scheduling tool
IDE

Microsoft word 2013


Microsoft project 2013
Eclipse Mars

JDK
DBMS
Operating System

Netbean 8.1
JDK 1.8
Microsoft SQL Server 2012
Windows 8.1, 10, Linux

2.3 Hardware
Client
2.4 Resources
Worker
Test Manager

8 laptops, 5 desktops
Specific Responsibilities/Comments
Provide management oversight
Responsibilities: provide technical
direction, accuquire appropriate
resources
Management reporting
6

Test Designer

Identifies, priorities and implements


test cases
Responsibilites: generate test plan,

System Tester

evaluate effectiveness of test effort


Executes the test
Responsibilites: executes tests, log
results, recover from errors,

Test System Administrator

document defects
Ensures test environment and assets
are managed and maintained
Responsibilites: administer test
management system, manage

Designer

worker access to test system


Identifies and defines the operations,
attributes
Responsibilites: identifies and defines
the test class, identifies and defines

Implementer

the test packages


Implements and unit tests the test
classes and test packages
Responsibilites: create the test
classes and packages implemented
in the test suite

2.5 Participating organizations: Colleagues


2.6 Manpower requirements: Requirement Document, Analysis Document, Coding
Team, Analysis Team, Testing Team
2.7 Preparation and training required of the test team: Senior System Analyst
3. Test Detail (For Each Test):
3.1 Test identification: Test UI, Test features
3.2 Test objective: All of the requirement function
7

3.3 Cross- reference to relevant design document and the requirement document:
Requirement Document, Analysis Document, Coding Document, Design Document,
Database Document
3.4 Test class: student class, search class, course class, mark class, testing class,
update class, login class.
3.5 Test level (unit, integration or system tests)
a) Unit: States, transaction, data flow, functionally, UI
b) Integration: Error handling, functionally, performance
c) System: States, Transaction, data flow coverage, functionally, UI, error
handling, operation, reliability,date/time and configuration options
3.6 Test case
A. Student Test Case
a) Test case of Log in and Log out Use case
b) Fail to login the system when providing invalid username
c) Fail to login the system when providing valid username and invalid
password
d) Fail to login the system when providing empty username
e) Fail to login the system when providing empty password
f) Doing testing without answer questions
g) Doing testing when out of time
h) Doing testing with some correct answers
B. Admin Test Case
a) Test case of Log in and Log out Use case
b) Fail to login the system when providing invalid username
c) Fail to login the system when providing valid username and invalid
password
d) Fail to login the system when providing empty username
e) Fail to login the system when providing empty username
C. Admin Test Case Student Features
a) Admin add student with valid information
b) Fail to add student with id that already exists in the system
c) Fail to add student when one or some or all fields are empty
d) Fail to add student when inputting special character(s) to one or some or
all fields
e) Fail to add student when inputting special character(s) to phone number
field
f) Fail to add student when inputting date of birth field not well formatted
8

g)
h)
i)
j)

Fail to add student when inputting email field not well formatted
Update a student with valid information
Fail to update student when one or some or all fields are empty
Fail to update student when inputting special character(s) to one or some

or all fields
k) Update student cancel
l) Delete student
m) Delete student cancel
D. Admin Test Case Class Features
a) Admin add class with valid information
b) Fail to add class with id that already exists in the system
c) Fail to add class when one or some or all fields are empty
d) Fail to add class when inputting special character(s) to one or some or all
fields
e) Fail to add class when inputting special character(s) to phone number
field
f) Update a class with valid information
g) Fail to update class when one or some or all fields are empty
h) Fail to update class when inputting special character(s) to one or some or
all fields
i) Update class cancel
j) Delete class
k) Delete class cancel
E. Admin Test Case Course Features
a) Admin add course with valid information
b) Fail to add course with id that already exists in the system
c) Fail to add course when one or some or all fields are empty
d) Fail to add course when inputting special character(s) to one or some or
all fields
e) Update a course with valid information
f) Fail to update course when one or some or all fields are empty
g) Fail to update course when inputting special character(s) to one or some
or all fields
h) Update course cancel
i) Delete course
j) Delete course cancel
F. Admin Test Case Mark Features
a) Admin add mark with valid information
b) Fail to add mark with id that already exists in the system
c) Fail to add mark when one or some or all fields are empty
d) Fail to add mark when inputting special character(s) to one or some or all
9

fields
e) Update a mark with valid information
f) Fail to update mark when one or some or all fields are empty
g) Fail to update mark when inputting special character(s) to one or some or
all fields
h) Update mark cancel
i) Delete mark
j) Delete mark cancel
G. Admin Test Case Result Features
a) Test show student result
H. Admin Test Case Search Features
a) Search with input field is empty
b) Search with courseid invalid
c) Search with courseid valid
d) Search with studentid valid
e) Search with studenid invalid
f) Search with studentid empty
I. Test Case Test UI
a) Test GUI run exactly or not
b) Test GUI on other OS (Windows, Linux,..)
3.7 Special requirements: Measurements of response times, Security
requirements: Fast response time and good performance, all the requirement met
the standard of security
3.8 Data to be recorded: Yes
4. Test Schedule (For Each Test or Test Group) including time estimates
for the following:
4.1 Preparation: 1 week
4.2 Testing: 2 weeks
4.3 Error correction: 2 weeks
4.4 Regression test: 1 week

4.2 analyse actual test results against expected results to identify discrepancies
Function
Code(Optional

Description

10

)
Function1
Function2
Function3
Function4
Function5
Function6
Function7
Function8
Function9
Function10
Function11
Function12
Function13
Function14
Function15
Function16
Function17
Function18
Function19
Function20
Function21
Function22
Function23
Function24
Function25
Function26
Function27
Function28
Function29
Function30

Test case of Log in and Log out Use case


Fail to login the system when providing invalid username
Fail to login the system when providing valid username and invalid
password
Fail to login the system when providing empty username
Fail to login the system when providing empty password
Doing testing without answer questions
Doing testing when out of time
Doing testing with some correct answers
Test case of Log in and Log out Use case
Fail to login the system when providing invalid username
Fail to login the system when providing valid username and invalid
password
Fail to login the system when providing empty username
Fail to login the system when providing empty username
Admin add student with valid information
Fail to add student with id that already exists in the system
Fail to add student when one or some or all fields are empty
Fail to add student when inputting special character(s) to one or
some or all fields
Fail to add student when inputting special character(s) to phone
number field
Fail to add student when inputting date of birth field not well
formatted
Fail to add student when inputting email field not well formatted
Update a student with valid information
Fail to update student when one or some or all fields are empty
Fail to update student when inputting special character(s) to one or
some or all fields
Update student cancel
Delete student
Delete student cancel
Admin add class with valid information
Fail to add class with id that already exists in the system
Fail to add class when one or some or all fields are empty
Fail to add class when inputting special character(s) to one or some
or all fields
11

Function31
Function32
Function33
Function34
Function35
Function36
Function37
Function38
Function39
Function40
Function41
Function42
Function43
Function44
Function45
Function46
Function47
Function48
Function49
Function50
Function51
Function52
Function53
Function54
Function55
Function56
Function57
Function58
Function59
Function60
Function61
Function62
Function63

Fail to add class when inputting special character(s) to phone


number field
Update a class with valid information
Fail to update class when one or some or all fields are empty
Fail to update class when inputting special character(s) to one or
some or all fields
Update class cancel
Delete class
Delete class cancel
Admin add course with valid information
Fail to add course with id that already exists in the system
Fail to add course when one or some or all fields are empty
Fail to add course when inputting special character(s) to one or
some or all fields
Update a course with valid information
Fail to update course when one or some or all fields are empty
Fail to update course when inputting special character(s) to one or
some or all fields
Update course cancel
Delete course
Delete student cancel
Admin add mark with valid information
Fail to add mark with id that already exists in the system
Fail to add mark when one or some or all fields are empty
Fail to add mark when inputting special character(s) to one or
some or all fields
Update a mark with valid information
Fail to update mark when one or some or all fields are empty
Fail to update mark when inputting special character(s) to one or
some or all fields
Update mark cancel
Delete mark
Delete student cancel
Test show student result
Search with input field is empty
Search with courseid invalid
Search with courseid valid
Search with studentid valid
Search with studenid invalid
12

Function64
Function65
Function66

Test
num
ber
1

What
is
being
tested
Student
dob

Student
name

Student
phone
number

Student
address

Search with studentid empty


Test GUI run exactly or not
Test GUI on other OS (Windows, Linux,..)

Expected
outcome

Actual
outcome

String
MM/dd/yyy
y
(12/03/199
0)
String
xxxx
(jeans)
String
xxxxxxxx
(01920384
7)

String
(12/03/199
0)

Pa
Evidence
ss
or
fail
Pas Successful
s

String
(jeans)

Pas
s

String
(123)

Fail

String (ho
chi minh)

Pas
s

Student
passwo
rd

String
xxxxxxxxx
x
(ho chi
minh)
String
xxxxx
(111)

String ( )

Fail

Course
name

String
xxxxxxx

String (java
basic)

Pas
s

13

Successful

Successful

Successful

Course
ID

Class
name

Student
mark

10

Course
level

No

(java
basic)
String
xxxx
(c01)

String ( )

Fail

String
xxxxx
(BT004)
int (>=0,
<=10)
(7)

String
(BT004)

Pas
s

int
(15)

Pas
s

int (>=0,
<=10)
(5)

int (12)

Fail

Function code

Successful

Passed

Failed

Untested

Total Test Cases

Function1

10

15

Function2

10

15

Function3

10

15

Function4

11

15

14

Function5

12

15

Function6

12

15

Function7

10

15

Function8

10

15

Function9

10

15

10

Function10

11

15

11

Function11

10

15

12

Function12

12

15

13

Function13

12

15

14

Function14

10

15

15

Function15

12

15

16

Function16

12

15

17

Function17

10

15

18

Function18

12

15

19

Function19

11

15

20

Function20

10

15

21

Function21

10

15

22

Function22

12

15

23

Function23

12

15

24

Function24

10

15

25

Function25

11

15

26

Function26

11

15

27

Function27

11

15

28

Function28

10

15

29

Function29

10

15

30

Function30

10

15

31

Function31

12

15

32

Function32

10

15

33

Function33

11

15

34

Function34

10

15

35

Function35

12

15

36

Function36

12

15

37

Function37

10

15

38

Function38

11

15

39

Function39

11

15

40

Function40

12

15

41

Function41

10

15

42

Function42

10

15

43

Function43

10

15

15

44

Function44

12

15

45

Function45

12

15

46

Function46

11

15

47

Function47

11

15

48

Function48

10

15

49

Function49

12

15

50

Function50

12

15

51

Function51

10

15

52

Function52

11

15

53

Function53

11

15

54

Function54

10

15

55

Function55

12

15

56

Function56

12

15

57

Function57

11

15

58

Function58

12

15

59

Function59

11

15

60

Function60

11

15

61

Function61

11

15

62

Function62

11

15

63

Function63

10

15

64

Function64

10

15

65

Function65

11

15

66

Function66

10

15

Sub total

719

163

108

990

Test coverage:

89%

Test successful coverage:

72,6%

Test fail coverage:

16,4%

Untested:

11%

16

4.3 evaluate independent feedback on a developed Java program solution


and make recommendations for improvements
Very
Good

1. What do you think about the UI of this

So
Bad
1

application?
2. What do you think about the functions of

10

this application?
3. This application is friendly using?
4. What do you think about error handling of

9
11

3
2

3
1

0
1

this application?
5. This application is good for managing big

43(57,3%

15(20

14(18,6

3(4,1

%)

%)

Feedback Questions

Good

Normal

system?
Summarize

Based on above figure, I can see that the system has got good feedbacks from
users, the interface is pretty much interactive but can provide more features on the
main screen. Overdrafts facility can be revised. More programming and object
oriented concepts can be incorporated in the further implementation of the
proposed solution.
What has implemented is just a contrived functionality of any student management
system. As per the requirements few more facilities can be incorporated in the
system.
List of the improvements which can be done in application are as follows:

One new feature such as the notification should be like shedule for students
and teachers, the students and the management can have a reminder related
to the events, exams and about any program.

There must be one more feature gallery which can have the pictures of the
students or teacher.

There must be one more feature in case of any problem the students can
directly communicate with the management.

17

The feature such as students view must be there where students can share
their views related to the college.

4.4 create user documentation for the developed Java program solution
Double click on app.jar file on the desktop, the program will launch login form as
below

1
2
4

3
5

Figure: Login Screen


Control
1
2
3
4
5
6

Details
Input username
Input password
Choose if you are admin
Choose if you are student
Click on this button will login to the system
Click on this button will close the program

18

12
11

Figure:

Control

10
9

3
4

Details
click on this button will add new student to the

2
3

system
click on this button will update student information
click on this button will remove student from the

4
5
6
7
8
9
10
11
12

system
click on this button will reset form on the left side
Input date of birth
Input address
Input gender
Input phone number
Input password
Input class
Input student name
Input student id
Student Feature

19

1
2
5
6

3
4

Figure: Class Feature

1
2
3

Control

Details
click on this button will add new class to the system
click on this button will update class information
click on this button will remove class from the

4
5
6
7

system
click on this button will reset form on the left side
Input class id
Input class name
20
Input year

7
8
9

Figure: Course Feature

Control

Details
click on this button will add new course to the

2
3

system
click on this button will update course information
click on this button will remove course from the

4
5
6
7
8
9

system
click on this button will reset form on the left side
Input testing
Input course id
Input course name 21
Input level
Input classroom

3
4

1
5
6

7
8

2
3
4

Figure: Mark Feature


Control
1
2
3
4
5
6
7
8

Details
click on this button will add mark to the system
click on this button will update mark information
click on this button will remove mark from the
system
click on this button will reset form on the left side
Input class name
Input student id
Input course name
Input mark
22

Figure: Search student via ClassID


Control

Details

Input classid

click on this button will show search result

23
1

Figure: Search student via StudentID


Control

Details

Input studentid

click on this button will show search result

4.5 create technical documentation for the support and maintenance of a


Java program solution
System Requirements For the application Student Management System
1. JRE 1.6 and higher
2. Minimum 512 MB RAM
3. Operating system Linux/ Windows/ Mac
4. Hard Disk Space 200 MB
5. MS SQL Server Management Studio 2008 or later
Compiling and Running Application

24

Here are the steps for compiling and running your first Swing program with the Java
SDK
1. Download the Latest Release of the Java Platform
2. Backup database file sql.bak along with the application to MS SQL Studido
3. Run the Program: Double click on app.jar file on the desktop to run the
application
If running application successfully, a login form will show, using admin id abc
password 123 to login to the system

Login form: this is used to log in to the application

After login successful, a main frame of the application will be shown


25

SMS FLOW DIAGRAM


26

27

Error handling

28

Below flow chart displays the details on how this application works:

Flow of application :
1. User accesses the application
2. Application determines whether it is normal user or admin user
3. If user is administrator, it will allow to perform the below set of operations:
29

a) Add new teacher, student, faculty, class, course, mark


b) Remove existing teacher, student, faculty, class, course, mark in the
system
c) Update existing teacher, student, faculty, class, course, mark in the
system
d) Search information
e) Show result information of student
4. If user is normal user, it will allow to perform below actions:
a) Choose course to do testing
b) View detail result after testing

Conclusion
This application has been made to understand the basic concepts and features of
java programming and desktop applications. It illustrated the fundamentals of
inheritance, classes and objects, Bytecode, JVM and so on. It helped me enhancing
my java programming skills. I have got the better understanding of Netbeans and
java. I have achieved the clarity in implementing programming solution through
designing models such as UML class diagram and so on. The student management
system has been made according to the requirements specified in the case study.

30

Potrebbero piacerti anche