




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 目录一、Analysis of function requirement51 .1Introduction51.2 Use61.3 Operating Environment81.4 The process of using8二、Description of technology framework102.1 FRAMEWORK.102.2 B/S structure and XML11三、Detailed design123.1 General framework design(总体架构设计)123.2 project pictures including the packages and
2、 classes.123.3 UML for project, including class diagram, use case and sequence diagram.173.4 Database design.253.5 XML design28四、Test314.1 The test strategy314.2 The test cases, include black-box testing, white-box testing and gray-box testing.404.3 Test extreme data41五、Analysis of the tough technol
3、ogy and features425.1 xml425.2 eXist435.3 JavaBean445.4 Jquery455.5 Ajax45六、Summary about the project and the course46七、Appendix487.1 CreateXMLFile487.2 SearchXML497.3 UpdateOperate53八、 References59一、Analysis of function requirement 1 .1Introduction1.1.1 The purpose of users manual The purpose of th
4、is 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 BackgroundExplanation:a. Project Name:Pigeon News Publishing System;b. Task author:hao Lic. researchers:Ji JiaXiong,Lin LeiLei,Li X
5、ueYun,Zeng Qi;d. Test user:Ji JiaXiong,Lin LeiLei,Li XueYun,Zeng Qi;1.1.3 DefinitionMysql- Open-source Relational database eXist-db - eXist-db is an open source database management system built using XML technology. It stores XML data according to the XML data model and features efficient, index-bas
6、ed XQuery processing. Xquery-An XML Query Language;Xpath-XML Path Language (XML Path Language), which is an XML document used to determine the location of a part of the language Jquery-Is a cross-browser JavaScript library, and strengthen the operation between the HTMLand JavaScript IDE- also known
7、as integrated design environment or integrated debugging environment is a software application that provides comprehensive facilities to computer programmers for software development. 1.2 Use1.2.1 Functiona Function:a) web developer:For users to browse, manipulate, test, the exam, course selection,
8、registration account。b) web programme: Administratorv add_coursev update_coursev delete_coursev add_userv update_userv delete_userv viewalluserinfov read_msgv send_msgv add_msgv addnoticev viewnoticev changepasswordv logout v Relogin Deanv readExaminationv analyse_examv makePaperv readPaperv viewBla
9、nkv read_msgv send_msgv add_msgv modifypasswordv logoutv Relogin.Teacherv makePaperv readExaminationv analyse_examv read_msgv send_msgv add_msgv modifypasswordv logoutv ReloginAdministrators v Management of user information v Add user information.v Delete user information.v Update user information v
10、 Change password. v Return to home page. v 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 Time characteristicsa. Response time:1-2 Seconds;b. Processing time:1-3
11、Seconds;c. Computing time:1-3 Seconds; Flexibilitya. 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/Win20031.2.3 Securitya. Security Design:Login with Passwordb. c
12、onfidentiality design:Anonymous Loginweb programme:After entering the account password, it automatically jumps to the user interfaceweb developer : It does not display the users browsing Processc. Actually reached ability:a) Login with Password;b) Confidentiality of information;1.3 Operating Environ
13、ment1.3.1 Data structurea 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 XML1.4 The process of using1.4.1 Installation and Initializationa Installation:web developer:Ins
14、tall 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 Inputa Data input:Pay attention to the format when inputting data to XMl。b Parameters preparation:Formal data。 The rea
15、listic background of the input data a. Situation:Personnel changes, news updates and changes;b. The frequency of situations:Cyclical, random;c. Source of situation:Writing Questions, update Test question bank;d. Media:keyboard;e. Limit:Inputted data must be implemented on the basis of the writing pr
16、ovisions;f. Quality Management: inputted data will be tested by the relevant departments and the below standard data will be returned and rewrited ;g. Dominate: Dean decide whether the Questions bank will be update and alter. Output Formata Head:Examination Subjects, Time, Instructor; b Body:
17、Questions;c Tail:Examination Status Tips。1.4.3 To explain the output of each output The realistic background of the output dataa Use: The Questions Prepared by the teacher will be audit by the dean and then submitted by the Dean. Dean decide whether they issue the Questions and the released o
18、nes 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 d
19、ominate the ownership. Output Formata Header:Examination Subjects, Time, Instructor; ;b Body:Questions;c Tail:Examination Status Tips。1.4.4 Querya 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
20、 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
21、 professional knowledge. 1.4.5 Error handling and recoveryError occurred:The system errors are generally not caused by users operation, and the users may use at east;Error Recovery:Maintenance by professionals;1.4.6 Terminal OperationOperating terminal: web developer:Install the browser and the comp
22、uter can be connected with the Internet or the Local Area Networkweb 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 ca
23、n 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 reque
24、st and take the information from the Model layer to the view layer.图2.1.1 MVC model图2.1.2 Scandalous deployment figure2.2 B/S structure and XMLWe use open source, choose B/S structure and XMLopen sourceIn open source, we used the OO database eXist. Choosing eXist because it can be a very good in XML
25、 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 resear
26、ch 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 architectureIn this system ,we use B/S architecture .Because B/S structure can be combined with a variety of Script language and Active
27、 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 cannt do that. We know that B / S based on the
28、 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
29、 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 c
30、onnected 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 data
31、base and subscribers basically is limitless.Using XML to store the news informationWe 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
32、 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
33、 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 th
34、at 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
35、achieve the business purposes of sharing information.三、Detailed design 3.1 General framework design(总体架构设计) 3.1.1The General principles of design for the systema. Simplification(简单化) The system should be easy to use when meet the requirement and reach the goal of expectation.b. Flexibility(灵活性) The
36、system should adapt to the changes of the Environment.c. reliability(可靠性) The system should have a high reliability.3.2 project pictures including the packages and classes.Picture 3.2.1 the java code of eXist datebasePicture 3.2.2 the java code of roles Picture 3.2.3 all the files of the admin Pictu
37、re 3.2.4 all the files of the dean Picture 3.2.5 all the files of the studentPicture 3.2.6 all the files of the teacherPicture 3.2.7 all the files of the cssPicture 3.2.8 all the files of the jarPicture 3.2.9 all the files of the js3.3 UML for project, including class diagram, use case and sequence
38、diagram.Picture 3.3.1 sequence diagram of loginPicture 3.3.2 sequence diagram of student take examPicture 3.3.3 sequence diagram of teacher make questionPicture 3.3.4 sequence diagram of student check scoresPicture 3.3.5 sequence diagram of teacher Review papersPicture 3.3.6 class diagram of teacher
39、Picture 3.3.7 class diagram of deanPicture 3.3.8 class diagram of studentPicture 3.3.9 class diagram of adminPicture 3.3.10 class diagram of teacherPicture 3.3.11 class diagram of the paperPicture 3.3.11 class diagram of the studentPicture 3.3.12 class diagram of the question bank.Picture 3.3.12 cla
40、ss diagram of the admin.Picture 3.3.13 class diagram of the update operation for the eXist.Picture 3.3.14 class diagram of the Search xml files.Picture 3.3.14 class diagram of the Create xml files.3.4 Database design. In this project. We use the object-oriented database eXist to store and manage the
41、 xml files. eXist is an open source database management system entirely built on XML technology, also called a native XML database. Unlike most relational database management systems, eXist uses XQuery, which is a W3C Recommendation, to manipulate its data.Picture 3.4.1 The flow of OODB-Exist proces
42、sing dataPicture 3.4.2 eXist Xquery StatementPicture 3.4.3 eXist store XML filesPicture 3.4.4 eXist store XML files3.5 XML designPicture 3.5.1 the XML files of the adminPicture 3.5.2 the XML files of the coursePicture 3.5.3 the XML files of the questions BlankPicture 3.5.4 the XML files of the stude
43、ntPicture 3.5.5 the XML files of the teacherPicture 3.5.6 the XML files of the studentexam四、Test 4.1 The test strategy (We choose the black-box testing method to test the system.)4.1.1 IntroduceBlack box testing also called functional testing or data-driven testing. we can confirm each function have
44、 been finished normally or not by the black-box testing method. In testing, the program as a can not open the black box, while not considering the internal structure and internal characteristics completely, testers test the program by the programming interfaces. Black box testing only check whether
45、the programs functions can use normally according to the product requirement specification and the program can print a right result when the users have a appropriate input or not, and keep the integrity of external information (such as database or documents).4.1.2 Test design techniquesTypical black
46、-box test design techniques include: Decision table testing. All-pairs testing. State transition tables. Equivalence partitioning. Boundary value analysis. 4.1.3 What is black-box testing.Black-box testing is mainly to found the following categories errors:1. Whether there be incorrect or omissions
47、functions?2. In the interfaces, can accept input correctly or Can output the correct result?3. Whether there is a data structure errors or external information (for example data files) errors?4. Whether the performance can meet the requirements?5. Whether have initialization or terminate mistake? 4.
48、1.4 Functions testing . Only testing the functions of adimin and teacher. Administrors function testing:Picture Login model testingPicture admin model indexPicture admin add a teacherPicture admin add a coursePicture admin add a noticePicture ad
49、min view the noticePicture admin add a deanPicture admin update the users informationPicture admin delete the users informationPicture admin view the users informationPicture 0 admin update the courses informationPicture 1 admin delete the courses inform
50、ationPicture 2 admin add a message to the dean Picture 3 admin view the message to the teacherPicture 3 admin view the message to the himPicture 3 admin change password Teachers function testing:Picture .1 teacher indexPicture .2 teacher make single q
51、uestionsPicture .3 teacher make Judge questionsPicture .4 teacher make Subjective questionsPicture .5 the records of teacher making questionsPicture .6 teacher reviewing papersPicture .7 teacher Analyzing papersPicture .8 teacher writing a noticePicture 4.1.
52、4.2.9 the out boxes of teacher Picture .10 the inbox of teacherPicture .11 teacher change password4.2 The test cases, include black-box testing, white-box testing and gray-box testing.Test cases are a set of test inputs, execute conditions and the expected resultsdesigned for a specifi
53、c purpose of To test extreme data ,and it is the minimum entity executed. Here is a test case for login function model: 4.3 Test extreme dataBoundary value analysis (BVA) is a black box testing method used to test the boundary values of input or output .1. Select the boundary value test principle1)
54、if the input conditions stipulated the maximum number of maximal number is used, the minimum number, the number of small a than the smallest number, than the largest number freshman number as test data.2) if the input conditions stipulated the value of scope, it should be taken just reached this ran
55、ge boundaries values and just beyond this boundary value as a test input data.3) if the program was used in an internal data structure, should choose the internal data structures of the boundary value as test cases.4) if the program specification given input fields or output domain is ordered set, s
56、hould be selected set the first element and the last element as test cases.5) analysis program specification, and find out the other possible boundary conditions.2. The common boundary value1) screen cursor in the upper left, most lower position.2) array element of the first and the last one.3) The first line and the last line of statements.4) The 0 times, the first time, reciprocal
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 公会棋类活动方案
- 2025至2030年中国便携式采访提示器行业投资前景及策略咨询报告
- 2025至2030年中国产科诊断监护系统行业投资前景及策略咨询报告
- 公司会议既团建活动方案
- 公司作品征集活动方案
- 公司党员活动策划方案
- 公司办理鹊桥会活动方案
- 公司反邪教活动方案
- 公司团建邮轮活动方案
- 高尔夫tpi教学课件
- 专升本英语智慧树知到答案2024年江苏财会职业学院
- 【S邮政代理金融业务营销现状及问题调查报告11000字(论文)】
- 广西贵港市桂平市2023-2024学年八年级下学期期末英语试题
- 广东省珠海市香洲区2023-2024学年部编版八年级下学期期末历史试题(无答案)
- 高温熔融作业安全技术规范
- 苏教版小学四年级下册科学期末测试卷及完整答案(历年真题)
- 高三二模作文“认清客观现实”与“安抚自己心理”审题立意及范文
- 《不断变化的人口问题》核心素养目标教学设计、教材分析与教学反思-2023-2024学年初中历史与社会人教版新课程标准
- 血液透析恶心呕吐的应急预案
- 物流仓储中心项目建设背景和必要性
- 安徽省涡阳县2023-2024学年七年级下学期期中考试语文试题
评论
0/150
提交评论