logo资料库

在线考试系统-英文版.docx

第1页 / 共54页
第2页 / 共54页
第3页 / 共54页
第4页 / 共54页
第5页 / 共54页
第6页 / 共54页
第7页 / 共54页
第8页 / 共54页
资料共54页,剩余部分请下载后查看
一、Analysis of function requirement
1 .1Introduction
1.1.1 The purpose of user's manual
1.1.2 Background
1.1.3 Definition
1.2 Use
1.2.1 Function
1.2.2 Performance
1.2.2.1 Time characteristics
1.2.2.2 Flexibility
1.2.3 Security
1.3 Operating Environment
1.3.1 Data structure
1.4 The process of using
1.4.1 Installation and Initialization
1.4.2 Input
1.4.2.1 The realistic background of the input data
1.4.2.2 Output Format
1.4.3 To explain the output of each output
1.4.3.1 The realistic background of the output dat
1.4.3.2 Output Format
1.4.4 Query
1.4.5 Error handling and recovery
1.4.6 Terminal Operation
二、Description of technology framework
2.1 FRAMEWORK.
2.2 B/S structure and XML
三、Detailed design
3.1 General framework design(总体架构设计)
3.1.1The General principles of design for the sys
3.2 project pictures including the packages and c
3.3 UML for project, including class diagram, use
3.4 Database design.
3.5 XML design
四、Test
4.1 The test strategy
4.1.1 Introduce
4.1.2 Test design techniques
4.1.3 What is black-box testing.
4.1.4 Functions testing .
4.1.4.1 Administror’s function testing:
4.1.4.2 Teachers’ function testing:
4.2 The test cases, include black-box testing, wh
4.3 Test extreme data
五、Analysis of the tough technology and features
5.1 xml
5.2 eXist
5.3 JavaBean
5.4 Jquery
5.5 Ajax
六、Summary about the project and the course
七、Appendix
7.1 CreateXMLFile
7.2 SearchXML
7.3 UpdateOperate
八、 References
目录 一、Analysis of function requirement...............................................................................................2 1 .1Introduction..................................................................................................................2 1.2 Use ................................................................................................................................ 2 1.3 Operating Environment................................................................................................5 1.4 The process of using................................................................................................ 5 二、Description of technology framework....................................................................................... 7 2.1 FRAMEWORK. ............................................................................................................7 2.2 B/S structure and XML..................................................................................................8 三、Detailed design ........................................................................................................................... 9 3.1 General framework design(总体架构设计)................................................................ 9 3.2 project pictures including the packages and classes................................................ 9 3.3 UML for project, including class diagram, use case and sequence diagram.............14 3.4 Database design. ........................................................................................................ 22 3.5 XML design ................................................................................................................. 25 四、Test............................................................................................................................................28 4.1 The test strategy ......................................................................................................28 4.2 The test cases, include black-box testing, white-box testing and gray-box testing. .......................................................................................................................................... 37 4.3 Test extreme data....................................................................................................37 五、Analysis of the tough technology and features....................................................................... 38 5.1 xml.............................................................................................................................. 38 5.2 eXist......................................................................................................................... 39 5.3 JavaBean..................................................................................................................40 5.4 Jquery ......................................................................................................................... 40 5.5 Ajax............................................................................................................................. 41 六、Summary about the project and the course ............................................................................41 七、Appendix...................................................................................................................................42 7.1 CreateXMLFile ......................................................................................................... 42 7.2 SearchXML...............................................................................................................43 7.3 UpdateOperate ........................................................................................................48 八、 References............................................................................................................................54 1
一、Analysis of function requirement 1 .1Introduction 1.1.1 The purpose of user's manual The purpose of this users' manual is to enable users to know more clearly about our system and facilitate the users’ operation. The targeted readers are common users but not experts. 1.1.2 Background Explanation: a. Project Name:Pigeon News Publishing System; b. Task author:hao Li c. d. Test user:Ji JiaXiong,Lin LeiLei,Li XueYun,Zeng Qi; researchers:Ji JiaXiong,Lin LeiLei,Li XueYun,Zeng Qi; 1.1.3 Definition Mysql----- Open-source Relational database eXist-db ------ eXist-db is an open source database management system built using XML It stores XML data according to the XML data model and technology. features efficient, index-based XQuery processing. Xquery-----An XML Query Language; Xpath-------XML Path Language (XML Path Language), which is an XML the document used to determine the location of a part of language Jquery----Is a cross-browser JavaScript library, and strengthen the operation between the HTMLand JavaScript IDE------ also known as integrated design environment or integrated debugging environment is a software application that provides comprehensive facilities to computer programmers for software development. 1.2 Use 1.2.1 Function a. Function: 2
a) web developer:For users to browse, manipulate, test, the exam, course selection, registration account。 b) web programme: Administrator  add_course  update_course  delete_course  add_user  update_user  delete_user  viewalluserinfo  read_msg  send_msg  add_msg  addnotice  viewnotice  changepassword  logout  Relogin Dean  readExamination  analyse_exam  makePaper  readPaper  viewBlank  read_msg  send_msg  add_msg  modifypassword  logout  Relogin. Teacher  makePaper  readExamination  analyse_exam  read_msg  send_msg  add_msg  modifypassword  logout  Relogin 3
Administrators  Management of user information  Add user information.  Delete user information.  Update user information  Change password.  Return to home page.  Relogin. b. Limits Range: a) web developer:No; b) web programme : employee can not act beyond their authority , Can not arbitrarily change the item bank in the title ; 1.2.2 Performance 1.2.2.1 Time characteristics a. Response time:1-2 Seconds; b. Processing time:1-3 Seconds; c. Computing time:1-3 Seconds; 1.2.2.2 Flexibility a. Operation way: web developer:Open a browser, enter the URL visit the website; web programme:Open a browser and enter background operation(; b. Operating Environment: Win7/Vista/XP/Win2003 1.2.3 Security a. b. Security Design:Login with Password confidentiality design:Anonymous Login web programme:After entering the account password, it automatically jumps to the user interface web developer : It does not display the user's browsing Process c. Actually reached ability: Login with Password; a) b) Confidentiality of information; 4
1.3 Operating Environment 1.3.1 Data structure a. Mysql:Used to store users’ information for administrators to manage; b. XML:Used to store News; c. eXist :Used to store, modify and delete XML files for technical personnel to operate XML 1.4 The process of using 1.4.1 Installation and Initialization a. Installation: web developer:Install the browser; web programme:Installing IDE, Database (eXist), configure JBoss; b. Initialization : Input data to XMl (page input, the database input), initialization XML; 1.4.2 Input a. Data input:Pay attention to the format when inputting data to XMl。 b. Parameters preparation:Formal data。 1.4.2.1 The realistic background of the input data Situation:Personnel changes, news updates and changes; Source of situation:Writing Questions, update Test question bank; a. b. The frequency of situations:Cyclical, random; c. d. Media:keyboard; e. f. Quality Management: inputted data will be tested by the relevant departments and Limit:Inputted data must be implemented on the basis of the writing provisions; the below standard data will be returned and rewrited ; g. Dominate: Dean decide whether the Questions bank will be update and alter. 1.4.2.2 Output Format a. Head:Examination Subjects, Time, Instructor; 5
b. Body:Questions; c. Tail:Examination Status Tips。 1.4.3 To explain the output of each output 1.4.3.1 The realistic background of the output data a. Use : The Questions Prepared by the teacher will be audit by the dean and then by the Dean. Dean decide whether they issue the Questions and the submitted released ones will be browed by the users. b. The frequency of a situation:Cyclical, Regular, random; c. Media:Monitor; d. Quality Management : Relevant departments are responsible to examine the news. Dominate:Chief Editors have the ownership of the release and revocation of the news. Users’ reaction can indirectly dominate the ownership. 1.4.3.2 Output Format a. Header:Examination Subjects, Time, Instructor; ; b. Body:Questions; c. Tail:Examination Status Tips。 1.4.4 Query a. Query function:the system has the function of referring to the course-Info、teacher-Info、 student-Info. Users may input any keyword in the inquiring column and the key word can be a headline or a part of the Test question bank. If there is no results, it shows an empty result, reminding the users that no relevant keywords are found. b. inquiry mode :search XML documents by matching the characters. Xquery sentences are achieved. This part is to be professional knowledge. 1.4.5 Error handling and recovery Error occurred :The system errors are generally not caused by users’ operation, and the users may use at east; Error Recovery:Maintenance by professionals; 6
1.4.6 Terminal Operation Operating terminal: web developer:Install the browser and the computer can be connected with the Internet or the Local Area Network web programme:operable servers that can be connected with the Internet or the Local Area Network 二、Description of technology framework 2.1 FRAMEWORK. We use MVC model to describe our system. In the view layer, the role of the students can get the information of each course or take an examination. As a teacher, who can examine the examination papers or set the paper, and so on. Dean can modify and delete the paper from all teachers or view the message, and so on. After they send the request, the control layer would process the request and take the information from the Model layer to the view layer. 图 2.1.1 MVC model 图 2.1.2 Scandalous deployment figure 7
2.2 B/S structure and XML We use open source, choose B/S structure and XML open source In open source, we used the OO database eXist. Choosing eXist because it can be a very good in XML documents operation and also provides a better user interface. On the other hand, open source has the following four distinct advantage :1. Open source technology is a very low cost and has very low or even zero cost in exit barriers advantage.2. Open source can enhance interoperability.3.In research and development, it can use more resources.4. Open source more secure and very little virus. Because our source code are shared on the Internet, so no secret. B/S architecture In this system ,we use B/S architecture .Because B/S structure can be combined with a variety of Script language and Active technology in browser .It can achieve power function before using special and complex softwares , which can save a lot of cost in development. B / S based on the WAN, which is for different user groups and geographic dispersion . However ,C/S structure cann’t do that. We know that B / S based on the browser , so it can be cross-platform by WEB services or other public can identify the description language and using more flexible.Not only been used in Window platform , but B/S structure can be used in Unix/Linux platform .In addition, in the performance of the system , B/S advantage is that any time, any place, any system, so long as can use the browser on the Internet, you can use the B/S system of terminal . Besides, most C/S structure of software are directly connected to the database through ODBC ,which would lead to poor safety and limited number of users .Because each user will be connected to the database to maintain a ODBC connection, so resources have been occupied all the time and user expanded by great limits. On the contrary, all users are using a JDBC connection pool to connect to the database in the B/S structure. So, the user does not maintain a connection to the database and subscribers basically is limitless. Using XML to store the news information We choose XML as the tool to store data because of its advantages. Compared with other data formats , a major advantage of XML is that it is very similar to the object data structure. Since the most of current program design and development is object-oriented, so using XML to expression data that can enable data processing and dissemination has become very convenient. Firstly, XML format is versatility, convenient, and high efficiency, which can be used on any platform. Secondly, XML has the advantage of keeping the user interface and the structure in the separation between the data. An XML document ,which storing data, can be analyzed by program. Then, the data be extracted from the inside to be used or stored in database. These data can be used or called in a variety of occasions .In addition, we know that XML is extensible markup language, so, users are free to set their own markup language. By storing data in XML, you can largely reduce the database access .The last one is that XML broke all kinds of fortress on networks, which lead to value of the data can flow and exchange between them, and to achieve the business purposes of sharing information. 8
分享到:
收藏