-
-
+
+
-
+
@@ -14,7 +14,7 @@
diff --git a/frontend/src/business/components/api/test/components/ApiAssertions.vue b/frontend/src/business/components/api/test/components/ApiAssertions.vue
index 10c46cc7f719ef31a2c892591b62df378e8129ef..838cb835760ca1c9f8dd3449cc924fa6d18ab6a1 100644
--- a/frontend/src/business/components/api/test/components/ApiAssertions.vue
+++ b/frontend/src/business/components/api/test/components/ApiAssertions.vue
@@ -24,7 +24,7 @@
import MsApiAssertionText from "./ApiAssertionText";
import MsApiAssertionRegex from "./ApiAssertionRegex";
import MsApiAssertionResponseTime from "./ApiAssertionResponseTime";
- import {ASSERTION_TYPE, Assertions, Regex} from "../model/APIModel";
+ import {ASSERTION_TYPE, Assertions, Regex} from "../model/ScenarioModel";
import MsApiAssertionsEdit from "./ApiAssertionsEdit";
export default {
diff --git a/frontend/src/business/components/api/test/components/ApiAssertionsEdit.vue b/frontend/src/business/components/api/test/components/ApiAssertionsEdit.vue
index f07eefcdae376661574efea35949cfeaf042c1f9..7179f3ff27822b641ee60b4e201591e0e3c6fc81 100644
--- a/frontend/src/business/components/api/test/components/ApiAssertionsEdit.vue
+++ b/frontend/src/business/components/api/test/components/ApiAssertionsEdit.vue
@@ -22,7 +22,7 @@
+
+
diff --git a/frontend/src/business/components/api/test/components/ApiScenarioForm.vue b/frontend/src/business/components/api/test/components/ApiScenarioForm.vue
index 90bce81d15d4de9f7818567ab9785a407a74ed6c..59c0de6f839df5ed3195d3e842ad55218402b389 100644
--- a/frontend/src/business/components/api/test/components/ApiScenarioForm.vue
+++ b/frontend/src/business/components/api/test/components/ApiScenarioForm.vue
@@ -34,7 +34,6 @@
activeName: "variables",
rules: {
name: [
- {required: true, message: this.$t('api_test.scenario.input_name'), trigger: 'blur'},
{max: 100, message: this.$t('commons.input_limit', [0, 100]), trigger: 'blur'}
],
url: [
diff --git a/frontend/src/business/components/api/test/model/APIModel.js b/frontend/src/business/components/api/test/model/ScenarioModel.js
similarity index 100%
rename from frontend/src/business/components/api/test/model/APIModel.js
rename to frontend/src/business/components/api/test/model/ScenarioModel.js
diff --git a/frontend/src/business/components/common/router/router.js b/frontend/src/business/components/common/router/router.js
index 01831e0eb54e49afc67a21140d8f298848727c6e..04d52e01674b0e49962a5161cf55088b41aee1fa 100644
--- a/frontend/src/business/components/common/router/router.js
+++ b/frontend/src/business/components/common/router/router.js
@@ -18,7 +18,7 @@ import PerformanceTestReport from "../../performance/report/PerformanceTestRepor
import ApiTestReport from "../../api/report/ApiTestReport";
import ApiTest from "../../api/ApiTest";
import PerformanceTest from "../../performance/PerformanceTest";
-import ApiScenarioConfig from "../../api/test/ApiScenarioConfig";
+import ApiTestConfig from "../../api/test/ApiTestConfig";
import PerformanceTestHome from "../../performance/home/PerformanceTestHome";
import ApiTestList from "../../api/test/ApiTestList";
import ApiTestHome from "../../api/home/ApiTestHome";
@@ -97,12 +97,12 @@ const router = new VueRouter({
{
path: 'test/create',
name: "createAPITest",
- component: ApiScenarioConfig,
+ component: ApiTestConfig,
},
{
path: "test/edit/:testId",
name: "editAPITest",
- component: ApiScenarioConfig,
+ component: ApiTestConfig,
props: {
content: (route) => {
return {
diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js
index 5cfd619ca26730e6bbaa684633df06f063f2ff84..48d8bc9074d0d7a3c2989cf5cfaeddb2e3550fda 100644
--- a/frontend/src/i18n/zh-CN.js
+++ b/frontend/src/i18n/zh-CN.js
@@ -169,6 +169,8 @@ export default {
'resource_pool_is_null': '资源池为空',
},
api_test: {
+ input_name: "请输入测试名称",
+ select_project: "请选择项目",
scenario: {
input_name: "请输入场景名称",
name: "场景名称",