????JFCUnitXML????

????XML????????SGML???????????????????????????????XML???????????GUI??????????Ч?????????JFCUnit???п???????XML????XML??н???

????XMLJunit???:????????—????????????Χ??????????????????????????????XML?е???????????????????????????????游??????????????????????????????????????????”../”??????·??????????????????????${name}???????????????????????????????壬?????????????????????---????????????

???????????????:setUp??tearDown—???TestCase.setUp|tearDown

???????XML????taghandler???Java????????д??XML?У?taghandler???XML?????????????/?????taghandler?????

????Suitetags: 1.????????????XML??????й?????е??й????????????2.??????????3.??????????乲????????

Suiteof Suites??
<suitename=”Abc”>
<filename=”a.xml”/>
<filename=”b.xml”/>
<filename=”subdir/c.xml”>
</suite>

??????
<suite name=”Procedure Example”>
<procedure name=”Login”>
…..
</procedure>
<procedure name=”Logout”>
…..
</procedure>
<test name=”Login”>
<procedurecall=”Login”>
</test>
</suite>

??????????

??????????????????

??????????

???????????:${name}syntax

????????:<propertyname=”debug” value=”true”/>

????????????

??????????????????

?????ж???????з?????

??????????????????????

????Chose/When/Otherwise??Echo?? Noop?? Assert/Fail?? Evaluate?? Foreach?? Indexof??Dump??

????AssertHasFocus??AssertEnabled??AssertTableCellContains??AssertTextFieldContains

????1.7 С??

????JFCUnit XML?????????JFCUnit???????????η???????XML?????????????????????????????????????????XML????????JFCUnit????????????????Code?????ε?????????????????????Щ??????????????ó?????????????????????????????????????????????????????????汻??????????????????????????????????

????2 Web??????

????Internet?????????Web?????????????Web????:??????????????Web????:????????????????????????????????????????

????Web???????:??????(IntraPageTest)????????(InterPageTest)

??????????????:?????飬???web?????????.

?????????????:??????£????????

????2.1web?????????

????web????????????·:1.?????????2.Э?????(??Http???JavaScript???????JavaScriptαЭ?飬 POST?? WebService).???Щ????????У?Э????????????

????Web???????:

????1.HttpUnit:HttpUnit????JUnit?????????????????Web?????в????in-container???????????????????????????????????????????????????????????????????????????????HttpUnit???????HTTP??Web????????????????:??????(cookies)??????????????(HTML????)?????????????(webspider)??HttpUnit??????????????????????ServletUnit.JUnit????????????????????????HttpUnit???????????????web??ò???????www.httpunit.org.

????2.JWebUnit:HttpUnit????????????????????????????web?????????д???????????HttpUnit???????????HttpUnit????ε??????????web????????е??????????HttpUnit??????????ò???????????????飬JWebUnit??????и????????jwebunit.sourceforge.net

????3.StrutsTestCase:????????Struts??????Junit?????????????????Structs(MVC??)?web??????????????????????????????????Struts?web???????????(in-container)???????????????????????Struts????servlet????????????HttpUnit?????????????????.StrutsTestCase??Struts???????????????????.strutstestcase.sourceforge.net

????4.Selenium:????web??ó??????????????????????????????У????????????????????????У??????????????????????????е?????????????????????:IE??Mozilla??Firefox??.?????????????????????seleniumhq.org/download

????5.HtmlUnit:??????????????????Java?????HtmlUnit??Junit??????????????????HTML????API