public class Behavior extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Map<String,String>> |
getExampleList(String excelPath)
Get Example List from first sheet of Excel
|
static List<Map<String,String>> |
getExampleList(String excelPath,
String worksheetName)
Get Example List
|
static List<Map<String,String>> |
getExampleList(String excelPath,
String worksheetName,
String headerMatcher)
Get Example List filtered header matcher
|
static List<Map<String,String>> |
getExampleList(String excelPath,
String worksheetName,
String headerMatcher,
String headerUnmatcher) |
static List<Map<String,String>> |
getExampleTable(String excelPath,
String worksheetName)
Get Example data from table, regard first row as header row, auto detect the first column
|
static List<Map<String,String>> |
getExampleTable(String excelPath,
String worksheetName,
int headerRow)
Get Example data from table, auto detect the first column
|
static List<Map<String,String>> |
getExampleTable(String excelPath,
String worksheetName,
int headerRow,
char startColumn)
Get Example data from table
|
public static List<Map<String,String>> getExampleList(String excelPath) throws IOException
excelPath - path of excel fileIOException - file exceptionpublic static List<Map<String,String>> getExampleList(String excelPath, String worksheetName) throws IOException
excelPath - path of excel fileworksheetName - name of sheet which contains example dataIOException - file exceptionpublic static List<Map<String,String>> getExampleList(String excelPath, String worksheetName, String headerMatcher) throws IOException
excelPath - path of excel fileworksheetName - name of sheet which contains example dataheaderMatcher - filter of test set headersIOException - file exceptionpublic static List<Map<String,String>> getExampleList(String excelPath, String worksheetName, String headerMatcher, String headerUnmatcher) throws IOException
IOExceptionpublic static List<Map<String,String>> getExampleTable(String excelPath, String worksheetName) throws IOException
excelPath - path of excel fileworksheetName - name of sheet which contains example dataIOException - file exceptionpublic static List<Map<String,String>> getExampleTable(String excelPath, String worksheetName, int headerRow) throws IOException
excelPath - path of excel fileworksheetName - name of sheet which contains example dataheaderRow - number of header rowIOException - file exceptionpublic static List<Map<String,String>> getExampleTable(String excelPath, String worksheetName, int headerRow, char startColumn) throws IOException
excelPath - path of excel fileworksheetName - name of sheet which contains example dataheaderRow - number of header rowstartColumn - number of first column which has valueIOException - file exceptionCopyright © 2022 ExcelBDD. All rights reserved.