fix(接口测试): 修复场景步骤转存为自定义接口的问题
--bug=1013132 --user=王孝刚 [接口测试]github#13513接口自动化场景的自定义请求另存为接口定义有问题 https://www.tapd.cn/55049933/s/1158035
This commit is contained in:
parent
3358340807
commit
d75eb7093c
|
@ -147,14 +147,12 @@
|
|||
if (!data.method) {
|
||||
data.method = data.protocol;
|
||||
}
|
||||
data.request.path = this.httpForm.path;
|
||||
},
|
||||
getBodyUploadFiles(data) {
|
||||
let bodyUploadFiles = [];
|
||||
data.bodyUploadIds = [];
|
||||
let request = data.request;
|
||||
if (request.url) {
|
||||
request.path = request.url;
|
||||
}
|
||||
if (request.body) {
|
||||
if (request.body.kvs) {
|
||||
request.body.kvs.forEach(param => {
|
||||
|
@ -274,6 +272,7 @@
|
|||
data.protocol = "DUBBO";
|
||||
}
|
||||
data.id = getUUID();
|
||||
data.path = this.httpForm.path;
|
||||
this.httpForm = {
|
||||
id: data.id,
|
||||
name: data.name,
|
||||
|
|
|
@ -57,7 +57,6 @@ export default {
|
|||
isDisable(item) {
|
||||
if (item.isDisable) {
|
||||
if (item.isDisable instanceof Function) {
|
||||
console.log(item.isDisable());
|
||||
return item.isDisable();
|
||||
} else {
|
||||
return item.isDisable;
|
||||
|
|
Loading…
Reference in New Issue