???jwebunit??д??漶?????????????
???????????? ???????[ 2010/12/29 11:08:28 ] ????????
????jWebUnit???
????jWebUnit????HttpUnitJUnit ?????????????????????Web??ó????????????????? Web??ó?????????в?????ζ??????Web????????????????????Web???jWebUnit???????Web??ó??????API???????????????????????????url???????????????????cookie???????????????????????漶???????????????
??????automan???????????
???????1. ???????API??????eclipse???д??????????API??????????????????????
???????2. ????????????????????????????????У????automan??????????????????????????????е???????????????л??????
???????3. ????java??????????????
???????1. ????????js??????
???????2. ???????????????????????????????????????????????д
???????? jWebUnit????Eclipse??????jWebUnit
????1. ??????????jwebunit-2.5-release.zip???????????У???????d: emp?????????????jwebunit???
????2. ?? Eclipse ?д????? Java ??????????????TaobaoJWebUnit??
????3. ??? Package Explorer ????е?TaobaoJWebUnit?????????Properties??
????4. ????Java Build Path??????Libraries ????е? Add External JARs??
????5. ????? d: empjwebunit-2.5lib ?????????????е????? JAR ?????
????6. ???? OK??
????????????д????????????????????????????????????????
????1. ???LoginTest.class
????2. ????????
public class LoginTest extends WebTestCase{
public void testlogin(){
this.beginAt(????????????????????url?????й????????д??????);
this.setTextField(??TPL_username???? ??wtx0000??);
this.setTextField(??TPL_password??????testpw??);
this.clickButtonWithText(???????);
this.assertLinkPresentWithText(???????);
}
}
??????
???·???
??????????????????
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