??????????????????6
???????????? ???????[ 2013/8/9 13:10:13 ] ????????
????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
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11