1、A?@Test?method specifies its Data Provider with the?dataProvider?attribute.? This name must correspond to a method on the same class annotated with?@DataProvider(name="...")?with a matching name.
2、使用DataProviders的方法,可能會執(zhí)行多次(根據(jù)返回的數(shù)據(jù)的條數(shù))。其它測試方法正常執(zhí)行,僅執(zhí)行一次。
3、DataProviders返回的參數(shù)類型要與?@Test方法接收的參數(shù)類型一致,否則轉(zhuǎn)換錯(cuò)誤,見下方截圖
4、DataProviders返回參數(shù)的順序和@Test方法接收的參數(shù)順序一致


