接口 TestDataClient
-
- 所有已知实现类:
AbstractTestDataClient,ExcelClient,JsonClient
public interface TestDataClient- 作者:
- Yun
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidclose()Close the external data file if needOptional<Path>findFile(String fileName)Firstly try to find a file in module and environment data folder
Secondly try to find a file in module data folderOptional<Path>findTemplate(String templateFileName)Firstly try to find a template file in module and environment data folder
Secondly try to find a template file in module data folderStringgetCommonData(String dataName)Get common data value by data namePathgetModuleDataPath()Get module data directory pathPathgetModuleEnvDataPath()Get module and environment data directory pathStringgetSecuredCommonData(String dataName)Get secured common data value by data name, return decrypted textObject[][]getTestData(Class<?> cls, Method method)get test data for each test case
-
-
-
方法详细资料
-
getSecuredCommonData
String getSecuredCommonData(String dataName)
Get secured common data value by data name, return decrypted text
-
close
void close()
Close the external data file if need
-
getModuleDataPath
Path getModuleDataPath()
Get module data directory path
-
getModuleEnvDataPath
Path getModuleEnvDataPath()
Get module and environment data directory path
-
findTemplate
Optional<Path> findTemplate(String templateFileName)
Firstly try to find a template file in module and environment data folder
Secondly try to find a template file in module data folder- 参数:
templateFileName-- 返回:
-
-