public class TestFlowManager extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
TestFlowManager |
addBuffer(String bufferKey,
String bufferVal)
添加缓存
|
TestFlowManager |
addObjBuffer(String bufferKey,
Object bufferVal)
添加缓存
|
TestFlowManager |
deposed()
销毁缓存
|
TestFlowManager |
overrideParse(String sourceParemKey,
String targeParemtKey,
DataParser dataParser)
使用子类重写方法模式Parse
|
TestFlowManager |
overrideParse(String sourceParemType,
String sourceParemKey,
String targeParemtKey,
DataParser dataParser)
使用子类重写方法模式Parse
|
TestFlowManager |
queryDataBase(String bufferKey,
String sql)
通过原生SQL语句查询DB
|
TestFlowManager |
queryDataBase(String queryKey,
String param,
String bufferKey)
通过myBatis XML查询DB
|
TestFlowManager |
reflectParse(String convertFileName,
String convertMethodName,
String sourceParemKey,
String targetParemKey)
使用反射方法模式Parse(无参数类型)
|
TestFlowManager |
reflectParse(String convertFileName,
String convertMethodName,
String sourceParemKey,
String sourceParamType,
String targetParemKey)
使用反射方法模式Parse(一个类型参数)
|
TestFlowManager |
reflectParse(String convertFileName,
String convertMethodName,
String sourceParemKey,
String sourceParamType,
String sourceParemKey2,
String sourceParamType2,
String targetParemKey)
使用反射方法模式Parse(两个类型参数)
|
TestFlowManager |
reflectParse(String convertFileName,
String convertMethodName,
String sourceParemKey,
String sourceParamType,
String sourceParemKey2,
String sourceParamType2,
String sourceParemKey3,
String sourceParamType3,
String targetParemKey)
使用反射方法模式Parse(三个类型参数)
|
TestFlowManager |
reflectParse(String convertFileName,
String convertMethodName,
String sourceParemKey,
String sourceParamType,
String sourceParemKey2,
String sourceParamType2,
String sourceParemKey3,
String sourceParamType3,
String sourceParemKey4,
String sourceParamType4,
String targetParemKey)
使用反射方法模式Parse(四个类型参数)
|
static TestFlowManager |
runner()
初始化实例,初始化缓存
|
TestFlowManager |
sendBatchPostRequest(String requestJsonStr,
String url,
String responce)
批量发送Post请求
|
TestFlowManager |
sendBatchPostRequestXML(String requestXmlStr,
String url,
String responce)
批量发送Post请求
|
TestFlowManager |
sendBatchPutRequest(String requestJsonStr,
String url,
String responce)
批量发送Put请求
|
TestFlowManager |
sendDeleteRequest(String requestJsonStr,
String url,
String responce)
发送Delete请求
|
TestFlowManager |
sendGetRequest(String url,
String responce)
发送Get请求
|
TestFlowManager |
sendHeadRequest(String url,
String responce)
发送Header请求
|
TestFlowManager |
sendOptionsRequest(String url,
String responce)
发送Options请求
|
TestFlowManager |
sendPostRequest(String requestJsonStr,
String url,
String responce)
发送Post请求
|
TestFlowManager |
sendPostRequestXML(String requestXmlStr,
String url,
String responce)
发送Post请求
|
TestFlowManager |
sendPutRequest(String requestJsonStr,
String url,
String responce)
发送Put请求
|
TestFlowManager |
sendPutRequestXML(String requestXmlStr,
String url,
String responce)
发送Put请求
|
TestFlowManager |
sendRequest(String requsetName,
List<Map<String,String>> requestListMap,
String url,
String responce)
发送Cucumber格式请求
|
TestFlowManager |
sendRequest(String requestJsonStr,
String url,
String responce)
发送Json请求
|
TestFlowManager |
sendTraceRequest(String url,
String responce)
发送Trace请求
|
TestFlowManager |
setHeaders(String headerKey,
String headerVal)
设置请求中的Header
|
TestFlowManager |
setProxy(String ipAddress,
int port,
String scheme)
设置请求代理
|
TestFlowManager |
setRequestConfig(String configKey,
String configVal)
设置请求Config
|
TestFlowManager |
sourceParse(String convertMethodSource,
String convertMethodName,
String sourceParemKey,
String sourceParamType,
String targetParamType,
String targetParemKey)
使用String格式函数Parse
|
TestFlowManager |
sourceParse(String convertMethodSource,
String convertMethodName,
String sourceParemKey,
String sourceParamType,
String sourceParemKey2,
String sourceParamType2,
String targetParamType,
String targetParemKey) |
TestFlowManager |
sourceParse(String convertMethodSource,
String convertMethodName,
String sourceParemKey,
String sourceParamType,
String sourceParemKey2,
String sourceParamType2,
String sourceParemKey3,
String sourceParamType3,
String targetParamType,
String targetParemKey)
使用String格式函数Parse
|
TestFlowManager |
sourceParse(String convertMethodSource,
String convertMethodName,
String sourceParemKey,
String sourceParamType,
String sourceParemKey2,
String sourceParamType2,
String sourceParemKey3,
String sourceParamType3,
String sourceParemKey4,
String sourceParamType4,
String targetParamType,
String targetParemKey)
使用String格式函数Parse
|
TestFlowManager |
verify(String expObj,
String atlObj)
对比缓存中的Json
|
TestFlowManager |
verify(String atlObj,
String JsonFilter,
String expValue)
检验缓存中的Json某个key值
|
TestFlowManager |
verify(String paramType,
String expObj,
String atlObj,
String pkMapStr,
String noCompareItemMapStr)
对比两个相同类型的实体
|
public static TestFlowManager runner()
public TestFlowManager deposed()
public TestFlowManager sendRequest(String requestJsonStr, String url, String responce)
requestJsonStr - : Json格式请求url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendPostRequest(String requestJsonStr, String url, String responce)
requestJsonStr - : Json格式请求url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendPostRequestXML(String requestXmlStr, String url, String responce)
requestXmlStr - : Xml格式请求url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendBatchPostRequest(String requestJsonStr, String url, String responce)
requestJsonStr - : Json格式请求url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendBatchPostRequestXML(String requestXmlStr, String url, String responce)
requestXmlStr - : Xml格式请求url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendGetRequest(String url, String responce)
url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendHeadRequest(String url, String responce)
url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendPutRequest(String requestJsonStr, String url, String responce)
url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendPutRequestXML(String requestXmlStr, String url, String responce)
url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendBatchPutRequest(String requestJsonStr, String url, String responce)
requestJsonStr - : Json格式请求url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendDeleteRequest(String requestJsonStr, String url, String responce)
url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendOptionsRequest(String url, String responce)
url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sendTraceRequest(String url, String responce)
url - : 请求urlresponce - : 保存response的keypublic TestFlowManager setHeaders(String headerKey, String headerVal)
headerKey - : 请求HeaderKeyheaderVal - : 请求HeaderValpublic TestFlowManager setRequestConfig(String configKey, String configVal)
configKey - : 请求配置KeyconfigVal - : 请求配置Valpublic TestFlowManager setProxy(String ipAddress, int port, String scheme)
ipAddress - : 代理IPport - : 代理端口号scheme - : Http/Httpspublic TestFlowManager sendRequest(String requsetName, List<Map<String,String>> requestListMap, String url, String responce)
requsetName - : cucumber格式RequestNamerequestListMap - : cucumber table.asMaps 格式request参数url - : 请求urlresponce - : 保存response的keypublic TestFlowManager sourceParse(String convertMethodSource, String convertMethodName, String sourceParemKey, String sourceParamType, String targetParamType, String targetParemKey)
convertMethodSource - : parse函数字符串convertMethodName - : parse函数namesourceParemKey - : parse入参缓存KeysourceParamType - : parse入参类型targetParemKey - : parse函数返回值KeytargetParamType - : parse返回值类型public TestFlowManager sourceParse(String convertMethodSource, String convertMethodName, String sourceParemKey, String sourceParamType, String sourceParemKey2, String sourceParamType2, String targetParamType, String targetParemKey)
convertMethodSource - : parse函数字符串convertMethodName - : parse函数namesourceParemKey - : parse入参缓存KeysourceParamType - : parse入参类型sourceParemKey2 - : parse入参缓存Key2sourceParamType2 - : parse入参类型2targetParemKey - : parse函数返回值KeytargetParamType - : parse返回值类型public TestFlowManager sourceParse(String convertMethodSource, String convertMethodName, String sourceParemKey, String sourceParamType, String sourceParemKey2, String sourceParamType2, String sourceParemKey3, String sourceParamType3, String targetParamType, String targetParemKey)
convertMethodSource - : parse函数字符串convertMethodName - : parse函数namesourceParemKey - : parse入参缓存KeysourceParamType - : parse入参类型sourceParemKey2 - : parse入参缓存Key2sourceParamType2 - : parse入参类型2sourceParemKey3 - : parse入参缓存Key3sourceParamType3 - : parse入参类型3targetParemKey - : parse函数返回值KeytargetParamType - : parse返回值类型public TestFlowManager sourceParse(String convertMethodSource, String convertMethodName, String sourceParemKey, String sourceParamType, String sourceParemKey2, String sourceParamType2, String sourceParemKey3, String sourceParamType3, String sourceParemKey4, String sourceParamType4, String targetParamType, String targetParemKey)
convertMethodSource - : parse函数字符串convertMethodName - : parse函数namesourceParemKey - : parse入参缓存KeysourceParamType - : parse入参类型sourceParemKey2 - : parse入参缓存Key2sourceParamType2 - : parse入参类型2sourceParemKey3 - : parse入参缓存Key3sourceParamType3 - : parse入参类型3sourceParemKey4 - : parse入参缓存Key4sourceParamType4 - : parse入参类型4targetParemKey - : parse函数返回值KeytargetParamType - : parse返回值类型public TestFlowManager reflectParse(String convertFileName, String convertMethodName, String sourceParemKey, String targetParemKey)
convertFileName - : 反射类名convertMethodName - : 反射方法名sourceParemKey - : parse入参缓存KeytargetParemKey - : parse返回值keypublic TestFlowManager reflectParse(String convertFileName, String convertMethodName, String sourceParemKey, String sourceParamType, String targetParemKey)
convertFileName - : 反射类名convertMethodName - : 反射方法名sourceParemKey - : parse入参缓存KeysourceParamType - : parse入参类型targetParemKey - : parse返回值keypublic TestFlowManager reflectParse(String convertFileName, String convertMethodName, String sourceParemKey, String sourceParamType, String sourceParemKey2, String sourceParamType2, String targetParemKey)
convertFileName - : 反射类名convertMethodName - : 反射方法名sourceParemKey - : parse参数一缓存KeysourceParamType - :parse参数一类型sourceParemKey2 - : parse参数二缓存KeysourceParamType2 - :parse参数二类型targetParemKey - : parse返回值keypublic TestFlowManager reflectParse(String convertFileName, String convertMethodName, String sourceParemKey, String sourceParamType, String sourceParemKey2, String sourceParamType2, String sourceParemKey3, String sourceParamType3, String targetParemKey)
convertFileName - : 反射类名convertMethodName - : 反射方法名sourceParemKey - : parse参数一缓存KeysourceParamType - :parse参数一类型sourceParemKey2 - : parse参数二缓存KeysourceParamType2 - :parse参数二类型sourceParemKey3 - : parse参数三缓存KeysourceParamType3 - :parse参数三类型targetParemKey - : parse返回值keypublic TestFlowManager reflectParse(String convertFileName, String convertMethodName, String sourceParemKey, String sourceParamType, String sourceParemKey2, String sourceParamType2, String sourceParemKey3, String sourceParamType3, String sourceParemKey4, String sourceParamType4, String targetParemKey)
convertFileName - : 反射类名convertMethodName - : 反射方法名sourceParemKey - : parse参数一缓存KeysourceParamType - :parse参数一类型sourceParemKey2 - : parse参数二缓存KeysourceParamType2 - :parse参数二类型sourceParemKey3 - : parse参数三缓存KeysourceParamType3 - :parse参数三类型sourceParemKey4 - : parse参数四缓存KeysourceParamType4 - :parse参数四类型targetParemKey - : parse返回值keypublic TestFlowManager overrideParse(String sourceParemKey, String targeParemtKey, DataParser dataParser)
sourceParemKey - : parse入参类型targeParemtKey - : parse返回值keydataParser - : dataParser重写类public TestFlowManager overrideParse(String sourceParemType, String sourceParemKey, String targeParemtKey, DataParser dataParser)
sourceParemType - : parse入参缓存KeysourceParemKey - : parse入参类型targeParemtKey - : parse返回值keydataParser - : dataParser重写类public TestFlowManager addBuffer(String bufferKey, String bufferVal)
public TestFlowManager addObjBuffer(String bufferKey, Object bufferVal)
public TestFlowManager verify(String expObj, String atlObj)
expObj - : 预期值缓存KeyatlObj - : 实际值缓存Keypublic TestFlowManager verify(String paramType, String expObj, String atlObj, String pkMapStr, String noCompareItemMapStr)
paramType - : 实体类型expObj - : 预期结果值缓存KeyexpObj - : 实际结果值缓存KeyexpObj - : 对比实体List主键atlObj - : 实体中不对比的字段public TestFlowManager verify(String atlObj, String JsonFilter, String expValue)
atlObj - : 实际结果值缓存KeyJsonFilter - : 定位Json的xpathexpValue - : 特定key的预期值public TestFlowManager queryDataBase(String queryKey, String param, String bufferKey)
queryKey - sql语句idparam - sql map 参数bufferKey - 存入缓存中的keypublic TestFlowManager queryDataBase(String bufferKey, String sql)
bufferKey - 缓存keysql - sql map 参数Copyright © 2019. All rights reserved.