fix(接口测试): 修复jmx文件子步骤有csv另存为接口定义的执行报错的缺陷

--bug=1013418 --user=王孝刚
【接口测试】场景内步骤请求为post、form-data中含有file类型,调试报错415,Unsupported Media
Type(github issue#13881) https://www.tapd.cn/55049933/s/1165390
This commit is contained in:
wxg0103 2022-05-26 19:13:50 +08:00 committed by fit2-zhao
parent 37065f8b4f
commit ed64629c08
1 changed files with 10 additions and 0 deletions

View File

@ -148,6 +148,16 @@
data.method = data.protocol;
}
data.request.path = this.httpForm.path;
if (data.request.hashTree && data.request.hashTree.length > 0) {
let arrays = ["Extract", "JSR223PreProcessor", "JDBCPreProcessor", "ConstantTimer", "JSR223PostProcessor", "JDBCPostProcessor", "Assertions"];
let hashTree = [];
data.request.hashTree.forEach(item => {
if (arrays.indexOf(item.type) !== -1) {
hashTree.push(item);
}
})
data.request.hashTree = hashTree;
}
},
getBodyUploadFiles(data) {
let bodyUploadFiles = [];