2013?????????????С??[2] ????????
???????????? ???????[ 2013/12/13 10:47:55 ] ????????
?????????????UI??????????????????????????????????unit test??
?????????UI?????????????????????????????????????????????С?????????????
????????
?????????????£?????????????????????????????????????У?
????????????????д??????????????????????е?????????????????????????????????л??????????????????????????????????
????????????????TestNg??????JUnit????????????TestNg?? DataProvider ???????????????????????????????????
??????????????
???????????????????????? funcOneTest.java ????? funcOne.java
??????????????????????????????test_funcOne_smoke() & test_funcOne_normal() & test_funcOne_error() ????? funcOne()
???????????????
?????????? ???й??? ???????д????Demo????
????Δe???????? – ??
@Test(description = "getNewestItems_e??_??????????????????????")
public void test_getNewestItems_smoke() {
List<ItemVo> itemList = itemBean.getNewestItems(1);
Assert.assertTrue(itemList.size() == 16?? "size?????16");
for (ItemVo vo : itemList) {
Assert.assertTrue(vo.getName() != null?? "name???????");
Assert.assertTrue(vo.getPrice() != null?? "price???????");
}
}
|
@Test(description = "enter_and_leave_market_e??_????????????")
public void test_enter_and_leave_market_smoke() {
Custom tom = new Custom("Tom");
tom.enterMarket();
Assert.assertTrue(Custom.isAtMarket(tom)?? "tom??????????");
tom.leaveMarket();
Assert.assertFalse(Custom.isAtMarket(tom)?? "tom??ò??????");
}
|
??????
???·???
??????????????????
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