程序包 com.excelbdd

类 Behavior

java.lang.Object
com.excelbdd.Behavior

public class Behavior extends Object
  • 方法详细资料

    • getExampleList

      public static List<Map<String,String>> getExampleList(String excelPath) throws IOException
      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 file
      worksheetName - 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 file
      worksheetName - name of sheet which contains example data
      headerMatcher - 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 file
      worksheetName - 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 file
      worksheetName - name of sheet which contains example data
      headerRow - 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 file
      worksheetName - name of sheet which contains example data
      headerRow - number of header row
      startColumn - number of first column which has value
      返回:
      example data
      抛出:
      IOException - file exception