XML ( )
XML XML XMPP XML XML Schema XML XML,,, XML,
Abstract With the improvement of teaching infrastructure such as networks and computers in China, there is an increasing demand for network-based testing system. Most of existing network-based testing systems use a text-based or binary communication protocol in the realtime testing procedure. This thesis explores the possibility of using an open standard XML communication protocol instead of a closed protocol in a network-based testing system as well as the benefits it brings, and then tries to define an XML communication protocol especially for network-based testing systems. The thesis starts with investigating and analyzing several existing network-based testing system at home and abroad. After that the author develops a model that can meet the common need of network-based testing system for the realtime testing procedure. And then taking XMPP (Extensible Messaging and Presence Protocol) as a reference, the author designs an open standard XML communication protocol according to the model. Finally, the author defines the XML vocabularies used in the XML communication protocol by XML Schema. Keywords: Network-based, Testing, System, XML, Communication protocol
Abstract i ii iii 1 1.1........... 1 1.1.1.................. 1 1.1.2............ 2 1.1.3............ 6 1.2............................... 8 1.3............................ 10 1.4................................ 11 12 2.1............... 12 2.1.1......................... 12 2.1.2......................... 12 2.1.3......................... 13 2.2............... 14 2.2.1......... 14 2.2.2................ 17 2.3............ 18
XML 21 3.1 XML....................... 21 3.2 XML.............................. 22 3.2.1 XML.................. 22 3.2.2 XML.................. 24 3.2.3 Streams................... 24 3.3 TLS Transport Layer Security................. 28 3.4 SASL Simple Authentication and Security Layer....... 29 3.5 XML Stanza............................... 31 3.5.1 IQ Stanza............................ 31 3.5.2 Command Stanza........................ 35 3.5.3 ED Stanza............................ 38 XML 42 51 A XML Schemas 52 A.1 XML Schemas........................ 52 A.1.1 Streams namespace....................... 52 A.1.2 xtp:client namespace...................... 54 A.1.3 xtp:server namespace...................... 57 A.1.4 xtp:session namespace..................... 62 A.1.5 xtp:iq namespace........................ 63 A.2 XMPP XML Schemas................... 64 A.2.1 Stream error namespace.................... 64 A.2.2 TLS namespace......................... 66 A.2.3 SASL namespace........................ 67 A.2.4 Stanza error namespace..................... 69 iv
72 75 76 v
3.1 Stream...................... 26 3.2 XML Stream............... 27
1.1 TOEFL CBT...................... 3 1.2 TOEFL ibt...................... 4 1.3 GMAT..................... 5 1.4............. 6 1.5................. 8 2.1..................... 19 2.2.................. 20 3.1. 21 3.2........ 22 3.3 XML....... 23 3.4 Streams namespace................ 25 3.5 Command Stanza................... 35 3.6 ED Stanza....................... 41
1.1 1.1.1 2005 [1] 89% 20 : 1 80% CERNET 2004 [2] 92.7% 6.6% 0.6% 3665 2005 2654 1. 2. 3.
4. 5. 1.1.2 1.1.2.1 TOEFL CBT 1995 ETS 1 1998 ETS TOEFL CBT 2 2000 8 TOEFL CBT ETS GRE 3 GMAT 4 ETS ETS PowerPrep 1.1 MFC 2.5 5 16 Windows 1 ETS Educational Testing Service 2 TOEFL Test of English as a Foreign Language ETS 3 GRE Graduate Record Examinations ( ) 4 GMAT General Management Admission Test 5 MFC Microsoft Foundation Classes C++ Windows MFC 2.5 MFC 2
1.1: TOEFL CBT TOEFL CBT 6 TOEFL PBT TOEFL ETS Windows 3.1 640 480 ETS 2006 5 TOEFL PBT TOEFL CBT TOEFL ibt 1.1.2.2 TOEFL ibt 2005 9 ETS TOEFL ibt TOEFL Internet-based Testing 1.2 Internet Web ETS TOEFL ibt [3] TOEFL ibt TOEFL 6 TOEFL CBT e-rater TM 3
ETS 0 4 5 1.2: TOEFL ibt 1.1.2.3 GMAT Pearson VUE[4] Pearson GMAC 7 ETS 2005 GMAT Pearson VUE GMAT GMATPrep 1.3 Java Client/Serser C/S ATHENA Test Driver GMAT ETS GMAT 60 7 GMAC Graduate Management Admission Council, GMAT 4
GMAC 1.3: GMAT 1.1.2.4 ETS Robert C. Martin Agile Software Development - Principles, Patterns, and Practices [5] Object Mentor 1993-1997 ETS 5
Robert C. Martin Borland C++ 1.1.3 [6] 1.4 1.4: 6
QQ 8 MSN Messenger 9 TCP 1.5 8 QQ 9 MSN Messenger Windows Live Messenger Microsoft 1999 MSN Messenger MSN Messenger Service 1.0 Protocol 7
1.5: 1.2 8