程序包 com.excelbdd
类 Behavior
java.lang.Object
com.excelbdd.Behavior
-
方法概要
修饰符和类型方法说明getExampleList(String excelPath) Get Example List from first sheet of ExcelgetExampleList(String excelPath, String worksheetName) Get Example ListgetExampleList(String excelPath, String worksheetName, String headerMatcher) Get Example List filtered header matchergetExampleList(String excelPath, String worksheetName, String headerMatcher, String headerUnmatcher) getExampleTable(String excelPath, String worksheetName) Get Example data from table, regard first row as header row, auto detect the first columngetExampleTable(String excelPath, String worksheetName, int headerRow) Get Example data from table, auto detect the first columngetExampleTable(String excelPath, String worksheetName, int headerRow, char startColumn) Get Example data from table
-
方法详细资料
-
getExampleList
Get Example List from first sheet of Excel- 参数:
excelPath- path of excel file- 返回:
- Example List from first sheet of Excel
- 抛出:
IOException- file exception
-
getExampleList
public static List<Map<String,String>> getExampleList(String excelPath, String worksheetName) throws IOException Get Example List- 参数:
excelPath- path of excel fileworksheetName- name of sheet which contains example data- 返回:
- Example List
- 抛出:
IOException- file exception
-
getExampleList
public static List<Map<String,String>> getExampleList(String excelPath, String worksheetName, String headerMatcher) throws IOException Get Example List filtered header matcher- 参数:
excelPath- path of excel fileworksheetName- name of sheet which contains example dataheaderMatcher- filter of test set headers- 返回:
- Example List
- 抛出:
IOException- file exception
-
getExampleList
public static List<Map<String,String>> getExampleList(String excelPath, String worksheetName, String headerMatcher, String headerUnmatcher) throws IOException - 抛出:
IOException
-
getExampleTable
public static List<Map<String,String>> getExampleTable(String excelPath, String worksheetName) throws IOException Get Example data from table, regard first row as header row, auto detect the first column- 参数:
excelPath- path of excel fileworksheetName- name of sheet which contains example data- 返回:
- example data
- 抛出:
IOException- file exception
-
getExampleTable
public static List<Map<String,String>> getExampleTable(String excelPath, String worksheetName, int headerRow) throws IOException Get Example data from table, auto detect the first column- 参数:
excelPath- path of excel fileworksheetName- name of sheet which contains example dataheaderRow- number of header row- 返回:
- example data
- 抛出:
IOException- file exception
-
getExampleTable
public static List<Map<String,String>> getExampleTable(String excelPath, String worksheetName, int headerRow, char startColumn) throws IOException Get Example data from table- 参数:
excelPath- path of excel fileworksheetName- name of sheet which contains example dataheaderRow- number of header rowstartColumn- number of first column which has value- 返回:
- example data
- 抛出:
IOException- file exception
-