public class FileExecutor extends Object
| 构造器和说明 |
|---|
FileExecutor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
executeFile(Map<String,String> map,
String filePath)
xml主执行类(Map类型)
|
void |
executeFile(String filePath)
xml主执行类
|
void |
executeStep(List list,
org.dom4j.Document document)
执行xml文件配置的step
|
void |
executeStepNoParame(List list,
org.dom4j.Document document)
执行xml文件配置的step(不加载参数)
|
void |
executeThen(List list)
执行Then中的step
|
void |
executeWhen(List list)
执行when中的step
|
void |
loadConfig(List list)
加载对应文件夹中的class和package
|
List<Map<String,String>> |
loadFile(String filePath)
loadFile中given配置
|
List<Map<String,String>> |
loadFileParame(List list)
加载对应文件夹中的class和package
|
void |
loadParame(Map<String,String> map) |
org.dom4j.Document |
openFile(String filePath)
读取XML文件
|
void |
setBatchRequest(org.dom4j.Element el)
执行Batchrequest类型step
|
void |
setDatabase(org.dom4j.Element el)
执行Database类型step
|
void |
setParse(org.dom4j.Element el)
执行Parse类型step
|
void |
setRequest(org.dom4j.Element el)
执行request类型step
|
void |
setVerify(org.dom4j.Element el)
执行Verify类型step
|
public List<Map<String,String>> loadFile(String filePath) throws Exception
filePath - 读取XML文件的路径Exceptionpublic void executeFile(Map<String,String> map, String filePath) throws Exception
map - filePath - Exceptionpublic void executeFile(String filePath) throws Exception
filePath - 读取XML文件的路径Exceptionpublic void loadConfig(List list) throws Exception
list - Exceptionpublic List<Map<String,String>> loadFileParame(List list) throws Exception
list - Exceptionpublic void executeStepNoParame(List list, org.dom4j.Document document) throws Exception
list - document - Exceptionpublic void executeStep(List list, org.dom4j.Document document) throws Exception
list - document - Exceptionpublic void executeWhen(List list) throws Exception
list - Exceptionpublic void executeThen(List list) throws Exception
list - Exceptionpublic void setRequest(org.dom4j.Element el)
throws Exception
el - Exceptionpublic void setBatchRequest(org.dom4j.Element el)
throws Exception
el - Exceptionpublic void setParse(org.dom4j.Element el)
throws Exception
el - Exceptionpublic void setDatabase(org.dom4j.Element el)
throws Exception
el - Exceptionpublic void setVerify(org.dom4j.Element el)
throws Exception
el - Exceptionpublic org.dom4j.Document openFile(String filePath) throws Exception
filePath - 读取XML文件的路径ExceptionCopyright © 2019. All rights reserved.