fix(接口测试): 修复接口场景全选url多了个分隔符的问题
--bug=1024334 --user=宋天阳 【接口测试】github #22615接口自动化导入全部场景,出现接口404 https://www.tapd.cn/55049933/s/1348977 Closes #22615
This commit is contained in:
parent
e89bf39f2a
commit
ca541bd8af
|
@ -55,7 +55,7 @@ export function deleteBatchByCondition(params) {
|
|||
}
|
||||
|
||||
export function apiScenarioAll(params) {
|
||||
return post('/api/automation/id/all/', params);
|
||||
return post('/api/automation/id/all', params);
|
||||
}
|
||||
|
||||
export function getApiScenarios(params) {
|
||||
|
|
|
@ -1,156 +1,154 @@
|
|||
import {get, post, request} from 'metersphere-frontend/src/plugins/request'
|
||||
import { get, post } from "metersphere-frontend/src/plugins/request";
|
||||
|
||||
export function getScenarioById(scenarioId) {
|
||||
return get('/api/automation/get/' + scenarioId);
|
||||
return get("/api/automation/get/" + scenarioId);
|
||||
}
|
||||
|
||||
export function getScenarioWithBLOBsById(scenarioId) {
|
||||
return get('/api/automation/scenario-details/' + scenarioId);
|
||||
return get("/api/automation/scenario-details/" + scenarioId);
|
||||
}
|
||||
|
||||
export function getScenarioList(currentPage, pageSize, condition) {
|
||||
let url = '/api/automation/list/' + currentPage + '/' + pageSize;
|
||||
let url = "/api/automation/list/" + currentPage + "/" + pageSize;
|
||||
return post(url, condition);
|
||||
}
|
||||
|
||||
export function getScenarioByTrash(condition) {
|
||||
return post('/api/automation/list/all/trash', condition);
|
||||
return post("/api/automation/list/all/trash", condition);
|
||||
}
|
||||
|
||||
export function getScenarioByProjectId(projectId) {
|
||||
return get('/api/automation/env-project-ids/' + projectId);
|
||||
return get("/api/automation/env-project-ids/" + projectId);
|
||||
}
|
||||
|
||||
export function checkScenarioEnv(scenarioId) {
|
||||
return get('/api/automation/env-valid' + scenarioId);
|
||||
return get("/api/automation/env-valid" + scenarioId);
|
||||
}
|
||||
|
||||
export function execStop(reportId) {
|
||||
return get('/api/automation/stop/' + reportId);
|
||||
return get("/api/automation/stop/" + reportId);
|
||||
}
|
||||
|
||||
export function execBatchStop(res) {
|
||||
return post('/api/automation/stop/batch', res);
|
||||
return post("/api/automation/stop/batch", res);
|
||||
}
|
||||
|
||||
export function getFollowByScenarioId(scenarioId) {
|
||||
return get('/api/automation/follow/' + scenarioId);
|
||||
return get("/api/automation/follow/" + scenarioId);
|
||||
}
|
||||
|
||||
export function getScenarioVersions(scenarioId) {
|
||||
return get('/api/automation/versions/' + scenarioId);
|
||||
return get("/api/automation/versions/" + scenarioId);
|
||||
}
|
||||
|
||||
export function delByScenarioId(scenarioId) {
|
||||
return get('/api/automation/delete/' + scenarioId);
|
||||
return get("/api/automation/delete/" + scenarioId);
|
||||
}
|
||||
|
||||
export function delByScenarioIdAndRefId(scenarioId, refId) {
|
||||
return get('/api/automation/delete/' + scenarioId + '/' + refId);
|
||||
return get("/api/automation/delete/" + scenarioId + "/" + refId);
|
||||
}
|
||||
|
||||
export function deleteBatchByCondition(params) {
|
||||
return post('/api/automation/del-batch', params);
|
||||
return post("/api/automation/del-batch", params);
|
||||
}
|
||||
|
||||
export function apiScenarioAll(params) {
|
||||
return post('/api/automation/id/all/', params);
|
||||
return post("/api/automation/id/all", params);
|
||||
}
|
||||
|
||||
export function getApiScenarios(params) {
|
||||
return post('/api/automation/get-scenario-list', params);
|
||||
return post("/api/automation/get-scenario-list", params);
|
||||
}
|
||||
|
||||
export function getReference(params) {
|
||||
return post('/api/automation/getReference', params);
|
||||
return post("/api/automation/getReference", params);
|
||||
}
|
||||
|
||||
export function genPerformanceTestJmx(params) {
|
||||
return post('/api/automation/gen-jmx', params);
|
||||
return post("/api/automation/gen-jmx", params);
|
||||
}
|
||||
|
||||
export function apiScenarioEnv(params) {
|
||||
return post('/api/automation/env', params);
|
||||
return post("/api/automation/env", params);
|
||||
}
|
||||
|
||||
export function getApiScenarioProjectIdByConditions(params) {
|
||||
return post('/api/automation/list-project-ids', params);
|
||||
return post("/api/automation/list-project-ids", params);
|
||||
}
|
||||
|
||||
export function createSchedule(params) {
|
||||
return post('/api/automation/schedule/create', params);
|
||||
return post("/api/automation/schedule/create", params);
|
||||
}
|
||||
|
||||
export function updateSchedule(params) {
|
||||
return post('/api/automation/schedule/update', params);
|
||||
return post("/api/automation/schedule/update", params);
|
||||
}
|
||||
|
||||
export function setScenarioDomain(params) {
|
||||
return post('/api/automation/set-domain', params);
|
||||
return post("/api/automation/set-domain", params);
|
||||
}
|
||||
|
||||
export function listWithIds(params) {
|
||||
return post('/api/automation/list-blobs', params);
|
||||
return post("/api/automation/list-blobs", params);
|
||||
}
|
||||
|
||||
export function getApiScenarioEnv(params) {
|
||||
return post('/api/automation/scenario-env', params);
|
||||
return post("/api/automation/scenario-env", params);
|
||||
}
|
||||
|
||||
export function batchEditScenario(params) {
|
||||
return post('/api/automation/batch/edit', params);
|
||||
return post("/api/automation/batch/edit", params);
|
||||
}
|
||||
|
||||
export function batchCopyScenario(params) {
|
||||
return post('/api/automation/batch/copy', params);
|
||||
return post("/api/automation/batch/copy", params);
|
||||
}
|
||||
|
||||
export function updateScenarioEnv(params) {
|
||||
return post('/api/automation/batch/update/env', params);
|
||||
return post("/api/automation/batch/update/env", params);
|
||||
}
|
||||
|
||||
export function scenarioPlan(params) {
|
||||
return post('/api/automation/scenario/plan', params);
|
||||
return post("/api/automation/scenario/plan", params);
|
||||
}
|
||||
|
||||
export function runBatch(params) {
|
||||
return post('/api/automation/run/batch', params);
|
||||
return post("/api/automation/run/batch", params);
|
||||
}
|
||||
|
||||
export function scenarioRun(params) {
|
||||
return post('/api/automation/run', params);
|
||||
return post("/api/automation/run", params);
|
||||
}
|
||||
|
||||
export function scenarioReduction(params) {
|
||||
return post('/api/automation/reduction', params);
|
||||
return post("/api/automation/reduction", params);
|
||||
}
|
||||
|
||||
export function scenarioAllIds(params) {
|
||||
return post('/api/automation/id/all', params);
|
||||
return post("/api/automation/id/all", params);
|
||||
}
|
||||
|
||||
export function checkBeforeDelete(params) {
|
||||
return post('/api/automation/get-del-details', params);
|
||||
return post("/api/automation/get-del-details", params);
|
||||
}
|
||||
|
||||
export function removeScenarioToGcByBatch(params) {
|
||||
return post('/api/automation/move-gc-batch', params);
|
||||
return post("/api/automation/move-gc-batch", params);
|
||||
}
|
||||
|
||||
export function exportScenario(params) {
|
||||
return post('/api/automation/export', params);
|
||||
return post("/api/automation/export", params);
|
||||
}
|
||||
|
||||
export function batchGenPerformanceTestJmx(params) {
|
||||
return post('/api/automation/gen-jmx-batch', params);
|
||||
return post("/api/automation/gen-jmx-batch", params);
|
||||
}
|
||||
|
||||
export function updateScenarioFollows(id, params) {
|
||||
return post('/api/automation/update/follows/' + id, params);
|
||||
return post("/api/automation/update/follows/" + id, params);
|
||||
}
|
||||
|
||||
export function getScenarioReference(params) {
|
||||
return post('/api/automation/getReference', params);
|
||||
return post("/api/automation/getReference", params);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue