diff --git a/frontend/src/components/business/ms-assertion/index.vue b/frontend/src/components/business/ms-assertion/index.vue index 5dccadff68..12253dba58 100644 --- a/frontend/src/components/business/ms-assertion/index.vue +++ b/frontend/src/components/business/ms-assertion/index.vue @@ -149,7 +149,7 @@ import { ExecuteAssertionConfig } from '@/models/apiTest/common'; import { ResponseAssertionType, ResponseBodyAssertionType } from '@/enums/apiEnum'; - import { ExecuteAssertion, MsAssertionItem } from './type'; + import { MsAssertionItem } from './type'; defineOptions({ name: 'MsAssertion', diff --git a/frontend/src/enums/apiEnum.ts b/frontend/src/enums/apiEnum.ts index 2e186216c8..43f640bf15 100644 --- a/frontend/src/enums/apiEnum.ts +++ b/frontend/src/enums/apiEnum.ts @@ -247,6 +247,7 @@ export enum ScenarioExecuteStatus { EXECUTING = 'EXECUTING', FAILED = 'FAILED', STOP = 'STOP', + UN_EXECUTE = 'UN_EXECUTE', } // 场景步骤类型 export enum ScenarioStepType { diff --git a/frontend/src/models/apiTest/scenario.ts b/frontend/src/models/apiTest/scenario.ts index 263c091203..f863016ea7 100644 --- a/frontend/src/models/apiTest/scenario.ts +++ b/frontend/src/models/apiTest/scenario.ts @@ -43,23 +43,6 @@ export interface ApiScenarioGetModuleParams { refId?: string; } -// 场景修改参数 -export interface ApiScenarioUpdateDTO { - id: string | number; - name?: string; - priority?: string; - status?: ApiScenarioStatus; - moduleId?: string | number; - description?: string; - tags?: string[]; - grouped?: boolean; - environmentId?: string; - uploadFileIds?: string[]; - linkFileIds?: string[]; - deleteFileIds?: string[]; - unLinkFileIds?: string[]; -} - // 场景详情 export interface ApiScenarioTableItem { id: string; @@ -408,3 +391,19 @@ export interface ApiScenarioDebugRequest { linkFileIds: string[]; frontendDebug?: boolean; } + +// 场景修改参数 +export interface ApiScenarioUpdateDTO extends Partial { + id: string | number; + name?: string; + status?: ApiScenarioStatus; + moduleId?: string | number; + description?: string; + tags?: string[]; + grouped?: boolean; + environmentId?: string; + uploadFileIds?: string[]; + linkFileIds?: string[]; + deleteFileIds?: string[]; + unLinkFileIds?: string[]; +} diff --git a/frontend/src/views/api-test/scenario/components/common/customApiDrawer.vue b/frontend/src/views/api-test/scenario/components/common/customApiDrawer.vue index b1b0705f95..ffcea20792 100644 --- a/frontend/src/views/api-test/scenario/components/common/customApiDrawer.vue +++ b/frontend/src/views/api-test/scenario/components/common/customApiDrawer.vue @@ -217,7 +217,7 @@ - {{ status.text }} + {{ status.text }} diff --git a/frontend/src/views/api-test/scenario/components/config.ts b/frontend/src/views/api-test/scenario/components/config.ts index 7511586980..15e7d9234b 100644 --- a/frontend/src/views/api-test/scenario/components/config.ts +++ b/frontend/src/views/api-test/scenario/components/config.ts @@ -16,7 +16,7 @@ export const defaultLoopController = { variable: '', // 变量名 }, msCountController: { - loops: 0, // 循环次数 + loops: 1, // 循环次数 loopTime: 0, // 循环间隔时间 }, whileController: { diff --git a/frontend/src/views/api-test/scenario/components/step/stepNodeComposition/loopContent.vue b/frontend/src/views/api-test/scenario/components/step/stepNodeComposition/loopContent.vue index 183642f5bc..e23a7b5a12 100644 --- a/frontend/src/views/api-test/scenario/components/step/stepNodeComposition/loopContent.vue +++ b/frontend/src/views/api-test/scenario/components/step/stepNodeComposition/loopContent.vue @@ -10,7 +10,7 @@ /> - +
- +