类 JsonClient
- java.lang.Object
-
- tech.testnx.cah.data.AbstractTestDataClient
-
- tech.testnx.cah.data.json.JsonClient
-
- 所有已实现的接口:
TestDataClient
public class JsonClient extends AbstractTestDataClient
- 作者:
- Yun
-
-
字段概要
-
从类继承的字段 tech.testnx.cah.data.AbstractTestDataClient
logger
-
从接口继承的字段 tech.testnx.cah.data.TestDataClient
SEPARATOR
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()Close the external data file if needStringgetCommonData(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 casestatic JsonClientnewInstance(String moduleName, String envName)-
从类继承的方法 tech.testnx.cah.data.AbstractTestDataClient
findFile, findTemplate
-
-
-
-
方法详细资料
-
newInstance
public static JsonClient newInstance(String moduleName, String envName)
-
close
public void close()
从接口复制的说明:TestDataClientClose the external data file if need
-
getModuleDataPath
public Path getModuleDataPath()
从接口复制的说明:TestDataClientGet module data directory path
-
getModuleEnvDataPath
public Path getModuleEnvDataPath()
从接口复制的说明:TestDataClientGet module and environment data directory path
-
getCommonData
public String getCommonData(String dataName)
从接口复制的说明:TestDataClientGet common data value by data name
-
getSecuredCommonData
public String getSecuredCommonData(String dataName)
从接口复制的说明:TestDataClientGet secured common data value by data name, return decrypted text
-
getTestData
public Object[][] getTestData(Class<?> cls, Method method)
从接口复制的说明:TestDataClientget test data for each test case
-
-