diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue
index e2f0eb4a61..3253522333 100644
--- a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue
+++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue
@@ -22,7 +22,7 @@
{{ $t('api_test.definition.request.req_param') }}
-
+
diff --git a/frontend/src/business/components/api/definition/components/request/components/ApiDefinitionStepButton.vue b/frontend/src/business/components/api/definition/components/request/components/ApiDefinitionStepButton.vue
new file mode 100644
index 0000000000..63fc721786
--- /dev/null
+++ b/frontend/src/business/components/api/definition/components/request/components/ApiDefinitionStepButton.vue
@@ -0,0 +1,83 @@
+
+
+ +{{$t('api_test.definition.request.pre_script')}}
+
+ +{{$t('api_test.definition.request.post_script')}}
+
+ +{{$t('api_test.definition.request.assertions_rule')}}
+
+ +{{$t('api_test.definition.request.extract_param')}}
+
+
+
+
+
+
diff --git a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue
index f80c3ad55b..921ba00734 100644
--- a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue
+++ b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue
@@ -71,35 +71,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +{{$t('api_test.definition.request.pre_script')}}
-
- +{{$t('api_test.definition.request.post_script')}}
-
- +{{$t('api_test.definition.request.assertions_rule')}}
-
- +{{$t('api_test.definition.request.extract_param')}}
-
+
@@ -120,10 +94,12 @@
import BatchAddParameter from "../../basis/BatchAddParameter";
import MsApiAdvancedConfig from "./ApiAdvancedConfig";
import MsJsr233Processor from "../../../../automation/scenario/component/Jsr233Processor";
+ import ApiDefinitionStepButton from "../components/ApiDefinitionStepButton";
export default {
name: "MsApiHttpRequestForm",
components: {
+ ApiDefinitionStepButton,
MsJsr233Processor,
MsApiAdvancedConfig,
BatchAddParameter,
@@ -194,26 +170,6 @@
},
methods: {
- addPre() {
- let jsr223PreProcessor = createComponent("JSR223PreProcessor");
- this.request.hashTree.push(jsr223PreProcessor);
- this.reload();
- },
- addPost() {
- let jsr223PostProcessor = createComponent("JSR223PostProcessor");
- this.request.hashTree.push(jsr223PostProcessor);
- this.reload();
- },
- addAssertions() {
- let assertions = new Assertions();
- this.request.hashTree.push(assertions);
- this.reload();
- },
- addExtract() {
- let jsonPostProcessor = new Extract();
- this.request.hashTree.push(jsonPostProcessor);
- this.reload();
- },
remove(row) {
let index = this.request.hashTree.indexOf(row);
this.request.hashTree.splice(index, 1);
@@ -289,13 +245,6 @@