testng源碼閱讀之5

testng裏邊的註釋是如何應用的? 舉最簡單的兩個例子:php @Test 這個註解 AnnotationHelper.findMethodsWithAnnotation { 這裏作最基本的判斷: 一、先把有註解的找出來 二、有註解的方法不能有返回值,只能是void 三、給全部的測試方法編號 }web TestNGMethodFinder.getTestMethods–>數據結構 TestCla
相關文章
相關標籤/搜索